Systems

How the Linux Workqueue Subsystem Works: Worker Pools, max_active, and Why Deferred Work Runs in Process Context

A driver that finishes an interrupt handler cannot allocate memory, take a mutex, or call into the block layer. The interrupt context is ato...

Sarthak Bystander 27 Nov, 2026

How the Linux Context Switch Works: switch_to, Kernel Stacks, and Lazy FPU Restoration

A thread that calls sched_yield() or blocks on a futex does not leave its registers sitting in the CPU. The core must start executing anothe...

Sarthak Bystander 26 Nov, 2026

How KVM Works: VM Exits, EPT, and Why a Guest Is Scheduled Like a Process

A process that starts a virtual machine does not execute guest instructions the way it executes its own. When the guest is running, the CPU ...

Sarthak Bystander 3 Nov, 2026

How NUMA Works: Nodes, Distance, and Why First-Touch Allocation Matters

A process that calls malloc for a multi-gigabyte buffer on a two-socket server does not receive equal-cost memory. The physical frames behin...

Sarthak Bystander 18 Oct, 2026

How sendfile and splice Work: Pipe Buffers, Page References, and Why Zero-Copy Is Not Zero Work

A static file server that uses read() into a user buffer and write() onto a socket copies every byte twice through the CPU: page cache to ...

Sarthak Bystander 30 Sept, 2026