Restoring Fair Hrtick Re-arming After Same-Task Repicks in the Linux EEVDF Scheduler
Shubhang Kaushik (Ampere Computing)
Key points
From the paper's conclusion- We distinguish this reported benchmark result from causal claims that require separate scheduler and network instrumentation.
Abstract
Linux uses one-shot high-resolution scheduler ticks (hrticks) to request rescheduling at fair-class execution boundaries. We analyze a gap in the dispatch path in which an expired fair hrtick is not restarted when the fair scheduler selects the current task again. The gap arises because the same-task fast path bypasses set_next_task_fair(), the location that normally records the next fair hrtick delay. We introduce SNT_REPICK, an explicit same-task activation type for struct sched_class. For fair tasks, it preserves the fast path while restarting the hrtick from refreshed EEVDF state. For SCHED_DEADLINE, it deliberately performs no hrtick restart because the corresponding runtime state is not refreshed on a repick. The implementation was merged into the mainline Linux kernel as commit c72945693b. We give a conditional timing analysis for systems on which the periodic scheduler tick remains active and report validation from two platforms. Functional tests on an 80-core Ampere Altra exercised fair hrtick, deadline hrtick, and the CONFIG_HIGH_RES_TIMERS=n fallback. Independently, Intel's 0-Day Kernel Test Service reported a 34.2% increase in its stress-ng.rawudp.packets_32_bytes_received_per_sec metric on a 192-thread Intel Xeon 6740E under the documented test configuration. We distinguish this reported benchmark result from causal claims that require separate scheduler and network instrumentation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- PLUGSCHED+: Efficient and General Live Update and Recovery for Linux SchedulerACM Transactions on Architecture and Code Optimization · 2026
- Taking Time Out of TOCTOU: From Race Reproduction to Security DiscoveryarXiv · 2026
- MorphSched: Workload-Aware Adaptive Scheduler Generation for LinuxarXiv · 2026
- SchedBlame: Who Ran While You Waited? Culprit-Attributed CPU Contention for Containers on Stock KernelsarXiv · 2026
- Breaking the Coupling: Efficient Concurrency Fuzzing for Linux Kernel Data Race DetectionarXiv · 2026
- QFabric: Guarded Cross-Domain Task Recovery and Its Limits on a Linux-RTOS BoardarXiv · 2026