4 ms·
The article states makes numerous mentions of the "the governor": >"In this loop, the CPU scheduler notices that a CPU is idle because it has no work for the C
by bogomipz 8y ago
The article states makes numerous mentions of the "the governor":
>"In this loop, the CPU scheduler notices that a CPU is idle because it has no work for the CPU to do. The scheduler then calls the governor, which does its best to predict the appropriate idle state to enter. There are currently two governors in the kernel, called "menu" and "ladder". They are used in different cases, but they both try to do roughly the same thing: keep track of system state when a CPU idles and how long it ended up idling for."
Could someone say exactly what "the governor" is? Its a code path in the scheduler? It wasn't clear to me from reading the article.
- mjg59 8y agoThe kernel subsystem that handles this is called cpuidle: https://lwn.net/Articles/384146/ https://lwn.net/Articles/384146/ . It has two different governors, ladder (which chooses an idle state adjacent to the existing state) and menu (which can choose any idle state)
- bogomipz 8y agoThanks this is really helpful. Cheers.