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

NGraph: Parallel Graph Processing in Hybrid Memory Systems

Wei Liu, Haikun Liu, Xiaofei Liao, Hai Jin, Yu ZhangIEEE Access 2019

Abstract

Modern big data applications require massive memory for graph processing, often exceeding the capacity of traditional DRAM. While Non-Volatile Memory (NVM) offers a cost-effective alternative, its performance is hindered by high latency and low bandwidth for random writes. This paper presents NGraph, a parallel graph processing framework optimized for hybrid memory systems (DRAM + NVM). By employing heterogeneity-aware data placement and destination-vertex partitioning, NGraph eliminates thread contention and mitigates NVM's performance bottlenecks. Our evaluation demonstrates that NGraph achieves up to 48% better performance than state-of-the-art systems like Ligra and Polymer, reaching approximately 84% of the performance of pure DRAM systems.

Introduction

Graph processing is fundamental to social network analysis, web ranking, and recommendation systems. However, the scale of modern graphs necessitates massive memory footprints. Traditional DRAM is fast but expensive and power-hungry, limiting scalability. Emerging NVM technologies, such as Intel Optane, provide higher density and lower costs but suffer from significantly higher latency, particularly for random write operations.

Comparison of memory read and write latencies for DRAM and various NVM configurations, highlighting the performance penalty of random access.

Existing frameworks often treat hybrid memory as a single pool or use "blind" placement strategies, leading to "hot" data being placed on slow NVM. Furthermore, parallel processing on multi-core systems frequently suffers from atomic update contention, where multiple threads compete to update the same memory location, stalling the CPU.

The NGraph Framework

NGraph introduces several novel strategies to harmonize the strengths of DRAM and NVM:

  1. Heterogeneity-Aware Data Placement: NGraph analyzes access patterns to place large, read-only, or sequentially accessed data (e.g., edge lists) in high-capacity NVM. Frequently updated and randomly accessed data (e.g., vertex properties) are placed in faster DRAM.
  2. Destination-Vertex Partitioning: To eliminate contention, NGraph partitions the graph based on destination vertices. This ensures each thread is responsible for a unique set of vertex updates, removing the need for expensive atomic operations and cache-line locking.
  3. Task Decomposition & Work-Stealing: Sub-graphs are broken into smaller blocks, allowing idle threads to "steal" work from busy ones to maintain load balance.
  4. Software-Based Pre-fetching: A custom pre-fetching scheme targets vertex properties when a vertex's degree exceeds a specific threshold, effectively hiding NVM access latency.
  5. Hugepage Support: By leveraging Linux Transparent Huge Pages (THP), NGraph reduces the overhead of virtual-to-physical address translation (TLB misses).

Experimental Evaluation

NGraph was evaluated using massive synthetic and real-world datasets, including Twitter (1.47B edges), Friendster (1.81B edges), Rmat27 (2.14B edges), and Random-local (2B edges). Benchmarks included Breadth-First Search (BFS), PageRank (PR), Connected Components (CC), and Sparse Matrix-Vector Multiplication (SPMV).

Execution time comparison between DRAM+NVM and DRAM+SSD systems across various graph algorithms.

Key Results

  • Performance Gains: NGraph outperformed Ligra and Polymer across all benchmarks, showing a geometric mean improvement of 13.3% to 45.8%. The highest gain was a 48.28% improvement in PageRank.
  • Efficiency: In a hybrid system, NGraph achieved roughly 84% of the performance of a pure DRAM system while utilizing significantly less expensive memory.
  • Optimization Impact: Hugepage support reduced execution time by up to 44.8%, while custom pre-fetching improved performance by an additional 3% to 8%.

Discussion and Future Work

The primary trade-off in NGraph is memory overhead. Partitioning the graph for different cores requires replicating some vertex structure data, leading to a memory usage increase of 16.5% to 47.1% compared to other systems. While NVM's high capacity mitigates this, future work will explore compressed graph data structures to reduce the footprint without sacrificing the performance gains of the destination-vertex partitioning strategy.

Summary updated

BibTeX
@article{liu2019ngraph,
  author = {Wei Liu and Haikun Liu and Xiaofei Liao and Hai Jin and Yu Zhang},
  title = {{NGraph: Parallel Graph Processing in Hybrid Memory Systems}},
  journal = {IEEE Access},
  year = {2019},
  doi = {10.1109/access.2019.2931058},
}
Figure