Out-of-Core Edge Partitioning at Linear Run-Time

Ruben Mayer, Kamil Orujzade, Hans-Arno Jacobsen

Researchers have developed 2PS-L, the first stateful "out-of-core" edge partitioning algorithm that runs in linear time ($O(|E|)$). By using a lightweight streaming clustering phase to prune the search space, 2PS-L achieves high-quality partitions up to 600x faster than existing stateful methods while maintaining a tiny memory footprint.

The Challenge of Massive Graph Partitioning

Processing massive graphs, such as social networks or web crawls, requires distributing the data across a cluster. Edge partitioning is the standard approach for "power-law" graphs, where a small number of nodes possess a disproportionately large number of connections. The objective is to distribute edges into $k$ equal-sized buckets while minimizing the replication factor (RF)—the number of times a vertex is copied across different machines.

Existing solutions face a difficult trade-off:

  1. In-memory partitioners: Offer high-quality cuts but require massive RAM (e.g., 28 GB for a Twitter graph).
  2. Stateless streaming partitioners: Extremely fast and memory-efficient but produce poor-quality cuts, increasing downstream communication overhead.
  3. Stateful streaming partitioners (e.g., HDRF): Provide better quality but suffer from $O(|E| \cdot k)$ complexity. As the number of partitions ($k$) grows, the partitioning time explodes.

2PS-L addresses this "bottleneck of $k$," providing a stateful, out-of-core algorithm that maintains linear runtime regardless of the partition count.

Methodology: 2-Phase Streaming in Linear Runtime

2PS-L (2-Phase Streaming in Linear runtime) decomposes the partitioning process into two distinct phases to break the $O(|E| \cdot k)$ complexity.

Phase 1: Streaming Clustering

Instead of immediate partitioning, the algorithm performs an initial pass over the edges to group vertices into "clusters" based on neighborhood density. This phase utilizes an extension of the Hollocou algorithm, modified with a "volume cap" to prevent clusters from becoming excessively large.

Algorithm for streaming clustering and pass performance.

Phase 2: Partitioning

  • Mapping: Clusters are treated as jobs and partitions as machines. Using a sorted list scheduling approach, clusters are assigned to partitions to balance the total "volume" (sum of degrees).
  • Scoring: For any given edge $(u, v)$, the algorithm only evaluates the scoring function for the two partitions associated with the clusters of $u$ and $v$. By restricting the search space to these two candidates instead of all $k$ partitions, the complexity drops to $O(|E|)$.

Key Insights

  • Search Space Pruning: A vertex is most likely already replicated on the partition associated with its cluster. Evaluating the other $k-1$ partitions is computationally redundant.
  • Clustering as a Pre-processor: Clustering is less constrained than partitioning (clusters don't need to be perfectly balanced). 2PS-L leverages this flexibility to capture global graph structure before applying rigid partitioning constraints.
  • Volume-Aware Scoring: The scoring function prioritizes "cluster volume." Large clusters are favored for edge placement, anticipating that more connected edges will appear later in the stream.

Performance Evaluation

The authors evaluated 2PS-L on massive real-world datasets, including social networks (Twitter, Friendster) and web graphs (WDC with 64 billion edges).

Comparison of Replication Factor and Run-time across different partition counts.

Key Results

  • Speed and Scalability: At $k=256$ partitions on the Twitter graph, 2PS-L was 12.3x faster than HDRF and 2500x faster than METIS. Crucially, its runtime remains nearly flat as $k$ increases, unlike competitors.
  • Partition Quality: 2PS-L consistently achieved lower Replication Factors than other streaming partitioners. For the GSH graph at $k=256$, the stateless DBH algorithm had an RF 6.4x higher than 2PS-L.
  • Efficiency: 2PS-L provided the lowest total time-to-solution (partitioning + processing) in most PageRank benchmarks.
  • Memory Footprint: For the Twitter graph, 2PS-L required only 2.7 GB of RAM, compared to 28 GB for state-of-the-art in-memory tools.

Limitations and Future Work

2PS-L is a multi-pass algorithm, making it sensitive to I/O speeds; performance can degrade significantly on slow HDDs compared to SSDs. Additionally, while it leads among out-of-core tools, top-tier in-memory partitioners still offer slightly better replication factors if sufficient RAM is available. Future research may extend 2PS-L to hypergraphs and dynamic graph environments.

Summary updated

BibTeX
@inproceedings{mayer2022out,
  author = {Ruben Mayer and Kamil Orujzade and Hans-Arno Jacobsen},
  title = {{Out-of-Core Edge Partitioning at Linear Run-Time}},
  booktitle = {ICDE},
  year = {2022},
  doi = {10.1109/icde53745.2022.00242},
}
Figure