How Linux CPU Scheduling Really Works: Unmasking CFS & EEVDF

Опубликовано: 29 Июнь 2026
на канале: The Kernel Log
450
8

Ever wonder what that 'nice' value in Linux top actually does? This video peels back the kernel's scheduler to reveal how it manages CPU task prioritization. It starts by debunking the myth that 'nice' is just a simple slice of time. Instead, it dives into the 'Completely Fair Scheduler' (CFS) and its secret weapon: vruntime. We explore how Linux uses a weighted virtual runtime to track fairness 'debt' and ensure all processes get their fair share of CPU time. The video also tackles the issue of contention, explaining why high-load environments lead to CPU pressure and how to use 'Pressure Stall Information' (PSI) to diagnose it. Finally, it introduces the EEVDF (Earliest Eligible Virtual Deadline First) scheduler, the modern successor to CFS designed to improve latency by balancing throughput and responsiveness, explaining the core concepts of lag and virtual deadlines.

---

Disclaimer: The audio and video content are generated by AI based on the official Linux Kernel documentation. Please always refer to the source code for critical implementation details.

#linux #kernel #linuxkernel #engineering #programming #notebooklm