Apex › Systems & OS

How Linux schedules now (EEVDF)

The scheduler that replaced CFS in Linux 6.6. Keep CFS’s weighted virtual runtime, but add two rules: a task is eligible only if its lag (V − v, the CPU it’s owed) is ≥ 0 — a task that ran ahead is benched — and among eligible tasks the one with the earliest virtual deadline (v + slice/weight) runs, bounding latency. Verified in node: the dispatched task is always eligible with the minimum deadline, Σ w·lag = 0, and long-run shares equal the weight fractions (1:2:4 → 14.3/28.6/57.1%). Step the scheduler and watch the lag bars and shares.

More in Systems & OS