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

基于局部性的图重排序算法及其对处理速度的影响

Locality-based Graph Reordering for Processing Speed-Ups and Impact of Diameter

Vedant Satav

摘要:

图分析涉及大量的随机存储器访问模式。早期的研究表明,缓存未命中延迟占图形处理时间的一半以上,CPU执行的份额较小。对于减少CPU计算时间,已经有了大量的研究,例如,通过采用更好的缓存预取和替换策略。在本文中,我们研究了各种方法,这样做,试图减少CPU的缓存未命中率。图重排试图利用幂律分布的图-少数稀疏填充的顶点在图中有大量的连接-保持频繁访问的顶点在本地,从而减少缓存未命中。然而,通过将热顶点保持在一起来重新排序图可能会影响图的空间局部性,从而增加总的CPU计算时间。此外,我们还需要控制总的重新排序时间及其与最终CPU执行时间的反比关系。为了利用按顶点热度重新排序和空间局部性之间的这种权衡,我们引入了轻量级的基于社区的重新排序。我们试图通过将社区中的热成员存储在一起来保持图的社区结构。该实现还考虑了图直径对执行时间的影响。我们比较我们的实现与其他重排序的实现,并发现一个显着更好的结果上的五个图形处理算法:BFS,CC,CCSV,PR和BC。与其他重排序算法相比,Lorder实现了高达7倍的速度提升,平均速度提升1.2倍

英文摘要:

Graph analysis involves a high number of random memory access patterns. Earlier research has shownthat the cache miss latency is responsible for more than half of the graph processing time, with the CPU execution having the smaller share. There has been significant study on decreasing the CPU computing time for example, by employing better cache prefetching and replacement policies. In thispaper, we study the various methods that do so by attempting to decrease the CPU cache miss ratio.Graph Reordering attempts to exploit the power-law distribution of graphs -- few sparsely-populated vertices in the graph have high number of connections -- to keep the frequently accessed vertices together locally and hence decrease the cache misses. However, reordering the graph by keeping the hot vertices together may affect the spatial locality of the graph, and thus add to the total CPU compute time.Also, we also need to have a control over the total reordering time and its inverse relation with thefinal CPU execution timeIn order to exploit this trade-off between reordering as per vertex hotness and spatial locality, we introduce the light-weight Community-based Reordering. We attempt to maintain the community-structureof the graph by storing the hot-members in the community locally together. The implementation also takes into consideration the impact of graph diameter on the execution time. We compare our implementation with other reordering implementations and find a significantly better result on five graph processing algorithms: BFS, CC, CCSV, PR and BC. Lorder achieved speed-up of upto 7x and an average speed-up of 1.2x as compared to other reordering algorithms

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

↑