NXgraph: An Efficient Graph Processing System on a Single Machine

Yuze Chi, Guohao Dai, Yu Wang, Guangyu Sun, Guoliang Li, Huazhong Yang · DOI

Abstract

NXgraph is a high-performance graph processing system designed to handle massive graphs on a single commodity machine. By introducing the Destination-Sorted Sub-Shard (DSSS) data structure and adaptive memory management strategies, NXgraph achieves high CPU parallelism and sequential I/O throughput. Evaluation on large-scale real-world datasets, such as the Twitter social graph with 1.5 billion edges, demonstrates that NXgraph can outperform distributed systems like PowerGraph, completing iterations in 2.05 seconds.

Introduction

Graph processing is a fundamental task in data science, yet it remains computationally challenging due to the irregular access patterns of graph traversals. For massive graphs that exceed available RAM, this "poor locality" behavior leads to significant performance bottlenecks in disk I/O and CPU cache utilization. While distributed clusters were traditionally used to scale graph processing, they introduce overheads such as network latency and load imbalance. NXgraph explores the potential of single-machine systems to maximize hardware utilization and provide a cost-effective alternative for big data graph analytics.

Methods

NXgraph introduces two core innovations to solve the locality and parallelism bottlenecks: the Destination-Sorted Sub-Shard (DSSS) structure and adaptive updating strategies.

Destination-Sorted Sub-Shard (DSSS)

Traditional graph processing systems often partition edges based on their source vertices. NXgraph instead divides the graph into vertex intervals and edge sub-shards, sorting edges within each sub-shard by their destination vertex. This architectural shift is critical for parallelism; by ensuring that different threads update distinct ranges of destination vertices, NXgraph eliminates the need for synchronization locks, thereby enabling fine-grained parallelism without write conflicts.

Figure 1: The mapping between a sample graph and its Destination-Sorted Sub-Shard (DSSS) representation.

Adaptive Updating Strategies

To accommodate varying hardware constraints and graph sizes, NXgraph employs three adaptive modes:

  • Single-Phase Update (SPU): Optimized for graphs where vertex data fits in memory, utilizing a "ping-pong" buffer to maximize processing speed.
  • Double-Phase Update (DPU): Designed for massive graphs on disk, using "hubs" to aggregate updates and maintain sequential I/O.
  • Mixed-Phase Update (MPU): A hybrid approach that prioritizes in-memory processing for as many vertex intervals as possible while falling back to DPU logic for the remainder.
Figure 4: The execution order and ping-pong interval logic within the NXgraph processing framework.

Results

NXgraph was evaluated against state-of-the-art systems using massive real-world networks, including the Yahoo-web graph (6.64B edges). On a single commodity PC, NXgraph completed a PageRank iteration on the Twitter graph in 2.05 seconds, outperforming a 64-node PowerGraph cluster which required 3.6 seconds. Furthermore, NXgraph demonstrated superior performance compared to other single-machine systems like GraphChi and VENUS, achieving over 7x speedup in memory-constrained scenarios. The system also exhibited near-linear scalability with respect to CPU thread count, validating the effectiveness of the DSSS structure in reducing thread contention.

Conclusion

NXgraph demonstrates that intelligent data structuring and adaptive memory management can enable single-machine systems to handle massive graph datasets more efficiently than distributed clusters. Future work includes extending the system to support dynamic graph updates and optimizing for more complex machine learning algorithms on graphs.

Summary updated

BibTeX
@inproceedings{chi2015nxgraph,
  author = {Yuze Chi and Guohao Dai and Yu Wang and Guangyu Sun and Guoliang Li and Huazhong Yang},
  title = {{NXgraph: An Efficient Graph Processing System on a Single Machine}},
  booktitle = {ICDE},
  year = {2015},
  doi = {10.1109/icde.2016.7498258},
}
Figure