Lune

PPoPP2022顶会

Multi-queues can be state-of-the-art priority schedulers

Anastasiia Postnikova, Nikita Koval, Giorgi Nadiradze, Dan Alistarh

摘要

Designing and implementing efficient parallel priority schedulers is an active research area. An intriguing proposed design is the Multi-Queue: given n threads and m ≥ n distinct priority queues, task insertions are performed uniformly at random, while, to delete, a thread picks two queues uniformly at random, and removes the observed task of higher priority. This approach scales well, and has probabilistic rank guarantees: roughly, the rank of each task removed, relative to remaining tasks in all other queues, is O(m) in expectation. Yet, the performance of this pattern is below that of well-engineered schedulers, which eschew theoretical guarantees for practical efficiency. We investigate whether it is possible to design and implement a Multi-Queue-based task scheduler that is both highly-efficient and has analytical guarantees. We propose a new variant called the Stealing Multi-Queue (SMQ), a cache-efficient variant of the Multi-Queue, which leverages both queue affinity-each thread has a local queue, from which tasks are usually removed; but, with some probability, threads also attempt to steal higher-priority tasks from the other queues-and task batching, that is, the processing of several tasks in a single insert / remove step. These ideas are well-known for task scheduling without priorities; our theoretical contribution is showing that, despite relaxations, this design can still provide rank guarantees, which in turn implies bounds on total work performed. We provide a general SMQ implementation which can surpass state-of-the-art schedulers such as Galois and PMOD in terms of performance on popular graph-processing benchmarks. Notably, the performance improvement comes mainly from the superior rank guarantees provided by our scheduler, confirming that analytically-reasoned approaches can still provide performance improvements for priority task scheduling.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • A scalable architecture for reprioritizing ordered parallelism 引用了 Scalable Belief Propagation via Relaxed Scheduling
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. A scalable architecture for reprioritizing ordered parallelismGilead Posluns, Yan Zhu, Guowei Zhang, Mark C. JeffreyISCA 2022 · 8 次引用
  2. Balanced Allocations over Efficient Queues: A Fast Relaxed FIFO QueueKåre von Geijer, Philippas Tsigas, Elias Johansson, Sebastian HermanssonPPoPP 2025 · 2 次引用

它引用的 Paper1

  1. Scalable Belief Propagation via Relaxed SchedulingVitaly Aksenov, Dan Alistarh, Janne H. KorhonenNeurIPS 2020 · 9 次引用

相关 Paper

  1. BWoS: Formally Verified Block-based Work Stealing for Parallel ProcessingJiawei Wang, Bohdan Trach, Ming Fu, Diogo Behrens 等OSDI 2023 · 5 次引用
  2. Cache-Efficient Fork-Processing Patterns on Large GraphsShengliang Lu, Shixuan Sun, Johns Paul, Yuchen Li 等SIGMOD 2021 · 10 次引用
  3. Orinoco: Ordered Issue and Unordered Commit with Non-Collapsible QueuesDibei Chen, Tairan Zhang, Yi Huang, Jianfeng Zhu 等ISCA 2023 · 1 次引用
  4. Sharded Elimination and Combining for Highly-Efficient Concurrent StacksAjay Singh, Nikos Metaxakis, Panagiota FatourouPPoPP 2026
  5. Large-Scale Graph Processing on FPGAs with Caches for Thousands of Simultaneous MissesMikhail Asiatici, Paolo IenneISCA 2021 · 28 次引用
黄昏的海面,两侧是细线勾勒的悬崖