Lune

NSDI2022顶会

Efficient Scheduling Policies for Microsecond-Scale Tasks

Sarah McClure, Amy Ousterhout, Scott Shenker, Sylvia Ratnasamy

摘要

Datacenter operators today strive to support microsecondlatency applications while also using their limited CPU resources as efficiently as possible. To achieve this, several recent systems allow multiple applications to run on the same server, granting each a dedicated set of cores and reallocating cores across applications over time as load varies. Unfortunately, many of these systems do a poor job of navigating the tradeoff between latency and efficiency, sacrificing one or both, especially when handling tasks as short as 1 µs.

While the implementations of these systems (threading libraries, network stacks, etc.) have been heavily optimized, the policy choices that they make have received less scrutiny. Most systems implement a single choice of policy for allocating cores across applications and for load-balancing tasks across cores within an application. In this paper, we use simulations to compare these different policy options and explore which yield the best combination of latency and efficiency. We conclude that work stealing performs best among loadbalancing policies, multiple policies can perform well for core allocations, and, surprisingly, static core allocations often outperform reallocation with small tasks. We implement the best-performing policy choices by building on Caladan, an existing core-allocating system, and demonstrate that they can yield efficiency improvements of up to 13-22% without degrading (median or tail) latency.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • RingLeader: Efficiently Offloading Intra-Server Orchestration to NICs 引用了 Caladan: Mitigating Interference at Microsecond Timescales
  • ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling 引用了 Caladan: Mitigating Interference at Microsecond Timescales
  • LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling 引用了 Caladan: Mitigating Interference at Microsecond Timescales
  • LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling 引用了 The nanoPU: A Nanosecond Network Stack for Datacenters
  • LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling 引用了 ALTOCUMULUS: Scalable Scheduling for Nanosecond-Scale Remote Procedure Calls
  • ALTOCUMULUS: Scalable Scheduling for Nanosecond-Scale Remote Procedure Calls 引用了 Caladan: Mitigating Interference at Microsecond Timescales
  • ALTOCUMULUS: Scalable Scheduling for Nanosecond-Scale Remote Procedure Calls 引用了 ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling
  • ALTOCUMULUS: Scalable Scheduling for Nanosecond-Scale Remote Procedure Calls 引用了 The nanoPU: A Nanosecond Network Stack for Datacenters
  • Making Serverless Pay-For-Use a Reality with Leopard 引用了 Caladan: Mitigating Interference at Microsecond Timescales
  • μManycore: A Cloud-Native CPU for Tail at Scale 引用了 Caladan: Mitigating Interference at Microsecond Timescales
  • μManycore: A Cloud-Native CPU for Tail at Scale 引用了 ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling
  • μManycore: A Cloud-Native CPU for Tail at Scale 引用了 The nanoPU: A Nanosecond Network Stack for Datacenters
  • μManycore: A Cloud-Native CPU for Tail at Scale 引用了 ALTOCUMULUS: Scalable Scheduling for Nanosecond-Scale Remote Procedure Calls
  • Rearchitecting Linux Storage Stack for µs Latency and High Throughput 引用了 Caladan: Mitigating Interference at Microsecond Timescales
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper24

  1. RingLeader: Efficiently Offloading Intra-Server Orchestration to NICsJiaxin Lin, Adney Cardoza, Tarannum Khan, Yeonju Ro 等NSDI 2023 · 26 次引用
  2. μManycore: A Cloud-Native CPU for Tail at ScaleJovan Stojkovic, Chunao Liu, Muhammad Shahbaz, Josep TorrellasISCA 2023 · 16 次引用
  3. LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space SchedulingYueying Li, Nikita Lazarev, David Koufaty, Tenny Yin 等HPCA 2024 · 14 次引用
  4. ALTOCUMULUS: Scalable Scheduling for Nanosecond-Scale Remote Procedure CallsJiechen Zhao, Iris Uwizeyimana, Karthik Ganesan, Mark C. Jeffrey 等MICRO 2022 · 11 次引用
  5. Making Serverless Pay-For-Use a Reality with LeopardTingjia Cao, Andrea C. Arpaci-Dusseau, Remzi H. Arpaci-Dusseau, Tyler Caraza-HarterNSDI 2025 · 11 次引用

它引用的 Paper12

  1. AIFM: High-Performance, Application-Integrated Far MemoryZhenyuan Ruan, Malte Schwarzkopf, Marcos K. Aguilera, Adam BelayOSDI 2020 · 224 次引用
  2. Caladan: Mitigating Interference at Microsecond TimescalesJoshua Fried, Zhenyuan Ruan, Amy Ousterhout, Adam BelayOSDI 2020 · 213 次引用
  3. The nanoPU: A Nanosecond Network Stack for DatacentersStephen Ibanez, Alex Mallery, Serhat Arslan, Theo Jepsen 等OSDI 2021 · 74 次引用
  4. Rearchitecting Linux Storage Stack for µs Latency and High ThroughputJaehyun Hwang, Midhul Vuppalapati, Simon Peter, Rachit AgarwalOSDI 2021 · 63 次引用
  5. ghOSt: Fast & Flexible User-Space Delegation of Linux SchedulingJack Tigar Humphries, Neel Natu, Ashwin Chaugule, Ofir Weisse 等SOSP 2021 · 60 次引用

相关 Paper

  1. When Idling is Ideal: Optimizing Tail-Latency for Heavy-Tailed Datacenter Workloads with PerséphoneHenri Maxime Demoulin, Joshua Fried, Isaac Pedisich, Marios Kogias 等SOSP 2021 · 39 次引用
  2. Towards Optimal Rack-scale μs-level CPU Scheduling through In-Network Workload ShapingXudong Liao, Han Tian, Xinchen Wan, Chaoliang Zeng 等USENIX ATC 2025 · 1 次引用
  3. HardHarvest: Hardware-Supported Core Harvesting for MicroservicesJovan Stojkovic, Chunao Liu, Muhammad Shahbaz, Josep TorrellasISCA 2025 · 4 次引用
  4. Efficient Microsecond-scale Blind Scheduling with Tiny QuantaZhihong Luo, Sam Son, Dev Bali, Emmanuel Amaro 等ASPLOS 2024 · 8 次引用
  5. 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 次引用
黄昏的海面,两侧是细线勾勒的悬崖