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

SmartPQ:一种面向NUMA架构的自适应并发优先队列

SmartPQ: An Adaptive Concurrent Priority Queue for NUMA Architectures

Christina Giannoula, Foteini Strati, Dimitrios Siakavaras, Georgios Goumas, Nectarios Koziris

AI总结:

SmartPQ提出一种面向NUMA架构的自适应并发优先队列,通过Nuddle技术和轻量级决策机制在NUMA无关与NUMA感知模式间动态切换,在多种争用场景下以87.9%的成功率实现最优性能,相比SprayList平均性能提升1.87倍。

摘要:

并发优先队列广泛用于图应用和离散事件模拟等重要工作负载中。然而,为NUMA架构设计可扩展的并发优先队列具有挑战性。尽管一些NUMA无关(NUMA-oblivious)实现可以扩展到大量线程,并利用插入操作的潜在并行性,但NUMA无关实现在以deleteMin为主的工作负载中扩展性较差。这是因为所有线程都竞争访问相同的内存位置,即队列中最高优先级的元素,从而在NUMA系统的节点之间产生过多的缓存一致性流量和非均匀内存访问。在这种情况下,通常使用NUMA感知(NUMA-aware)实现来提高NUMA系统上的系统性能。\n\n在这项工作中,我们提出了一种自适应优先队列,称为SmartPQ。SmartPQ通过在NUMA无关和NUMA感知算法模式之间切换来自我调整,以在各种争用场景下实现高性能。SmartPQ有两个关键组成部分。首先,它构建在NUMA节点委托(Nuddle)之上,Nuddle是一种通用的低开销技术,使用任意并发NUMA无关实现作为其骨干来构造高效的NUMA感知数据结构。其次,SmartPQ集成了一个轻量级决策机制,用于决定何时在NUMA无关和NUMA感知算法模式之间切换。我们的评估表明,在NUMA系统中,SmartPQ在各种争用场景下表现最佳,成功率为87.9%,并在NUMA感知和NUMA无关算法模式之间动态适应,性能开销可忽略不计。与最先进的NUMA无关优先队列SprayList相比,SmartPQ平均将性能提高了1.87倍。

英文摘要:

Concurrent priority queues are widely used in important workloads, such as graph applications and discrete event simulations. However, designing scalable concurrent priority queues for NUMA architectures is challenging. Even though several NUMA-oblivious implementations can scale up to a high number of threads, exploiting the potential parallelism of insert operation, NUMA-oblivious implementations scale poorly in deleteMin-dominated workloads. This is because all threads compete for accessing the same memory locations, i.e., the highest-priority element of the queue, thus incurring excessive cache coherence traffic and non-uniform memory accesses between nodes of a NUMA system. In such scenarios, NUMA-aware implementations are typically used to improve system performance on a NUMA system. In this work, we propose an adaptive priority queue, called SmartPQ. SmartPQ tunes itself by switching between a NUMA-oblivious and a NUMA-aware algorithmic mode to achieve high performance under all various contention scenarios. SmartPQ has two key components. First, it is built on top of NUMA Node Delegation (Nuddle), a generic low-overhead technique to construct efficient NUMA-aware data structures using any arbitrary concurrent NUMA-oblivious implementation as its backbone. Second, SmartPQ integrates a lightweight decision making mechanism to decide when to switch between NUMA-oblivious and NUMA-aware algorithmic modes. Our evaluation shows that, in NUMA systems, SmartPQ performs best in all various contention scenarios with 87.9% success rate, and dynamically adapts between NUMA-aware and NUMA-oblivious algorithmic mode, with negligible performance overheads. SmartPQ improves performance by 1.87x on average over SprayList, the state-of-theart NUMA-oblivious priority queue.

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

↑