Skip to content
systemcoding.dev

Tag

beginner

445 posts

Flat illustration of guest machines running on a hypervisor over hardware, with the QEMU, Linux and Docker logos.
Virtualization

Limit Memory and CPU With cgroups v2

Create a cgroup v2 directory, write memory.max and cpu.max, move a shell into it and watch the kernel cap memory and CPU time. Commands and output included.

6 min read
Flat illustration of network packets crossing between two hosts, with the C, Linux and Rust logos.
Networking

Write a TCP Client in C with connect

Write a TCP client in C that calls socket and connect, sends a request, reads the reply until the server closes, and handles errors on Linux.

7 min read
Flat illustration of a CPU core with its cache levels and main memory, with the C, Apple and Intel logos.
Performance

What NUMA Is and Why Remote Memory Is Slower

NUMA gives each CPU socket its own local memory, so a core reads its own memory fastest and pays extra to reach another socket's. Learn why and how to see it.

5 min read
Flat illustration of a microcontroller wired to an LED and a sensor, with the Arm, C and STMicroelectronics logos.
EmbeddedGuide

The Complete Guide to DMA on Microcontrollers

Learn how DMA controllers move data without the CPU, from memory copies to ADC, UART and timer transfers, on STM32, RP2040 and ESP32, and the pitfalls to avoid.

27 min read