TL;DR
ACGraph is a novel asynchronous out-of-core graph processing framework that eliminates the severe I/O inflation and synchronization stalls plaguing traditional synchronous systems. By treating 4KB SSD blocks as first-class scheduling units and pairing them with a dual-queue worklist and a hybrid storage format, ACGraph achieves up to 15× speedups over state-of-the-art frameworks while saturating modern SSD bandwidth.
What Problem Does This Paper Address?
When graph datasets grow too large to fit into a single machine's main memory, developers turn to out-of-core graph processing systems (GPSs). These systems adopt a semi-external memory model: vertex data stays in fast RAM, while the massive edge lists reside on secondary storage like Solid-State Drives (SSDs).
Most existing out-of-core GPSs rely on a strict synchronous execution model, processing graphs iteration-by-iteration separated by global barriers. The authors identify two massive inefficiencies caused by this design:
- I/O Inflation: This includes read inflation (loading an entire 4KB SSD block just to access a few active edges, then evicting it before other edges in the same block can be reused in later iterations) and work inflation (doing redundant computations because vertices aren't processed in an optimal, priority-driven order).
- Synchronization Stalls: Worker threads must pause at the end of every iteration to aggregate new frontiers and rebalance workloads. During these barriers, both the CPU and the SSD's I/O bandwidth sit underutilized, creating a major performance bottleneck—especially during "log-tail" iterations where only a few vertices are active.
Methods
To resolve these bottlenecks, the authors introduce ACGraph, built around three core architectural pillars:
- Block-Centric Asynchronous Execution: Instead of scheduling individual vertices, ACGraph elevates 4KB disk blocks to first-class scheduling entities. Vertices are statically assigned to blocks. Priorities are calculated at the block level by aggregating the priorities of their active internal vertices. Once a block is loaded into memory, executors process all its active vertices continuously, maximizing data reuse.
- Online Asynchronous Worklist: ACGraph utilizes a dual-queue architecture containing a cached queue (for blocks already in memory) and an uncached queue (for blocks on disk). Memory-resident blocks are always prioritized over disk-resident ones. If a block in memory gets reactivated by a neighbor update while being processed, it bypasses disk eviction and immediately goes back to the cached queue.
- Pipelined I/O with
io_uring: ACGraph unifies computation and I/O using Linux's asynchronousio_uringsubsystem. It dynamically adjusts thread distribution: if computation is fast but I/O is slow, threads automatically ramp up task-pulling frequencies to issue more asynchronous preloading requests, keeping the disk fully saturated. - Hybrid Storage Architecture: To save RAM, ACGraph eliminates explicit vertex degree fields. It reorders the graph so that low-degree "mini" vertices ($\le 2$ or $3$ edges) are stored compactly in a dedicated in-memory array, while large vertices reside in disk blocks. The degrees and offsets of these mini vertices are calculated algebraically on-the-fly with $O(1)$ complexity.
Datasets
The framework was evaluated using four massive, real-world graph benchmarks:
- Twitter: A directed social network with 42M vertices and 1.5B edges.
- Friendster: An undirected social network with 66M vertices and 3.6B edges.
- UK-Union: A large-diameter directed web graph with 133M vertices and 5.5B edges.
- ClueWeb12: A massive directed web graph containing 978M vertices and 43B edges.
Key Insights and Ideas
- The Failure of Traditional Caching: The authors demonstrate that even an mathematically optimal cache replacement policy (Belady's OPT) cannot solve read inflation under synchronous semantics. This is because strict barriers prevent blocks from being reused across iteration boundaries, leading to unavoidable reloads.
- Algorithmic Ordering Matters for I/O: In algorithms like Weakly Connected Components (WCC), prioritizing blocks with the smallest labels ensures that updates propagate optimally. This prevents "work inflation," drastically reducing the total volume of edges that need to be read from disk in the first place.
- Co-designing Tasks and Hardware Constraints: Rather than fighting the block-based nature of SSD hardware, ACGraph aligns its logical scheduling units directly with the physical 4KB page size of modern NVMe drives.
Key Results
ACGraph was compared against state-of-the-art out-of-core systems Blaze and CAVE, as well as the in-memory asynchronous system Galois.
- Substantial Speedups: ACGraph consistently outperformed its out-of-core competitors across all algorithms (BFS, WCC, $k$-core, PageRank, SSPPR). It achieved up to 15.21× speedup over Blaze and up to 12.34× speedup over CAVE.
- Bandwidth Saturation: ACGraph achieved sustained disk read throughputs of 4.5 to 5.0+ GB/s, approaching the theoretical 6.0 GB/s sequential limit of the underlying SSD hardware. In contrast, CAVE was bottlenecked below 800 MB/s due to its single-threaded coordination.
- Memory Efficiency: Thanks to its hybrid storage format, ACGraph maintained a lower memory footprint than Blaze and CAVE on most datasets, demonstrating an exceptional trade-off between performance and hardware cost.
Limitations and Future Work
- Manual Execution Mode Selection: ACGraph does not automatically decide whether an algorithm should run in synchronous or asynchronous mode. It exposes separate APIs (
asyncRunandsyncRun), leaving it up to the developer to choose the correct semantics for algorithmic correctness (e.g., problems like Maximal Independent Set require synchronous barriers). The authors note that adaptive, automated mode switching is a promising direction for future research. - Metadata Overhead on Extreme Vertex Counts: On graphs with an exceptionally high vertex-to-edge ratio, maintaining the 64-byte block metadata and 8-byte vertex offset arrays in memory can still introduce noticeable RAM overhead.
Summary updated