NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GraphMP: I/O-Efficient Big Graph Analytics on a Single Commodity Machine

Peng Sun, Yonggang Wen, Ta Nguyen Binh Duong, Xiaokui Xiao

TL;DR

This paper introduces GraphMP, a novel system for analyzing massive graphs on a single, commodity machine. By employing a vertex-centric sliding window model, selective shard skipping, and compressed edge caching, GraphMP significantly reduces disk I/O, outperforming existing out-of-core systems by up to 30x and matching the performance of distributed systems.

What Problem Does This Paper Address?

The explosion of "Big Data" has led to an increased need for analyzing large-scale graphs, which are fundamental to many real-world problems like social network analysis and recommendation systems. While in-memory graph processing systems can be very fast, they require substantial memory, often exceeding the capacity of a single machine. Out-of-core systems, designed to handle graphs larger than memory, often suffer from high disk I/O overhead, which becomes a significant performance bottleneck. Existing solutions either require expensive cluster infrastructure or are hampered by slow disk access. This paper aims to bridge this gap by enabling efficient, large-scale graph analytics on a single, affordable machine.

Methods

GraphMP tackles the disk I/O challenge with three core techniques:

  • Vertex-Centric Sliding Window (VSW) Computation Model: Instead of reading and writing entire vertices to disk in each iteration, GraphMP keeps all vertices in memory. It processes edges shard by shard, updating vertex values in a separate destination array. This avoids repeated disk writes for vertex data until the program's end.
  • Selective Scheduling: Many graph algorithms exhibit convergence, meaning some vertices stop updating after a few iterations. GraphMP uses Bloom filters to identify "inactive" shards (those whose associated vertices are no longer active) and skips loading and processing them, further reducing unnecessary disk I/O.
  • Compressed Edge Caching: GraphMP leverages available memory beyond what's needed for vertices to cache compressed edge shards. When a shard is needed, it's first checked in the cache. A cache hit avoids disk access entirely. If it's a miss, the shard is loaded from disk and potentially compressed to maximize cache utilization.

Datasets

The authors evaluated GraphMP using four real-world directed graph datasets:

  • Twitter: A social network graph with 42 million vertices and 1.5 billion edges.
  • UK-2007: A web graph with 134 million vertices and 5.5 billion edges.
  • UK-2014: A web graph with 788 million vertices and 47.6 billion edges.
  • EU-2015: A large web graph with 1.1 billion vertices and 91.8 billion edges.

These datasets are described as "power-law graphs," meaning most vertices have few neighbors, while a few have a very large number of neighbors. For the Connected Components (CC) application, directed graphs were converted to undirected graphs.

Key Insights and Ideas

  • Memory is Key, but Not All-or-Nothing: The paper demonstrates that while in-memory systems are fast, they are not always feasible. GraphMP shows that by intelligently managing memory for vertices and using caching for edges, a single machine can be surprisingly powerful.
  • Convergence is an Opportunity, Not Just a Problem: The selective scheduling technique highlights how the inherent convergence of many graph algorithms can be exploited to dramatically reduce computation. Skipping inactive shards is a significant optimization.
  • Compression Pays Off for I/O: The compressed edge caching mechanism is crucial. Even with the overhead of decompression, caching compressed shards significantly reduces disk I/O, leading to substantial performance gains.
  • Single Machine Power: The results strongly suggest that for many large-scale graph analytics tasks, a single, well-equipped commodity machine can rival or even surpass distributed systems, especially when I/O is the bottleneck.

Key Results

  • Outperforming Existing Systems: GraphMP significantly outperforms single-machine out-of-core systems like GraphChi, X-Stream, and GridGraph by up to 30x for applications like PageRank on the EU-2015 dataset.
  • Competitive with Distributed Systems: GraphMP achieves performance comparable to distributed graph engines like Pregel+, PowerGraph, and Chaos, despite using significantly fewer resources (a single machine vs. a cluster of 9 servers).
  • Selective Scheduling Benefits: Selective scheduling can improve iteration performance by up to 1.67x (PageRank) and 2.86x (SSSP), leading to overall performance improvements of 5.8% (PageRank) and 50.1% (SSSP).
  • Compressed Caching Speedups: Compressed edge caching can speed up PageRank by 8.3x, SSSP by up to 1.2x, and CC by up to 8.1x compared to no caching.
  • Memory Efficiency: While GraphMP-NC (no caching) uses more memory than GraphChi, X-Stream, and GridGraph, GraphMP-C (with caching) can store massive graphs entirely in memory (after initial loading), eliminating disk I/O for edges. For EU-2015, it uses 91.37GB to cache all edges.

Limitations and Future Work

  • Memory Requirement for Vertices: GraphMP requires all vertices to fit into memory. While this is feasible for most commodity machines and even large graphs, extremely vertex-dense graphs might still pose a challenge.
  • Preprocessing Cost: While GraphMP's preprocessing I/O cost is comparable to other systems, it's still a significant step. The paper mentions that X-Stream offers better preprocessing performance for very large datasets.
  • Future Work: The authors suggest exploring systems like FlashGraph or Mosaic for machines with large flash memory or non-volatile memory. For environments with abundant memory (e.g., supercomputers), in-memory systems like GraphMat are suitable. For high-speed networks and massive memory, distributed systems remain an option. The paper also hints at further optimizations for selective scheduling and caching strategies.

Summary updated

BibTeX
@article{sun2020graphmp,
  author = {Peng Sun and Yonggang Wen and Ta Nguyen Binh Duong and Xiaokui Xiao},
  title = {{GraphMP: I/O-Efficient Big Graph Analytics on a Single Commodity Machine}},
  journal = {IEEE Trans. Big Data},
  year = {2020},
  doi = {10.1109/tbdata.2019.2908384},
}
Figure