Skip to content

Restoring Fair Hrtick Re-arming After Same-Task Repicks in the Linux EEVDF Scheduler

Shubhang Kaushik

cs.OS

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 setnexttaskfair(), the location that normally records the next fair hrtick delay. We introduce SNTREPICK, an explicit same-task activation type for struct schedclass. For fair tasks, it preserves the fast path while restarting the hrtick from refreshed EEVDF state. For SCHEDDEADLINE, 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 CONFIGHIGHRESTIMERS=n fallback. Independently, Intel's 0-Day Kernel Test Service reported a 34.2% increase in its stress-ng.rawudp.packets32bytesreceivedpersec 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.

Create a lesson

Metadata

Comments
9 pages, 2 figures. Submitted to Elsevier Journal of Parallel and Distributed Computing. The scheduler change described in this paper was merged into the mainline Linux kernel as commit c72945693b90423f1b46ac2dbc8749c2b7804fc8