TL;DR
This paper tackles the challenge of efficiently analyzing dynamic graphs on GPUs, where graph structures change rapidly. They introduce a novel GPU-based dynamic graph storage scheme and parallel update algorithms (GPMA and GPMA+) that significantly outperform existing methods, enabling real-time analytics on evolving graph data.
What Problem Does This Paper Address?
The increasing prevalence of massive, dynamic graphs in areas like social networks, fraud detection, and real-time monitoring presents a significant computational challenge. While GPUs offer immense processing power for graph analytics, their effectiveness is hampered when dealing with graphs that frequently update. Rebuilding the entire graph structure on the GPU after each update becomes a major bottleneck, preventing real-time analysis. Existing solutions either don't efficiently handle dynamic updates (especially deletions) or are not well-suited for GPU architectures. This paper aims to bridge this gap by proposing a GPU-native solution for efficient dynamic graph storage and updates, allowing existing GPU graph algorithms to operate seamlessly on evolving data.
Methods
The authors propose a GPU-based dynamic graph storage scheme inspired by the CPU-based Packed Memory Array (PMA). PMA maintains sorted elements with gaps for efficient updates. However, the original PMA is not designed for parallel updates and suffers from thread divergence on GPUs. To address this, they introduce two GPU-oriented algorithms:
- GPMA (GPU-Packed Memory Array): This algorithm uses a lock-based approach to enable concurrent PMA updates on GPUs. It identifies leaf segments for insertions and then processes updates in a bottom-up, synchronized manner.
- GPMA+ (GPMA Optimization): This is a lock-free approach designed to overcome the limitations of GPMA, particularly thread conflicts and uncoalesced memory accesses. GPMA+ processes updates in a segment-oriented, level-by-level manner, leveraging GPU primitives like Run-Length Encoding and Exclusive Scan for efficient parallel processing. It also incorporates warp-based and block-based optimizations for different segment sizes.
The framework also focuses on hiding costly PCIe transfers by overlapping data transfers with GPU computations using asynchronous streams.
Datasets
The authors evaluate their approach using a combination of real-world and synthetic datasets:
- Real-world: Reddit (online forum activity), Pokec (Slovakian social network).
- Synthetic: Graph500 (synthetic power-law graph), Random (Erdős-Rényi random graph).
These datasets are used to simulate dynamic graph streams by either using existing timestamps or randomly assigning them.
Key Insights and Ideas
- PMA's potential on GPUs: The paper highlights that the core principles of PMA (sorted, partially contiguous storage) are well-suited for GPU streaming graph maintenance, but direct porting is problematic.
- The bottleneck of graph rebuilds: Rebuilding the entire graph on the GPU for every update is prohibitively slow for real-time applications.
- GPMA+ as a robust solution: The lock-free GPMA+ demonstrates superior performance and stability across various update patterns, outperforming both GPMA and CPU-based solutions.
- Seamless integration with existing algorithms: The proposed storage scheme is designed to be compatible with existing GPU graph formats (like CSR), allowing for easy adaptation of current graph analytics libraries.
- Asynchronous streams for hidden data transfer: Overlapping data transfers with computation is crucial for maximizing GPU utilization in dynamic graph processing.
Key Results
- Significant speedups: GPMA+ achieves speedups of up to 20.42x and 18.30x over PMA and GPMA, respectively, for handling updates.
- Competitive performance with static GPU approaches: For applications like BFS and Connected Component, GPMA+ shows comparable or superior performance to static GPU approaches (like cuSparseCSR) while also handling updates efficiently.
- Scalability: The framework demonstrates good scalability with multi-GPU systems, showing improved throughput for compute-intensive applications like PageRank.
- Update efficiency: GPMA+ significantly reduces update times compared to rebuild-based approaches, making real-time dynamic graph analytics feasible.
Limitations and Future Work
- Limitations:
- While GPMA+ shows excellent update performance, the authors note that for some datasets (Reddit and Pokec), there were minor discrepancies in application performance compared to cuSparseCSR due to "holes" in the graph structure.
- The multi-level strategy in GPMA+ can lead to a sharp performance increase for certain batch sizes due to shared-memory constraints on their hardware.
- Future Work:
- Explore hybrid CPU-GPU approaches for dynamic graph processing.
- Develop more effective optimizations for involved applications.
Summary updated