arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.11652cs.DScs.DCcs.PF
收藏

工程化多队列:快速松弛并发优先队列

Engineering MultiQueues: Fast Relaxed Concurrent Priority Queues

Marvin Williams, Peter Sanders

AI总结:

针对并行环境中经典优先队列的吞吐量瓶颈问题,提出基于多内部顺序队列的MultiQueue松弛并发优先队列方法,通过缓冲、批量操作和缓存优化提升可扩展性,实验表明其在多基准测试中优于竞品,且可灵活平衡吞吐量与质量。

摘要:

优先队列广泛应用于优先在线调度、离散事件模拟和贪心算法等领域。在并行环境中,经典优先队列常成为严重瓶颈,导致吞吐量低下。因此,具有松弛语义的并发优先队列备受关注。本文提出MultiQueue,一种灵活的松弛优先队列方法,使用多个内部顺序优先队列。MultiQueue的可扩展性通过缓冲元素、对内部队列进行批量操作以及优化访问模式以提高缓存局部性来增强。我们研究了互补的质量标准:秩误差(衡量删除元素与全局最小值的接近程度)和延迟(量化给定元素被删除前有多少更小的元素已被删除)。广泛的实验评估表明,MultiQueue在多个基准测试中优于竞争方法,包括类似实际应用的最短路径和分支定界基准测试。此外,MultiQueue可根据应用需求轻松配置,以平衡吞吐量和质量。我们采用了一种看似矛盾的无等待锁定技术,该技术可能对将顺序数据结构转换为松弛并发数据结构具有更广泛的意义。

英文摘要:

Priority queues are used in a wide range of applications, including prioritized online scheduling, discrete event simulation, and greedy algorithms. In parallel settings, classical priority queues often become a severe bottleneck, resulting in low throughput. Consequently, there has been significant interest in concurrent priority queues with relaxed semantics. In this article, we present the MultiQueue, a flexible approach to relaxed priority queues that uses multiple internal sequential priority queues. The scalability of the MultiQueue is enhanced by buffering elements, batching operations on the internal queues, and optimizing access patterns for high cache locality. We investigate the complementary quality criteria of rank error, which measures how close deleted elements are to the global minimum, and delay, which quantifies how many smaller elements were deleted before a given element. Extensive experimental evaluation shows that the MultiQueue outperforms competing approaches across several benchmarks. This includes shortest-path and branch-and-bound benchmarks that resemble real applications. Moreover, the MultiQueue can be configured easily to balance throughput and quality according to the application's requirements. We employ a seemingly paradoxical technique of wait-free locking that might be of broader interest for converting sequential data structures into relaxed concurrent data structures.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑