Syrup: User-Defined Scheduling Across the Stack
Kostis Kaffes, Jack Tigar Humphries, David Mazières, Christos Kozyrakis
摘要
Suboptimal scheduling decisions in operating systems, networking stacks, and application runtimes are often responsible for poor application performance, including higher latency and lower throughput. These poor decisions stem from a lack of insight into the applications and requests the scheduler is handling and a lack of coherence and coordination between the various layers of the stack, including NICs, kernels, and applications.
We propose Syrup, a framework for user-defined scheduling. Syrup enables untrusted application developers to express application-specific scheduling policies across these system layers without being burdened with the low-level system mechanisms that implement them. Application developers write a scheduling policy with Syrup as a set of matching functions between inputs (threads, network packets, network connections) and executors (cores, network sockets, NIC queues) and then deploy it across system layers without modifying their code. Syrup supports multi-tenancy as multiple co-located applications can each safely and securely specify a custom policy. We present several examples of uses of Syrup to define application and workload-specific scheduling policies in a few lines of code, deploy them across the stack, and improve performance up to 8× compared with default policies.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 38 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- DINT: Fast In-Kernel Distributed Transactions with eBPF 引用了 RingLeader: Efficiently Offloading Intra-Server Orchestration to NICs
- DINT: Fast In-Kernel Distributed Transactions with eBPF 引用了 Caladan: Mitigating Interference at Microsecond Timescales
- DINT: Fast In-Kernel Distributed Transactions with eBPF 引用了 BMC: Accelerating Memcached using Safe In-kernel Caching and Pre-stack Processing
- DINT: Fast In-Kernel Distributed Transactions with eBPF 引用了 Electrode: Accelerating Distributed Protocols with eBPF
- DINT: Fast In-Kernel Distributed Transactions with eBPF 引用了 XRP: In-Kernel Storage Functions with eBPF
- RingLeader: Efficiently Offloading Intra-Server Orchestration to NICs 引用了 Caladan: Mitigating Interference at Microsecond Timescales
- RingLeader: Efficiently Offloading Intra-Server Orchestration to NICs 引用了 Efficient Scheduling Policies for Microsecond-Scale Tasks
- RingLeader: Efficiently Offloading Intra-Server Orchestration to NICs 引用了 RackSched: A Microsecond-Scale Scheduler for Rack-Scale Computers
- ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling 引用了 Caladan: Mitigating Interference at Microsecond Timescales
- ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling 引用了 RackSched: A Microsecond-Scale Scheduler for Rack-Scale Computers
- Electrode: Accelerating Distributed Protocols with eBPF 引用了 Caladan: Mitigating Interference at Microsecond Timescales
- Electrode: Accelerating Distributed Protocols with eBPF 引用了 BMC: Accelerating Memcached using Safe In-kernel Caching and Pre-stack Processing
- Electrode: Accelerating Distributed Protocols with eBPF 引用了 XRP: In-Kernel Storage Functions with eBPF
- Efficient Scheduling Policies for Microsecond-Scale Tasks 引用了 Caladan: Mitigating Interference at Microsecond Timescales
- Efficient Scheduling Policies for Microsecond-Scale Tasks 引用了 ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling
- Efficient Scheduling Policies for Microsecond-Scale Tasks 引用了 RackSched: A Microsecond-Scale Scheduler for Rack-Scale Computers
- XRP: In-Kernel Storage Functions with eBPF 引用了 Caladan: Mitigating Interference at Microsecond Timescales
- XRP: In-Kernel Storage Functions with eBPF 引用了 BMC: Accelerating Memcached using Safe In-kernel Caching and Pre-stack Processing
- XRP: In-Kernel Storage Functions with eBPF 引用了 ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling
引用它的顶会 Paper38
- XRP: In-Kernel Storage Functions with eBPFYuhong Zhong, Haoyu Li, Yu Jian Wu, Ioannis Zarkadas 等OSDI 2022 · 100 次引用
- Electrode: Accelerating Distributed Protocols with eBPFYang Zhou, Zezhou Wang, Sowmya Dharanipragada, Minlan YuNSDI 2023 · 78 次引用
- Efficient Scheduling Policies for Microsecond-Scale TasksSarah McClure, Amy Ousterhout, Scott Shenker, Sylvia RatnasamyNSDI 2022 · 43 次引用
- DINT: Fast In-Kernel Distributed Transactions with eBPFYang Zhou, Xingyu Xiang, Matthew Kiley, Sowmya Dharanipragada 等NSDI 2024 · 40 次引用
- RingLeader: Efficiently Offloading Intra-Server Orchestration to NICsJiaxin Lin, Adney Cardoza, Tarannum Khan, Yeonju Ro 等NSDI 2023 · 26 次引用
它引用的 Paper9
- Caladan: Mitigating Interference at Microsecond TimescalesJoshua Fried, Zhenyuan Ruan, Amy Ousterhout, Adam BelayOSDI 2020 · 213 次引用
- BMC: Accelerating Memcached using Safe In-kernel Caching and Pre-stack ProcessingYoann Ghigoff, Julien Sopena, Kahina Lazri, Antoine Blin 等NSDI 2021 · 79 次引用
- ghOSt: Fast & Flexible User-Space Delegation of Linux SchedulingJack Tigar Humphries, Neel Natu, Ashwin Chaugule, Ofir Weisse 等SOSP 2021 · 60 次引用
- RackSched: A Microsecond-Scale Scheduler for Rack-Scale ComputersHang Zhu, Kostis Kaffes, Zixu Chen, Zhenming Liu 等OSDI 2020 · 58 次引用
- SmartHarvest: harvesting idle CPUs safely and efficiently in the cloudYawen Wang, Kapil Arya, Marios Kogias, Manohar Vanga 等EuroSys 2021 · 53 次引用
相关 Paper
- Towards Optimal Rack-scale μs-level CPU Scheduling through In-Network Workload ShapingXudong Liao, Han Tian, Xinchen Wan, Chaoliang Zeng 等USENIX ATC 2025 · 1 次引用
- High-level Programming for Application NetworksXiangfeng Zhu, Yuyao Wang, Banruo Liu, Yongtong Wu 等NSDI 2025 · 6 次引用
- Enoki: High Velocity Linux Kernel Scheduler DevelopmentSamantha Miller, Anirudh Kumar, Tanay Vakharia, Ang Chen 等EuroSys 2024 · 8 次引用
- SBB: Eliminating Centralized Bottlenecks in Userspace Network RuntimeKang Hu, Shuqi Dong, Chuandong Li, Ran Yi 等OSDI 2026
- Rethinking Thread Scheduling under Oversubscription: A User-Space Framework for Coordinating Multi-runtime and Multi-process WorkloadsAleix Roca, Vicenç BeltranPPoPP 2026
