Lightweight preemptive user-level threads
Shumpei Shiina, Shintaro Iwasaki, Kenjiro Taura, Pavan Balaji
摘要
Many-to-many mapping models for user- to kernel-level threads (or "M:N threads") have been extensively studied for decades as a lightweight substitute for current Pthreads implementations that provide a simple one-to-one mapping ("1:1 threads"). M:N threads derive performance from their ability to allow users to context switch between threads and control their scheduling entirely in user space with no kernel involvement. This same ability, however, causes M:N threads to lose the kernel-provided ability of implicit OS preemption---threads have to explicitly yield control for other threads to be scheduled. Hence, programs over nonpreemptive M:N threads can cause core starvation, loss of prioritization, and, sometimes, deadlock unless programs are written to explicitly yield in proper places. This paper explores two techniques for M:N threads to efficiently achieve implicit preemption similar to 1:1 threads: signal-yield and KLT-switching. Overheads of these techniques, with our optimizations, can be less than 1% compared with nonpreemptive M:N threads. Our evaluation with three applications demonstrates that our preemption techniques for M:N threads improve core utilization and enhance the performance by utilizing lightweight context switching and flexible scheduling of M:N threads.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Extended User Interrupts (xUI): Fast and Flexible Notification without Polling 引用了 Skyloft: A General High-Efficient Scheduling Framework in User Space
- Extended User Interrupts (xUI): Fast and Flexible Notification without Polling 引用了 LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling
- Extended User Interrupts (xUI): Fast and Flexible Notification without Polling 引用了 The Benefits and Limitations of User Interrupts for Preemptive Userspace Scheduling
- Skyloft: A General High-Efficient Scheduling Framework in User Space 引用了 Lightweight Preemptible Functions
- Skyloft: A General High-Efficient Scheduling Framework in User Space 引用了 LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling
- The Benefits and Limitations of User Interrupts for Preemptive Userspace Scheduling 引用了 Lightweight Preemptible Functions
- The Benefits and Limitations of User Interrupts for Preemptive Userspace Scheduling 引用了 Skyloft: A General High-Efficient Scheduling Framework in User Space
- The Benefits and Limitations of User Interrupts for Preemptive Userspace Scheduling 引用了 Compiler-based timing for extremely fine-grain preemptive parallelism
- The Benefits and Limitations of User Interrupts for Preemptive Userspace Scheduling 引用了 LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space Scheduling
引用它的顶会 Paper4
- LibPreemptible: Enabling Fast, Adaptive, and Hardware-Assisted User-Space SchedulingYueying Li, Nikita Lazarev, David Koufaty, Tenny Yin 等HPCA 2024 · 14 次引用
- The Benefits and Limitations of User Interrupts for Preemptive Userspace SchedulingLinsong Guo, Danial Zuberi, Tal Garfinkel, Amy OusterhoutNSDI 2025 · 10 次引用
- Extended User Interrupts (xUI): Fast and Flexible Notification without PollingBerk Aydogmus, Linsong Guo, Danial Zuberi, Tal Garfinkel 等ASPLOS 2025 · 8 次引用
- Skyloft: A General High-Efficient Scheduling Framework in User SpaceYuekai Jia, Kaifu Tian, Yuyang You, Yu Chen 等SOSP 2024 · 3 次引用
它引用的 Paper2
相关 Paper
- Computation Is Fast, Use T hreadlet !: Efficient Threading for μs-Scale Computing via OS/Hardware Co-DesignYiming Yao, Xiaohe Qin, Yi Fan, Yuanlong Li 等SOSP 2026
- Ghost Threading: Helper-Thread Prefetching for Real SystemsYuxin Guo, Akshay Bhosale, Utpal Bora, Alexandra W. Chadwick 等MICRO 2025 · 2 次引用
- Low-Latency Transaction Scheduling via Userspace Interrupts: Why Wait or Yield When You Can Preempt?Kaisong Huang, Jiatang Zhou, Zhuoyue Zhao, Dong Xie 等SIGMOD 2025 · 8 次引用
- Rethinking Thread Scheduling under Oversubscription: A User-Space Framework for Coordinating Multi-runtime and Multi-process WorkloadsAleix Roca, Vicenç BeltranPPoPP 2026
- Fast Core Scheduling with Userspace Process AbstractionJiazhen Lin, Youmin Chen, Shiwei Gao, Youyou LuSOSP 2024 · 3 次引用
