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

在多路多核系统上通过动态负载均衡优化细粒度并行性

Optimizing Fine-Grained Parallelism Through Dynamic Load Balancing on Multi-Socket Many-Core Systems

Wenyi Wang, Maxime Gonthier, Poornima Nookala, Haochen Pan, Ian Foster, Ioan Raicu, Kyle Chard

AI总结:

针对GNU OpenMP在细粒度短任务上同步开销高的问题,提出XQueue无锁队列、分布式树屏障及两种NUMA感知无锁负载均衡策略,在BOTS基准测试中实现最高千倍级性能提升。

摘要:

在多核架构上实现高效的任务并行是一项重要挑战。流行的OpenMP并行编程模型的广泛使用的GNU OpenMP实现,由于运行时同步耗时,在处理细粒度、短运行时间的任务时会产生高开销。在本研究中,我们提出并分析了三项关键进展,它们共同实现了显著的性能提升。首先,我们提出XQueue(一种无锁并发队列实现),以替代GNU的优先级任务队列并移除全局任务锁。其次,我们开发了一种可扩展、高效的混合无锁/无等待分布式树屏障,以解决GNU集中式屏障带来的高硬件同步开销。第三,我们开发了两种无锁且具备NUMA感知的负载均衡策略。我们使用Barcelona OpenMP Task Suite(BOTS,巴塞罗那OpenMP任务套件)基准测试评估了我们的实现。结果表明,与原始GNU OpenMP相比,使用XQueue和分布式树屏障可将性能提升最高达1522.8倍。我们进一步表明,与使用XQueue的GNU OpenMP相比,无锁负载均衡可将性能提升最高达4倍。

英文摘要:

Achieving efficient task parallelism on many-core architectures is an important challenge. The widely used GNU OpenMP implementation of the popular OpenMP parallel programming model incurs high overhead for fine-grained, short-running tasks due to time spent on runtime synchronization. In this work, we introduce and analyze three key advances that collectively achieve significant performance gains. First, we introduce XQueue, a lock-less concurrent queue implementation to replace GNU's priority task queue and remove the global task lock. Second, we develop a scalable, efficient, and hybrid lock-free/lock-less distributed tree barrier to address the high hardware synchronization overhead from GNU's centralized barrier. Third, we develop two lock-less and NUMA-aware load balancing strategies. We evaluate our implementation using Barcelona OpenMP Task Suite (BOTS) benchmarks. We show that the use of XQueue and the distributed tree barrier can improve performance by up to 1522.8$\times$ compared to the original GNU OpenMP. We further show that lock-less load balancing can improve performance by up to 4$\times$ compared to GNU OpenMP using XQueue.

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

↑