Lune

OSDI2022顶会

Application-Informed Kernel Synchronization Primitives

Sujin Park, Diyu Zhou, Yuchen Qian, Irina Calciu, Taesoo Kim, Sanidhya Kashyap

摘要

Kernel synchronization primitives are the backbone of any OS design. Kernel locks, for instance, are crucial for both application performance and correctness. However, unlike application locks, kernel locks are far from the reach of application developers, who have minimal interpolation of the kernel's behavior and cannot control or influence the policies that govern kernel synchronization behavior. This disconnect between the kernel and applications can lead to pathological scenarios in which optimizing the kernel synchronization primitives under one context, such as high contention, leads to adversarial effects under a context with no lock contention. In addition, rapid-evolving heterogeneous hardware makes kernel lock development too slow for modern applications with stringent performance requirements and frequent deployment timelines.

This paper addresses the above issues with applicationinformed kernel synchronization primitives. We allow application developers to deploy workload-specific and hardwareaware kernel lock policies to boost application performance, resolve pathological usage of kernel locks, and even enable dynamic profiling of locks of interest. To showcase this idea, we design SynCord, a framework to modify kernel locks without recompiling or rebooting the kernel. SynCord abstracts key behaviors of kernel locks and exposes them as APIs for designing user-defined kernel locks. SynCord provides the mechanisms to customize kernel locks safely and correctly from the user space. We design five lock policies specialized for new heterogeneous hardware and specific software requirements. Our evaluation shows that SynCord incurs minimal runtime overhead and generates kernel locks with performance comparable to that of the state-of-the-art locks.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • DINT: Fast In-Kernel Distributed Transactions with eBPF 引用了 Syrup: User-Defined Scheduling Across the Stack
  • DINT: Fast In-Kernel Distributed Transactions with eBPF 引用了 Electrode: Accelerating Distributed Protocols with eBPF
  • Syrup: User-Defined Scheduling Across the Stack 引用了 ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling
  • Electrode: Accelerating Distributed Protocols with eBPF 引用了 Syrup: User-Defined Scheduling Across the Stack
  • NetEdit: An Orchestration Platform for eBPF Network Functions at Scale 引用了 Syrup: User-Defined Scheduling Across the Stack
  • NetEdit: An Orchestration Platform for eBPF Network Functions at Scale 引用了 Electrode: Accelerating Distributed Protocols with eBPF
  • eTran: Extensible Kernel Transport with eBPF 引用了 DINT: Fast In-Kernel Distributed Transactions with eBPF
  • eTran: Extensible Kernel Transport with eBPF 引用了 Syrup: User-Defined Scheduling Across the Stack
  • eTran: Extensible Kernel Transport with eBPF 引用了 Electrode: Accelerating Distributed Protocols with eBPF
  • PageFlex: Flexible and Efficient User-space Delegation of Linux Paging Policies with eBPF 引用了 Syrup: User-Defined Scheduling Across the Stack
  • PageFlex: Flexible and Efficient User-space Delegation of Linux Paging Policies with eBPF 引用了 ghOSt: Fast & Flexible User-Space Delegation of Linux Scheduling
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper15

  1. Electrode: Accelerating Distributed Protocols with eBPFYang Zhou, Zezhou Wang, Sowmya Dharanipragada, Minlan YuNSDI 2023 · 78 次引用
  2. DINT: Fast In-Kernel Distributed Transactions with eBPFYang Zhou, Xingyu Xiang, Matthew Kiley, Sowmya Dharanipragada 等NSDI 2024 · 40 次引用
  3. eTran: Extensible Kernel Transport with eBPFZhongjie Chen, Qingkai Meng, ChonLam Lao, Yifan Liu 等NSDI 2025 · 17 次引用
  4. PageFlex: Flexible and Efficient User-space Delegation of Linux Paging Policies with eBPFAnil Yelam, Kan Wu, Zhiyuan Guo, Suli Yang 等USENIX ATC 2025 · 15 次引用
  5. NetEdit: An Orchestration Platform for eBPF Network Functions at ScaleTheophilus A. Benson, Prashanth Kannan, Prankur Gupta, Balasubramanian Madhavan 等SIGCOMM 2024 · 11 次引用

它引用的 Paper4

  1. ghOSt: Fast & Flexible User-Space Delegation of Linux SchedulingJack Tigar Humphries, Neel Natu, Ashwin Chaugule, Ofir Weisse 等SOSP 2021 · 60 次引用
  2. Syrup: User-Defined Scheduling Across the StackKostis Kaffes, Jack Tigar Humphries, David Mazières, Christos KozyrakisSOSP 2021 · 35 次引用
  3. Avoiding scheduler subversion using scheduler-cooperative locksYuvraj Patel, Leon Yang, Leo Prasath Arulraj, Andrea C. Arpaci-Dusseau 等EuroSys 2020 · 6 次引用
  4. CLoF: A Compositional Lock Framework for Multi-level NUMA SystemsRafael Lourenco de Lima Chehab, Antonio Paolillo, Diogo Behrens, Ming Fu 等SOSP 2021 · 6 次引用

相关 Paper

  1. Ship your Critical Section, Not Your Data: Enabling Transparent Delegation with TCLOCKSVishal Gupta, Kumar Kartikeya Dwivedi, Yugesh Kothari, Yueyang Pan 等OSDI 2023 · 6 次引用
  2. DLOS: Effective Static Detection of Deadlocks in OS KernelsJia-Ju Bai, Tuo Li, Shi-Min HuUSENIX ATC 2022 · 10 次引用
  3. Locks as a Resource: Fairly Scheduling Lock Occupation with CFLJonggyu Park, Young Ik EomPPoPP 2024
  4. Efficient and Scalable Synchronization via Generalized Cache CoherenceYanpeng Yu, Seung-seob Lee, Lin Zhong, Anurag KhandelwalOSDI 2026
  5. SHARD: Fine-Grained Kernel Specialization with Context-Aware HardeningMuhammad Abubakar, Adil Ahmad, Pedro Fonseca, Dongyan XuUSENIX Security 2021 · 47 次引用
黄昏的海面,两侧是细线勾勒的悬崖