GRE: A Graph Runtime Engine for Large-Scale Distributed Graph-Parallel Applications

Jie Yan, Guangming Tan, Ninghui SunarXiv 2013

Abstract

Distributed graph processing faces significant challenges when dealing with massive, scale-free graphs characterized by power-law degree distributions. Traditional frameworks often rely on the Gather-Apply-Scatter (GAS) model, which incurs high synchronization and communication overhead. This paper presents GRE (Graph Runtime Engine), a high-performance distributed framework that optimizes graph analytics through two key innovations: a one-sided "Scatter-Combine" computation model and an "Agent-Graph" data layout. By utilizing active messages and vertex factorization, GRE achieves up to 17x performance improvements over state-of-the-art systems like PowerGraph and demonstrates the ability to process graphs with over 1 billion vertices on modest hardware.

Introduction

Processing massive, real-world graphs—such as social networks or web-link structures—is notoriously difficult for distributed systems. These graphs are typically "scale-free," meaning a small number of "super-nodes" possess millions of connections while the vast majority have very few. This distribution creates two primary bottlenecks: irregular parallelism that leads to high memory overhead, and difficult data partitioning that results in excessive network traffic across machine boundaries.

Existing frameworks like PowerGraph utilize the Gather-Apply-Scatter (GAS) model. While effective for some tasks, GAS requires two-sided synchronization for every edge, leading to redundant storage and heavy communication traffic. GRE addresses these limitations by rethinking both the computation and data models.

System Architecture and API

GRE provides a vertex-centric API that allows users to define graph computations easily. The system is structured into several layers: the Vertex-centric API, the GRE Abstraction layer (handling the Scatter-Combine and Agent-Graph models), and the GRE Runtime, which manages multi-threading and one-sided communication.

Figure 1: Overview of the GRE system architecture, including the user-defined computation, API, abstraction layers, and runtime components.

The Scatter-Combine Computation Model

To overcome the overhead of the three-phase GAS model, GRE introduces the Scatter-Combine model based on active messages. In the traditional GAS model, a vertex must wait to "gather" information from its neighbors. In contrast, GRE uses a one-sided dataflow:

  • Scatter: An active vertex generates a message containing both data and a specific operation.
  • Combine: This message is sent to the target vertex and executed immediately upon arrival.

This transformation eliminates the need for the target vertex to poll for updates or store intermediate edge states. By bypassing the explicit "Gather" phase, GRE can overlap computation with communication much more effectively, enabling fine-grained, edge-level parallelism.

Figure 4: Comparison between (a) the traditional GAS model and (b) the GRE Scatter-Combine model, highlighting the shift to one-sided active messages.

The Agent-Graph Data Model

To handle the load imbalance caused by super-nodes, GRE employs vertex factorization through a novel Agent-Graph model. Unlike previous "mirroring" approaches that require constant two-way synchronization to maintain consistency, GRE introduces specialized agents:

  • Combiner Agents: These collect messages locally and send a single aggregated update to the master vertex.
  • Scatter Agents: These receive a single update from a master vertex and distribute it to local neighbors.

Because these agents function as one-way proxies rather than full replicas, they significantly reduce the synchronization overhead typically associated with vertex-cut partitioning.

Evaluation and Key Results

The authors evaluated GRE using massive real-world datasets (e.g., Twitter with 1.4B edges, Friendster with 1.8B edges) and synthetic R-MAT graphs scaling up to 1 billion vertices and 17 billion edges.

Key findings include:

  • Performance: GRE outperformed PowerGraph by 2.5x to 17x across various benchmarks. For instance, PageRank on the Twitter graph took only 2.19 seconds per iteration on a 16-node cluster, compared to 3.6 seconds for PowerGraph on a much larger 64-node cluster.
  • Scalability: GRE successfully processed a 1-billion vertex graph on a cluster with 768GB of RAM, a scale that caused PowerGraph to fail due to memory exhaustion.
  • Efficiency: The Agent-Graph model reduced edge-cut rates by 50% to 91% compared to standard random hashing, demonstrating superior partitioning quality.

Conclusion

GRE demonstrates that by moving from two-sided synchronization to one-sided active messages and utilizing a specialized agent-based data layout, distributed graph processing can achieve significant gains in both speed and memory efficiency. While currently optimized for Bulk Synchronous Parallel (BSP) execution on static graphs, GRE sets a new standard for processing billion-scale graphs on commodity clusters.

Summary updated

BibTeX
@misc{yan2013gre,
  author = {Jie Yan and Guangming Tan and Ninghui Sun},
  title = {{GRE: A Graph Runtime Engine for Large-Scale Distributed Graph-Parallel Applications}},
  year = {2013},
  eprint = {1310.5603},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1310.5603},
}
Figure