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

FlashGraph: Processing Billion-Node Graphs on an Array of Commodity SSDs

Da Zheng, Disa Mhembere, Randal C. Burns, Joshua T. Vogelstein, Carey E. Priebe, Alexander S. Szalay

Abstract

FlashGraph is a semi-external memory graph engine designed to process billion-node graphs on a single multicore server using commodity SSDs. By maintaining vertex state in RAM while offloading massive edge lists to SSDs, FlashGraph achieves performance comparable to in-memory systems at significantly lower hardware costs.

Introduction

Graph analysis at scale faces a fundamental challenge: real-world graphs often follow power-law distributions, making them difficult to partition across distributed systems. Traditionally, practitioners chose between expensive distributed in-memory systems (limited by network latency) or slow external-memory systems (limited by HDD random access speeds). FlashGraph occupies the "sweet spot," leveraging the high IOPS of modern SSDs to enable high-performance processing on a single commodity server.

System Architecture and Methods

FlashGraph introduces a semi-external memory model where vertex state—small and frequently updated—is stored in RAM, while massive, read-only edge lists reside on an array of SSDs.

FlashGraph System Architecture

Key technical innovations include:

  • SAFS (Set-Associative File System): A custom user-space file system optimized for SSD arrays that bypasses kernel overhead and uses asynchronous I/O to overlap computation.
  • Selective Access: Unlike streaming engines, FlashGraph fetches only the edge lists required by active vertices in a given iteration.
  • I/O Request Merging: The system sorts and merges requests for vertices on the same SSD pages to maximize throughput.
  • 2D Partitioning: To handle "super-nodes" (vertices with millions of edges), FlashGraph employs both horizontal and vertical partitioning to ensure parallel processing without bottlenecks.
2D Partitioning and Execution Order

Evaluation and Datasets

The system was evaluated using three large-scale directed graphs: Twitter (1.5B edges), Subdomain (2B edges), and a massive Web Graph (129B edges, 1.1 TB). This scale typically requires massive distributed clusters, but FlashGraph handles it on a single machine.

Key Insights

  • SSDs as RAM Extensions: Modern SSD performance allows for thousands of parallel random I/O requests, making full-graph scans unnecessary. We can now treat SSDs as a high-latency, high-capacity extension of system memory.
  • Latency Hiding: An event-driven, asynchronous programming model ensures the CPU remains active while waiting for SSD I/O, maximizing resource utilization.
  • The Super-node Solution: Vertical partitioning allows multiple threads to process different segments of a single large vertex's edge list simultaneously, eliminating computational stragglers that often plague power-law graph processing.

Results

  • Performance Parity: FlashGraph achieves up to 80% of the speed of pure in-memory implementations and often outperforms distributed engines like PowerGraph running on a cluster.
  • Scalability: A Breadth-First Search (BFS) on the 129-billion-edge Page graph was completed in minutes using only 22 GB of RAM.
  • Cost Efficiency: Processing a 1.1 TB graph on a single machine provides a massive cost advantage over the 48-node cluster typically required for in-memory processing.

Limitations and Future Work

The model assumes vertex state fits in RAM; extremely data-heavy vertex programs may still hit memory limits. Additionally, the current design is optimized for read-heavy workloads; dynamic graphs with frequent edge mutations may face challenges related to SSD write amplification and wear-out. Future work will focus on optimizing for real-time dynamic graph updates.

Summary updated

BibTeX
@inproceedings{zheng2014flashgraph,
  author = {Da Zheng and Disa Mhembere and Randal C. Burns and Joshua T. Vogelstein and Carey E. Priebe and Alexander S. Szalay},
  title = {{FlashGraph: Processing Billion-Node Graphs on an Array of Commodity SSDs}},
  booktitle = {FAST},
  year = {2014},
  doi = {10.48550/arxiv.1408.0500},
}
Figure