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

现代架构下的图转置局部性优化研究

On Optimizing Locality of Graph Transposition on Modern Architectures

Mohsen Koohi Esfahani, Hans Vandierendonck

AI总结:

针对传统图转置算法内存开销大、难以适配大规模图的问题,本文提出PoTra算法,通过适配CPU缓存规模、利用图偏斜度分布优化局部性,在多架构与大规模数据集上实现了最高8.7倍的性能提升。

摘要:

本文研究共享内存环境下的图转置(Graph Transposition,GT)问题,这是一种广泛应用于图分析与科学计算的基础图算法。\n 以往的GT算法内存需求与顶点数和线程数成正比,内存开销较大,限制了其在大规模图上的应用。此外,最新CPU架构上原子内存操作的速度已大幅提升,为优化GT中并发原子访问的性能带来了新机遇。\n 我们设计了PoTra——一种GT算法,它利用图结构以及处理器与内存架构来优化局部性与性能。PoTra将额外数据结构的大小限制在接近CPU缓存的规模,并利用图数据集的偏斜度分布优化局部性与性能。我们还提出了PoTra的性能模型,用于解释缓存与内存响应时间和图局部性之间的关联。\n 我们在三种CPU架构、20个真实与合成图数据集(边数最高达1280亿)上对PoTra进行了评估,结果表明:与已有工作相比,PoTra最高可实现8.7倍的加速比;即便出现性能下降,平均降幅也控制在15.7%以内。

英文摘要:

This paper investigates the shared-memory Graph Transposition (GT) problem, a fundamental graph algorithm that is widely used in graph analytics and scientific computing. Previous GT algorithms have significant memory requirements that are proportional to the number of vertices and threads which obstructs their use on large graphs. Moreover, atomic memory operations have become comparably fast on recent CPU architectures, which creates new opportunities for improving the performance of concurrent atomic accesses in GT. We design PoTra, a GT algorithm which leverages graph structure and processor and memory architecture to optimize locality and performance. PoTra limits the size of additional data structures close to CPU cache sizes and utilizes the skewed degree distribution of graph datasets to optimize locality and performance. We present the performance model of PoTra to explain the connection between cache and memory response times and graph locality. Our evaluation of PoTra on three CPU architectures and 20 real-world and synthetic graph datasets with up to 128 billion edges demonstrates that PoTra achieves up to 8.7 times speedup compared to previous works and if there is a performance loss it remains limited to 15.7%, on average.

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

↑