Detecting full-system idle state in adaptive-tick kernels
Abstract
A technique for detecting full-system idle state in an adaptive-tick kernel includes detecting non-timekeeping CPU idle state, initiating a hysteresis period, waiting for the hysteresis period to end, manipulating a data structure whose state indicates whether a scheduling clock tick may be disabled on all CPUs, and disabling the scheduling clock tick if the data structure is in an appropriate state. In a first embodiment, non-timekeeping CPUs manipulate a global counter when entering an idle state, but add hysteresis to avoid thrashing the counter. Timekeeping is turned off based on the count maintained on the global counter. In a second embodiment, a Read-Copy Update (RCU) dynticks-idle subsystem running on a timekeeping CPU manipulates a global state variable whose states indicate whether all non-timekeeping CPUs are in an idle state, and if so, for how long. Timekeeping is turned off based on the state of the global state variable.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computer system having plural CPUs, including a timekeeping CPU and one or more non-timekeeping CPUs, operatively coupled to one or more memory devices, said system running an adaptive tick kernel, a method for detecting full-system idle state in said adaptive-tick kernel, the method comprising: detecting a non-timekeeping CPU idle state; initiating a hysteresis period; waiting for said hysteresis period to end; manipulating a data structure whose state indicates whether a scheduling clock tick may be disabled on all of said CPUs; and disabling said scheduling clock tick on all of said CP
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (11)
Non-Patent Literature (5)
- Corbet, Jonathan, "(Nearly) Full Tickless operation in 3.10" May 8, 2013, Internet: https://lwn.net/Articles/549580/ p. 1-8.
- J. Edge, "The 2012 realtime minsummit", , Oct. 24, 2012, pp. 1-6.
- J. Edge, "The 2012 realtime minsummit", <http://lwn.net/Articles/520704/>, Oct. 24, 2012, pp. 1-6.
- J. Triplett, "BOF: Painless kernel-Removing the HZ", Linux Plumbers Conference, Sep. 23, 2009, 7 pages.
- P. Mann et al., "Handling os jitter on multicore multi-threaded systems", Parallel and Distributed Processing Symposium, International, 0:1-12, 2009, 12 pages.