Fast and Efficient Parallel Breadth-First Search with Power-law Graph Transformation
Zite Jiang, Tao Liu, Shuai Zhang, Zhen Guan, Mengting Yuan, Haihang You
TL;DR
The paper tackles the challenge of efficient BFS on large, skewed graphs by combining Reverse Cuthill-Mckee (RCM) reordering with a hybrid level-synchronous/top-down and bottom-up BFS on an ARMv8 platform, augmented by NEON SIMD optimizations. The approach improves data locality, reduces cache misses, and enables dynamic load balancing and workload reduction during the bottom-up phase, achieving strong scalability and substantial speedups. Key contributions include the RCM-based graph relabeling with isolated vertices excluded, a detailed load-balancing strategy for the top-down phase, bottom-up workload reduction via bitmap frontiers and work-stealing, and SIMD acceleration; these are validated on Graph500 Kronecker graphs and real-world networks. The results demonstrate significant performance gains, including near-linear strong scaling and a Green Graph500 rank, underscoring the practical potential for faster traversal-based graph algorithms on CPU+SIMD architectures.
Abstract
In the big data era, graph computing is widely used to exploit the hidden value in real-world graphs in various scenarios such as social networks, knowledge graphs, web searching, and recommendation systems. However, the random memory accesses result in inefficient use of cache and the irregular degree distribution leads to substantial load imbalance. Breadth-First Search (BFS) is frequently utilized as a kernel for many important and complex graph algorithms. In this paper, we describe a preprocessing approach using Reverse Cuthill-Mckee (RCM) algorithm to improve data locality and demonstrate how to achieve an efficient load balancing for BFS. Computations on RCM-reordered graph data are also accelerated with SIMD executions. We evaluate the performance of the graph preprocessing approach on Kronecker graphs of the Graph500 benchmark and real-world graphs. Our BFS implementation on RCM-reordered graph data achieves 326.48 MTEPS/W (mega TEPS per watt) on an ARMv8 system, ranking 2nd on the Green Graph500 list in June 2020 (the 1st rank uses GPU acceleration).
