Efficient Large Graph Processing with Chunk-Based Graph Representation Model

Rui Wang, Weixu Zong, Shuibing He, Xinyu Chen, Zhenxin Li, Zheng DangUSENIX ATC 2024

TL;DR

This paper introduces ChunkGraph, a novel system for processing massive graphs on NVMe SSDs. By employing a "chunk-based" data representation and optimized storage, ChunkGraph significantly boosts I/O efficiency and outperforms existing external graph processing systems and general-purpose caching solutions, achieving speedups of several times.

What Problem Does This Paper Address?

Processing extremely large graphs that don't fit into a single machine's memory is a significant challenge. Existing "out-of-core" graph processing systems often rely on subgraph-based models that, while effective for slower HDDs, become inefficient with fast NVMe SSDs due to high synchronization overhead and low I/O utilization. In-memory systems augmented with OS page caches also struggle, as their fixed 4KB page granularity doesn't align well with the varying sizes of graph data, leading to wasted I/O and metadata management costs. This paper aims to bridge this gap by designing a system that leverages NVMe SSDs' capabilities for efficient, user-friendly large-scale graph processing without requiring algorithm modifications.

Methods

The core innovation is ChunkGraph's chunk-based graph representation model. Instead of fixed-size pages, it organizes graph data into "chunks" of varying sizes, tailored to vertex degrees. This model features:

  • Classified and Hierarchical Vertex Storage: Vertices are categorized into "mini" (degree ≤ 2), "medium" (intermediate degrees), and "super" (high degrees). Mini vertices' neighbor information is stored directly in memory, eliminating I/O. Medium vertices are stored in hierarchical chunks of different sizes (4KB to 2MB), ensuring a vertex and its neighbors reside within a single chunk to avoid the "vertex cut" problem. Super vertices are handled with a dedicated approach.
  • Chunk Layout Optimization: To improve data locality within chunks, vertices are reordered and combined. This involves prioritizing vertices with higher in-degrees and using smaller vertices to fill fragment spaces, minimizing wasted space and improving cache performance.
  • Differentiated Chunk Access Optimization: This technique optimizes access patterns for both sparse (top-down) and dense (bottom-up) graph traversals, ensuring efficient data retrieval regardless of the access style.

ChunkGraph is implemented by modifying the storage and access components of the popular in-memory graph system Ligra, allowing existing Ligra algorithms to run directly on ChunkGraph without code changes.

Datasets

The authors evaluated ChunkGraph using a combination of real-world and synthetic graph datasets:

  • Real-world: Twitter, Friendster, UKdomain, Yahoo Web.
  • Synthetic: Kronecker graphs (Kron-29 and Kron-30) generated by the graph500 generator.

These datasets vary in size and characteristics, allowing for a comprehensive evaluation of ChunkGraph's performance across different graph structures.

Key Insights and Ideas

  • NVMe SSDs demand new graph storage paradigms: The high bandwidth and low latency of NVMe SSDs render traditional subgraph-based approaches inefficient. ChunkGraph's chunk-based model is specifically designed to exploit these characteristics.
  • Vertex degree is a crucial factor for efficient storage: Classifying vertices by degree and using tailored storage strategies (in-memory for mini, hierarchical chunks for medium, etc.) is key to minimizing I/O and metadata overhead.
  • Avoiding the "vertex cut" problem is vital: By ensuring that a vertex and its neighbors are stored within the same chunk, ChunkGraph significantly reduces redundant I/O operations that plague page-based caching.
  • Layout optimization dramatically improves I/O: Reordering vertices and intelligently filling fragments within chunks leads to better data locality and reduces the amount of data read from disk.
  • User-friendliness is maintained: By building upon an existing in-memory framework (Ligra), ChunkGraph allows users to run their graph algorithms without modification, lowering the barrier to entry for large-scale graph processing.

Key Results

  • Significant Speedups: ChunkGraph consistently outperforms Blaze (an out-of-core system) and Ligra-mmap (an in-memory system with OS page cache) by several times across various graph algorithms. Speedups range from 1.62x to 23.09x compared to Blaze and 1.08x to 2.94x compared to Ligra-mmap for sparsely accessed algorithms.
  • Reduced I/O Overhead: ChunkGraph reduces disk read data by 1.06x to 13.83x on YahooWeb and 1.16x to 14.14x on Kron30 compared to Blaze, and by 1.07x to 3.85x compared to Ligra-mmap.
  • Lower Computation Overhead: ChunkGraph's computation costs are comparable to Ligra-mmap, significantly lower than Blaze, which incurs high overhead due to subgraph synchronization.
  • Scalability: ChunkGraph demonstrates good scalability with increasing memory budgets and computing threads.
  • Competitive Preprocessing: While ChunkGraph has a slightly higher preprocessing cost than Ligra-mmap due to chunk layout optimization, the difference is limited and acceptable for its performance gains.

Limitations and Future Work

  • Densely accessed algorithms: For algorithms like PageRank that exhibit low memory access locality and dense access patterns, ChunkGraph's performance improvement is less pronounced and can sometimes be slightly slower than Ligra-mmap or Blaze.
  • Preprocessing time: While acceptable, the preprocessing time for ChunkGraph is higher than Ligra-mmap due to its chunk layout optimization.

The authors suggest that their chunk-based model is orthogonal to computing models and can be applied to other graph systems for performance improvements. Future work could explore further optimizations for specific algorithm classes or hardware architectures.

Summary updated

BibTeX
@inproceedings{wang2024efficient,
  author = {Rui Wang and Weixu Zong and Shuibing He and Xinyu Chen and Zhenxin Li and Zheng Dang},
  title = {{Efficient Large Graph Processing with Chunk-Based Graph Representation Model}},
  booktitle = {USENIX ATC},
  year = {2024},
  url = {https://openreview.net/forum?id=DUWgkAK0kZ},
}
Figure