arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.14420cs.DC
收藏

聚合漏斗以加速 Fetch&Add 与队列

Aggregating Funnels for Faster Fetch&Add and Queues

Younghun Roh, Yuanhao Wei, Eric Ruppert, Panagiota Fatourou, Siddhartha Jayanti, Julian Shun

AI总结:

提出 Aggregating Funnels 算法,将 fetch-and-add 操作分散并聚合为批次在多位置执行,有效缓解单内存位置竞争热点,显著提升并发队列吞吐量与可扩展性。

摘要:

许多并发算法要求进程在单个内存位置执行 fetch-and-add 操作,这可能成为竞争热点。我们提出了一种名为 Aggregating Funnels 的新算法,通过将 fetch-and-add 操作分散到多个内存位置来缓解竞争。它将 fetch-and-add 操作聚合成批次,使得批次能通过单个硬件 fetch-and-add 指令在一个位置执行,且批次中所有操作可通过在不同位置执行 fetch-and-add 指令高效计算结果。实验表明,该方法比 Combining Funnels 等现有合并技术实现更高吞吐量,且比在单个内存位置应用硬件 fetch-and-add 指令具有显著更好的可扩展性。我们证明,将最快并发队列中的 fetch-and-add 指令替换为 Aggregating Funnels 可消除瓶颈,大幅提升队列整体吞吐量。

英文摘要:

Many concurrent algorithms require processes to perform fetch-and-add operations on a single memory location, which can be a hot spot of contention. We present a novel algorithm called Aggregating Funnels that reduces this contention by spreading the fetch-and-add operations across multiple memory locations. It aggregates fetch-and-add operations into batches so that the batch can be performed by a single hardware fetch-and-add instruction on one location and all operations in the batch can efficiently compute their results by performing a fetch-and-add instruction on a different location. We show experimentally that this approach achieves higher throughput than previous combining techniques, such as Combining Funnels, and is substantially more scalable than applying hardware fetch-and-add instructions on a single memory location. We show that replacing the fetch-and-add instructions in the fastest state-of-the-art concurrent queue by our Aggregating Funnels eliminates a bottleneck and greatly improves the queue's overall throughput.

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

↑