Fewer Cores, More Hertz: Leveraging High-Frequency Cores in the OS Scheduler for Improved Application Performance
Redha Gouicem, Damien Carver, Jean-Pierre Lozi, Julien Sopena, Baptiste Lepers, Willy Zwaenepoel, Nicolas Palix, Julia Lawall, Gilles Muller
Abstract
In modern server CPUs, individual cores can run at different frequencies, which allows for fine-grained control of the performance/energy tradeoff. Adjusting the frequency, however, incurs a high latency. We find that this can lead to a problem of frequency inversion, whereby the Linux scheduler places a newly active thread on an idle core that takes dozens to hundreds of milliseconds to reach a high frequency, just before another core already running at a high frequency becomes idle.
In this paper, we first illustrate the significant performance overhead of repeated frequency inversion through a case study of scheduler behavior during the compilation of the Linux kernel on an 80-core Intel R Xeon-based machine. Following this, we propose two strategies to reduce the likelihood of frequency inversion in the Linux scheduler. When benchmarked over 60 diverse applications on the Intel R Xeon, the better performing strategy, S move , improves performance by more than 5% (at most 56% with no energy overhead) for 23 applications, and worsens performance by more than 5% (at most 8%) for only 3 applications. On a 4-core AMD Ryzen we obtain performance improvements up to 56%.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- OS scheduling with nest: keeping tasks close together on warm coresJulia Lawall, Himadri Chhaya-Shailesh, Jean-Pierre Lozi, Baptiste Lepers et al.EuroSys 2022 · 9 citations
- SUIT: Secure Undervolting with Instruction TrapsJonas Juffinger, Stepan Kalinin, Daniel Gruss, Frank MuellerASPLOS 2024 · 4 citations
- Backdraft: a Lossless Virtual Switch that Prevents the Slow Receiver ProblemAlireza Sanaee, Farbod Shahinfar, Gianni Antichi, Brent E. StephensNSDI 2022
Builds on1
Related papers
- Fair Scheduling for AVX2 and AVX-512 WorkloadsMathias Gottschlag, Philipp Machauer, Yussuf Khalil, Frank BellosaUSENIX ATC 2021 · 8 citations
- Efficient Scheduling Policies for Microsecond-Scale TasksSarah McClure, Amy Ousterhout, Scott Shenker, Sylvia RatnasamyNSDI 2022 · 43 citations
- MAFin: Maximizing Accuracy in FinFET based Approximated Real-Time ComputingShounak Chakraborty, Sangeet Saha, Magnus Själander, Klaus D. McDonald-MaierDAC 2024
- Interference-free Operating System: A 6 Years' Experience in Mitigating Cross-Core Interference in LinuxZhaomeng Deng, Ziqi Zhang, Ding Li, Yao Guo et al.RTSS 2024 · 6 citations
- Avoiding scheduler subversion using scheduler-cooperative locksYuvraj Patel, Leon Yang, Leo Prasath Arulraj, Andrea C. Arpaci-Dusseau et al.EuroSys 2020 · 6 citations
