TL;DR
This paper introduces ParaGrapher, a high-performance API and library designed to efficiently load large-scale compressed graphs. By optimizing the loading process for formats like WebGraph, ParaGrapher significantly speeds up graph analysis and facilitates easier, more accurate comparisons across different graph processing frameworks.
What Problem Does This Paper Address?
Evaluating contributions in High-Performance Graph Processing (HPGP) is crucial, but it's hampered by the lack of standardized graph input formats across various frameworks. Each framework often uses its own proprietary format, making it difficult to use large, real-world graph datasets and compare results consistently. This creates a bottleneck for researchers and developers who need to:
- Accelerate algorithm design: Quickly load and experiment with new graph algorithms.
- Enable comprehensive evaluation: Test algorithms on a diverse range of graph datasets.
- Facilitate framework comparison: Easily benchmark different HPGP frameworks.
The problem is exacerbated by the increasing size of graph datasets (trillions of nodes/edges) and the benefits of compression (reduced storage and faster loading), which often come with their own format incompatibilities.
Methods
The core of this work is ParaGrapher, a C/C++ API and library that addresses the graph loading challenge. Key methodological aspects include:
- High-Performance Loading: ParaGrapher is designed for speed, supporting both synchronous (blocking) and asynchronous (non-blocking) loading. It can handle unweighted, vertex-weighted, and edge-weighted graphs.
- WebGraph Support: A primary focus is on efficiently loading graphs compressed using the WebGraph format, which is widely used for large-scale real-world graphs. This involves a parallel Java back-end for decompression integrated with a C/C++ front-end.
- Flexible Access: The API allows users to request the entire graph or specific subgraphs, down to individual vertex neighbor lists. This caters to various use cases, including shared-memory, distributed-memory, and out-of-core processing.
- Performance Modeling: The authors developed a model to understand the interplay between storage bandwidth, compression ratio, and decompression speed. This model helps predict when decompression becomes the bottleneck.
- Consumer-Producer Pattern: For WebGraph loading, ParaGrapher employs a consumer-producer pattern between C (consumer) and Java (producer) components, using shared memory for efficient communication and parallel decompression.
Datasets
The paper evaluates ParaGrapher using a combination of real-world and synthetic graph datasets. These include:
- Real-world graphs: RD (US Roads), TW (Twitter 2010), SH (Software Heritage Gitlab), CW (ClueWeb 2012), MS (MS-BioGraphs).
- Synthetic graph: G5 (Graph500 RMAT).
The authors note that some datasets were compressed into WebGraph format for the experiments, while others were already available in this format.
Key Insights and Ideas
- Decompression is the new bottleneck: For fast storage like SSDs, the speed of decompressing compressed graphs (like WebGraph) often becomes the limiting factor, rather than storage bandwidth itself. This highlights the need for optimized decompression.
- Compression still pays off: Even with decompression overhead, using compressed formats like WebGraph with ParaGrapher can still offer significant speedups (up to 3.2x for loading, 5.2x for end-to-end execution) compared to uncompressed binary or textual formats.
- Parallelism is key, but storage-dependent: While parallelizing decompression is crucial, its effectiveness varies with storage type. HDDs can be saturated by a single thread, whereas SSDs benefit more from increased thread counts.
- Flexible loading enables new use cases: The ability to load subgraphs or process data incrementally is vital for out-of-core and distributed graph processing, allowing analysis of graphs larger than memory.
Key Results
ParaGrapher demonstrates significant performance improvements:
- Loading Speedup: Up to 3.2 times speedup in graph loading compared to binary and textual formats when decompressing WebGraph compressed graphs.
- End-to-End Execution Speedup: Up to 5.2 times speedup in overall execution time (including interleaved loading and processing) compared to binary and textual formats.
- Throughput: Achieves throughputs of up to 129 ME/s on HDD and 260 ME/s on SSD, significantly exceeding the baseline storage throughput for uncompressed formats.
- NAS Performance: On NAS storage, ParaGrapher achieved up to 179 ME/s, a 7.3x improvement over Binary CSX.
- Partial Loading Efficiency: For the Weakly-Connected Components algorithm, ParaGrapher showed up to 5.2x speedup by enabling partial graph loading, avoiding "Out of Memory" errors on large datasets.
Limitations and Future Work
- Decompression Scalability: While ParaGrapher shows good scalability, the sequential loading of graph metadata in WebGraph (ImmutableGraph.loadMapped) limits full parallelization, accounting for 12.9-60.6% of execution time in some cases.
- Optimizing Decompression Bandwidth: Future work could focus on further optimizing decompression bandwidth, especially for high-bandwidth storage.
- Network-Based Distributed Decompression: Exploring distributed decompression where multiple machines collaborate on decompressing a graph is a promising avenue.
- Compression Algorithm Trade-offs: Investigating compression algorithms that offer a better balance between compression ratio and decompression speed is suggested.
- Language-Specific Optimizations: Further optimizing the performance of storage access through language-specific techniques (e.g., C vs. Java implementations) could yield benefits.
Summary updated