Abstract
As real-world graphs scale to billions of vertices and trillions of edges, they frequently exceed the memory capacity of single-machine systems. Out-of-core graph processing frameworks address this by utilizing secondary storage like SSDs. However, traditional synchronous models suffer from significant I/O inflation and synchronization overhead. This paper presents ACGraph, a novel asynchronous out-of-core framework that utilizes a block-centric scheduling model and high-performance I/O primitives to maximize hardware utilization. ACGraph achieves up to a 15x speedup over state-of-the-art systems by reducing redundant disk traffic and overlapping computation with I/O.
1. Introduction
Modern graph datasets, such as social networks and web crawls, have grown to a scale where they can no longer fit within the RAM of a single commodity machine. Out-of-core systems solve this by storing the graph on disk and loading active portions into memory as needed. Despite the high bandwidth of modern NVMe SSDs, existing frameworks often fail to saturate the hardware's potential. Most systems rely on a synchronous execution model, which introduces global barriers and leads to "I/O inflation"—where the amount of data read from disk far exceeds the actual data required for computation.
ACGraph is designed to overcome these bottlenecks by shifting from a vertex-centric synchronous approach to a block-centric asynchronous model. By treating disk blocks as the primary unit of scheduling and leveraging the Linux io_uring interface, ACGraph minimizes idle time and maximizes the utility of every byte fetched from storage.
2. Challenges in Out-of-Core Processing
Traditional out-of-core systems face two primary categories of inefficiency:
2.1 I/O and Work Inflation
Read inflation occurs when a system must load a full 4KB disk block to access a single vertex's edge list. If the system only processes that one vertex before discarding the block, the remaining data in the block is wasted. Furthermore, synchronous algorithms often suffer from "work inflation," performing more total operations across iterations than a sequential or asynchronous counterpart would require to reach convergence.
2.2 Synchronization Stalls
In a synchronous model, threads must wait at a global barrier at the end of each iteration. This leads to the "log-tail" problem: in the final stages of an algorithm, only a few vertices may be active, leaving most CPU cores and the SSD idle. This prevents the system from maintaining a consistent, high-throughput pipeline.
3. The ACGraph Architecture
ACGraph introduces several architectural innovations to address the limitations of synchronous out-of-core processing.
3.1 Block-Centric Asynchronous Model
Rather than scheduling individual vertices, ACGraph schedules 4KB disk blocks. When a block is loaded into memory, the system immediately processes all active vertices within that block. This ensures that the overhead of a disk read is amortized across as many updates as possible, significantly increasing the "utility" of each I/O operation.
3.2 Dual-Queue Asynchronous Worklist
To manage tasks efficiently, ACGraph maintains two distinct queues:
- Cached Queue: Contains blocks already present in the page cache or application memory.
- Uncached Queue: Contains blocks residing on disk.
The scheduler prioritizes the Cached queue to maximize data reuse. By processing cached data while simultaneously preloading uncached blocks, the system effectively hides I/O latency.
3.3 Pipelined Execution with io_uring
ACGraph utilizes the Linux io_uring interface for asynchronous I/O. Unlike traditional systems that use dedicated I/O threads—which often incur high context-switching costs—ACGraph allows worker threads to adaptively trigger I/O requests. This creates a tight loop between computation and data fetching, allowing the system to maintain near-peak SSD bandwidth.
3.4 Hybrid Storage Format
To optimize the memory footprint of vertex data, ACGraph employs a hybrid storage format. It reorders vertices to improve locality and uses a "mini-vertex" optimization for low-degree vertices (e.g., degree $\le 2$). By eliminating explicit degree fields for these vertices and storing their neighbors in compact arrays, ACGraph reduces the memory required for the vertex index.
4. Experimental Evaluation
ACGraph was evaluated against state-of-the-art frameworks, including Blaze and CAVE, using four massive real-world datasets:
- Twitter: 1.5B edges (Social network)
- Friendster: 3.6B edges (Social network)
- UK-Union: 5.5B edges (Web graph)
- ClueWeb12: 43B edges, 166GB on disk (Web graph)
Testing was conducted on a machine equipped with 64 threads and high-performance NVMe SSDs. Synthetic R-MAT graphs were also used to evaluate performance under varying degrees of power-law skewness.
5. Key Results and Insights
5.1 Performance Speedups
ACGraph consistently outperformed its competitors across all datasets and algorithms. It achieved up to a 15x speedup over Blaze and a 12x speedup over CAVE. The performance gap was most pronounced in large-diameter graphs where synchronous systems struggle with long tails of low activity.
5.2 I/O Efficiency and Saturation
On the ClueWeb12 dataset, ACGraph reduced total I/O volume by up to 60% compared to Blaze. While synchronous systems showed "spiky" disk utilization—frequently dropping to zero during synchronization barriers—ACGraph maintained a steady throughput near the hardware limit of ~5 GB/s.
5.3 Scalability
The framework demonstrated excellent vertical scalability, showing near-linear performance improvements as the thread count increased from 2 to 64. This indicates that the asynchronous model effectively minimizes thread contention and synchronization overhead.
6. Conclusion and Future Work
ACGraph demonstrates that moving to an asynchronous, block-centric model can fundamentally transform the efficiency of out-of-core graph processing. By prioritizing I/O utility and leveraging modern kernel interfaces, it removes the barriers that have historically limited SSD-based graph engines.
Future work includes extending the system to a "fully-external" model where vertex state also resides on disk, and developing an automated mechanism to switch between synchronous and asynchronous modes based on the specific characteristics of the algorithm and dataset being processed.
Summary updated