OS scheduling with nest: keeping tasks close together on warm cores
Julia Lawall, Himadri Chhaya-Shailesh, Jean-Pierre Lozi, Baptiste Lepers, Willy Zwaenepoel, Gilles Muller
摘要
To best support highly parallel applications, Linux's CFS scheduler tends to spread tasks across the machine on task creation and wakeup. It has been observed, however, that in a server environment, such a strategy leads to tasks being unnecessarily placed on long-idle cores that are running at lower frequencies, reducing performance, and to tasks being unnecessarily distributed across sockets, consuming more energy. In this paper, we propose to exploit the principle of core reuse, by constructing a nest of cores to be used in priority for task scheduling, thus obtaining higher frequencies and using fewer sockets. We implement the Nest scheduler in the Linux kernel. While performance and energy usage are comparable to CFS for highly parallel applications, for a range of applications using fewer tasks than cores, Nest improves performance 10%--2× and can reduce energy usage.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- kSTEP: Characterization and Deterministic Testing of Linux CPU Scheduler Bugs 引用了 Provable multicore schedulers with Ipanema: application to work conservation
- SUIT: Secure Undervolting with Instruction Traps 引用了 Fewer Cores, More Hertz: Leveraging High-Frequency Cores in the OS Scheduler for Improved Application Performance
- Fewer Cores, More Hertz: Leveraging High-Frequency Cores in the OS Scheduler for Improved Application Performance 引用了 Provable multicore schedulers with Ipanema: application to work conservation
- Virtualizing eBPF with Late-Binding 引用了 Enoki: High Velocity Linux Kernel Scheduler Development
- Optimizing Task Scheduling in Cloud VMs with Accurate vCPU Abstraction 引用了 Fair Scheduling for AVX2 and AVX-512 Workloads
- Enoki: High Velocity Linux Kernel Scheduler Development 引用了 Provable multicore schedulers with Ipanema: application to work conservation
引用它的顶会 Paper5
- Enoki: High Velocity Linux Kernel Scheduler DevelopmentSamantha Miller, Anirudh Kumar, Tanay Vakharia, Ang Chen 等EuroSys 2024 · 8 次引用
- SUIT: Secure Undervolting with Instruction TrapsJonas Juffinger, Stepan Kalinin, Daniel Gruss, Frank MuellerASPLOS 2024 · 4 次引用
- Optimizing Task Scheduling in Cloud VMs with Accurate vCPU AbstractionEdward Guo, Weiwei Jia, Xiaoning Ding, Jianchen ShanEuroSys 2025 · 3 次引用
- kSTEP: Characterization and Deterministic Testing of Linux CPU Scheduler BugsTingjia Cao, Shawn (Wanxiang) Zhong, Caeden Whitaker, Ke Han 等OSDI 2026 · 1 次引用
- Virtualizing eBPF with Late-BindingJing Zhang, Xiaguannan Song, Dong Du, Yubin Xia 等OSDI 2026
它引用的 Paper4
- Provable multicore schedulers with Ipanema: application to work conservationBaptiste Lepers, Redha Gouicem, Damien Carver, Jean-Pierre Lozi 等EuroSys 2020 · 18 次引用
- Fewer Cores, More Hertz: Leveraging High-Frequency Cores in the OS Scheduler for Improved Application PerformanceRedha Gouicem, Damien Carver, Jean-Pierre Lozi, Julien Sopena 等USENIX ATC 2020 · 12 次引用
- Fair Scheduling for AVX2 and AVX-512 WorkloadsMathias Gottschlag, Philipp Machauer, Yussuf Khalil, Frank BellosaUSENIX ATC 2021 · 8 次引用
- Avoiding scheduler subversion using scheduler-cooperative locksYuvraj Patel, Leon Yang, Leo Prasath Arulraj, Andrea C. Arpaci-Dusseau 等EuroSys 2020 · 6 次引用
相关 Paper
- EANeM: Energy-Aware Network Stack Management for Mobile DevicesChungseop Lee, Keonhyuk Lee, Mingoo Kang, Hyukjun LeeDAC 2020
- Compiler support for near data computingMahmut Taylan Kandemir, Jihyun Ryoo, Xulong Tang, Mustafa KaraköyPPoPP 2021 · 14 次引用
- Machine Learning-based Thermally-Safe Cache Contention Mitigation in Clustered ManycoresMohammed Bakr Sikal, Heba Khdr, Martin Rapp, Jörg HenkelDAC 2023 · 7 次引用
- Virtually-Federated Scheduling of Parallel Real-Time TasksXu Jiang, Nan Guan, Haochun Liang, Yue Tang 等RTSS 2021 · 22 次引用
- Efficient Scheduling Policies for Microsecond-Scale TasksSarah McClure, Amy Ousterhout, Scott Shenker, Sylvia RatnasamyNSDI 2022 · 43 次引用
