Kernel

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 the Linux Timekeeping Subsystem Works: Clocksources, Mult/Shift Scaling, and Why the vDSO Answers clock_gettime Without a Trap

A process that calls clock_gettime(CLOCK_MONOTONIC) ten million times a second does not expect each call to trap into the kernel. On a moder...

Sarthak Bystander 15 Nov, 2026

How Transparent Huge Pages Work: Collapse, Split, and Why the Kernel Tries to Hide 2 MiB Pages

A process that allocates a multi-gigabyte heap does not have to map every 4 KiB page through its own page-table entry. On x86-64 the hardwar...

Sarthak Bystander 4 Nov, 2026

How OverlayFS Works: Layers, Whiteouts, and Why Containers Share Base Images

A container that starts from a shared Debian image layer, writes a new hostname into /etc/hostname, and deletes a file that came from the ba...

Sarthak Bystander 3 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 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 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 Linux Capabilities and the LSM Framework Work: Fine-Grained Privilege, Hook Points, and Why Root Is No Longer All-or-Nothing

A process that needs to bind a low-numbered TCP port, or to change the system clock, does not need the power to rewrite arbitrary files, kil...

Sarthak Bystander 2 Nov, 2026

How the Linux Page Reclaim and OOM Killer Work: LRU Lists, Watermarks, and Why the System Kills Processes

A process that calls malloc for a multi-gigabyte buffer under memory pressure does not always receive the pages. The kernel may already be s...

Sarthak Bystander 27 Oct, 2026