Lune

USENIX ATC2020顶会

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

摘要

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%.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • SUIT: Secure Undervolting with Instruction Traps 引用了 OS scheduling with nest: keeping tasks close together on warm cores
  • Backdraft: a Lossless Virtual Switch that Prevents the Slow Receiver Problem 引用了 Provable multicore schedulers with Ipanema: application to work conservation
  • OS scheduling with nest: keeping tasks close together on warm cores 引用了 Provable multicore schedulers with Ipanema: application to work conservation
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. OS scheduling with nest: keeping tasks close together on warm coresJulia Lawall, Himadri Chhaya-Shailesh, Jean-Pierre Lozi, Baptiste Lepers 等EuroSys 2022 · 9 次引用
  2. SUIT: Secure Undervolting with Instruction TrapsJonas Juffinger, Stepan Kalinin, Daniel Gruss, Frank MuellerASPLOS 2024 · 4 次引用
  3. Backdraft: a Lossless Virtual Switch that Prevents the Slow Receiver ProblemAlireza Sanaee, Farbod Shahinfar, Gianni Antichi, Brent E. StephensNSDI 2022

它引用的 Paper1

  1. Provable multicore schedulers with Ipanema: application to work conservationBaptiste Lepers, Redha Gouicem, Damien Carver, Jean-Pierre Lozi 等EuroSys 2020 · 18 次引用

相关 Paper

  1. Fair Scheduling for AVX2 and AVX-512 WorkloadsMathias Gottschlag, Philipp Machauer, Yussuf Khalil, Frank BellosaUSENIX ATC 2021 · 8 次引用
  2. Efficient Scheduling Policies for Microsecond-Scale TasksSarah McClure, Amy Ousterhout, Scott Shenker, Sylvia RatnasamyNSDI 2022 · 43 次引用
  3. MAFin: Maximizing Accuracy in FinFET based Approximated Real-Time ComputingShounak Chakraborty, Sangeet Saha, Magnus Själander, Klaus D. McDonald-MaierDAC 2024
  4. Interference-free Operating System: A 6 Years' Experience in Mitigating Cross-Core Interference in LinuxZhaomeng Deng, Ziqi Zhang, Ding Li, Yao Guo 等RTSS 2024 · 6 次引用
  5. Avoiding scheduler subversion using scheduler-cooperative locksYuvraj Patel, Leon Yang, Leo Prasath Arulraj, Andrea C. Arpaci-Dusseau 等EuroSys 2020 · 6 次引用
黄昏的海面,两侧是细线勾勒的悬崖