"Nest" Is An Interesting New Take On Linux Kernel Scheduling For Bette...
source link: https://www.phoronix.com/news/Nest-Linux-Scheduling-Warm-Core
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
"Nest" Is An Interesting New Take On Linux Kernel Scheduling For Better CPU Performance
There has been a number of different efforts in recent time to further enhance the Linux kernel's scheduler to better adapt to modern hardware architectures whether it be for Intel hybrid CPU designs, adapting to new CPU cache configurations, or just better scaling with today's ever-increasing core counts. Another scheduler effort detailed this week is "Nest" that aims to keep tasks on "warm cores" with hopes of lower latency due to being already at higher clock/performance states and ideally operating at an optimal turbo/boost frequency. The Nest developers find that their scheduler "improves performance 10%-2x and can reduce energy usage" with modern hardware.
Julia Lawall with Inria, France's National Institute for Research In Digital Science and Technology, presented on Nest at this weeks's Linux Plumbers Conference (LPC 2022) in Dublin. Nest was also worked on in cooperation with oracle Labs and University of Sydney.
While the existing Linux CFS scheduler behavior is to spread out tasks across the machine's available CPU cores, Nest takes a different approach given today's processor attributes. While spreading out the work can be beneficial and makes sense, firing up long-idled CPU cores can lead to latency until those cores are worked into a higher performance state (higher frequency) and can negatively impact the turbo frequency / power budget of currently-busy CPU cores. Nest takes this into account and tries to initially keep tasks to a set of "warm cores" that are already running in their highest performance state before spinning up the idled cores.
Those wanting to learn more can find the Nest scheduler presentation from LPC 2022 embedded below along with the slide deck (PDF).
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK