Lune

SC2020顶会

Compiler-based timing for extremely fine-grain preemptive parallelism

Souradip Ghosh, Michael Cuevas, Simone Campanoni, Peter A. Dinda

摘要

In current operating system kernels and run-time systems, timing is based on hardware timer interrupts, introducing inherent overheads that limit granularity. For example, the scheduling quantum of preemptive threads is limited, resulting in this abstraction being restricted to coarse-grain parallelism. Compiler-based timing replaces interrupts from the hardware timer with callbacks from compiler-injected code. We describe a system that achieves low-overhead timing using whole-program compiler transformations and optimizations combined with kernel and run-time support. A key novelty is new static analyses that achieve predictable, periodic run-time behavior from the transformed code, regardless of control-flow path. We transform the code of a kernel and run-time system to use compiler-based timing and leverage the resulting fine-grain timing to extend an implementation of fibers (cooperatively scheduled threads), attaining what is effectively preemptive scheduling. The result combines the fine granularity of the cooperative fiber model with the ease of programming of the preemptive thread model.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • The Benefits and Limitations of User Interrupts for Preemptive Userspace Scheduling 引用了 Lightweight preemptive user-level threads
  • Automatic Parallelism Management 引用了 Task parallel assembly language for uncompromising parallelism
  • Compiling Loop-Based Nested Parallelism for Irregular Workloads 引用了 Task parallel assembly language for uncompromising parallelism
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper7

  1. The Benefits and Limitations of User Interrupts for Preemptive Userspace SchedulingLinsong Guo, Danial Zuberi, Tal Garfinkel, Amy OusterhoutNSDI 2025 · 10 次引用
  2. Lightweight preemptive user-level threadsShumpei Shiina, Shintaro Iwasaki, Kenjiro Taura, Pavan BalajiPPoPP 2021 · 10 次引用
  3. Task parallel assembly language for uncompromising parallelismMike Rainey, Ryan R. Newton, Kyle C. Hale, Nikos Hardavellas 等PLDI 2021 · 9 次引用
  4. Automatic Parallelism ManagementSam Westrick, Matthew Fluet, Mike Rainey, Umut A. AcarPOPL 2024 · 7 次引用
  5. Compiling Loop-Based Nested Parallelism for Irregular WorkloadsYian Su, Mike Rainey, Nick Wanninger, Nadharm Dhiantravan 等ASPLOS 2024 · 5 次引用

它引用的 Paper1

  1. Spectre Attacks: Exploiting Speculative ExecutionPaul Kocher, Jann Horn, Anders Fogh, Daniel Genkin 等S&P 2019 · 2,435 次引用

相关 Paper

  1. PeeR: First-Class Scheduling for Latency-Critical eBPF ApplicationsJeremy Carin, Ben Holmes, Weiyang Wang, Ankit Bhardwaj 等OSDI 2026
  2. Frequent background polling on a shared thread, using light-weight compiler interruptsNilanjana Basu, Claudio Montanari, Jakob ErikssonPLDI 2021 · 4 次引用
  3. Immortal Threads: Multithreaded Event-driven Intermittent Computing on Ultra-Low-Power MicrocontrollersEren Yildiz, Lijun Chen, Kasim Sinan YildirimOSDI 2022 · 10 次引用
  4. Rethinking Thread Scheduling under Oversubscription: A User-Space Framework for Coordinating Multi-runtime and Multi-process WorkloadsAleix Roca, Vicenç BeltranPPoPP 2026
  5. T4: Compiling Sequential Code for Effective Speculative Parallelization in HardwareVictor A. Ying, Mark C. Jeffrey, Daniel SánchezISCA 2020 · 25 次引用
黄昏的海面,两侧是细线勾勒的悬崖