TL;DR
This paper introduces MOCgraph, a distributed graph processing framework that significantly reduces memory usage by processing incoming messages as they arrive ("message online computing"). This approach allows MOCgraph to handle larger graphs and more complex analytics with limited memory, outperforming existing frameworks like Giraph, especially when memory is constrained.
What Problem Does This Paper Address?
Processing massive graphs on distributed systems is a major challenge. Existing frameworks like Pregel, GraphLab, and Giraph rely on in-memory computation for efficiency, but this approach quickly hits memory limits when dealing with complex graph analytics that generate large intermediate results (e.g., messages between vertices). When memory is exhausted, these systems either degrade performance severely or crash. While out-of-core solutions exist, they often involve costly disk I/O operations like sorting and merging, further impacting performance. The paper aims to address this memory bottleneck and improve scalability without sacrificing performance.
Methods
The core innovation is the Message Online Computing (MOC) model. Instead of buffering all incoming messages for a superstep and then processing them, MOC processes each message as it arrives. This "on-the-fly" processing drastically reduces the memory required for message storage.
Key aspects of MOCgraph include:
- MOC Model: Allows vertices to process incoming messages and update their state immediately, rather than waiting for a full superstep. This is particularly effective for analytics where intermediate results are large.
- Synchronous and Asynchronous Execution: MOCgraph supports both modes. Asynchronous execution can accelerate convergence for iterative algorithms, while synchronous execution ensures determinism.
- Streaming Out-of-Core Support: MOCgraph integrates out-of-core processing seamlessly with the MOC model, allowing it to handle graphs that don't fit in memory by streaming data from disk.
- Optimizations:
- Edge Separation: For analytics that don't need edge information for vertex updates (only for message sending), edges are separated from vertex partitions to free up memory for more vertex partitions.
- Hot-Aware Re-Partitioning: This strategy reorganizes vertex partitions within a worker to keep "hot" partitions (those expected to receive more messages) in memory, minimizing disk I/O.
- Unified APIs: Provides a single programming interface for both in-memory and out-of-core executions.
Datasets
The paper evaluates MOCgraph on three real-world graph datasets:
- uk-2007-05: A time-aware graph.
- twitter-2010: A follower-following topology from Twitter.
- livejournal: A friendship network from LiveJournal.
They also used synthetic random graphs with edge counts ranging from 1 to 5 billion.
Key Insights and Ideas
- Message Buffering is the Bottleneck: The primary cause of memory exhaustion in existing frameworks is the need to buffer all messages for a superstep. MOC's "on-the-fly" processing directly tackles this.
- MOC is More Expressive and Space-Efficient than Combiners: While Combiners reduce message counts, they have limitations (e.g., can't access vertex values during combine) and still require buffering one combined message per vertex. MOC can emulate Combiners but offers greater flexibility and potentially zero message buffering for certain analytics.
- Out-of-Core Doesn't Have to Be Slow: By integrating MOC with streaming out-of-core processing, MOCgraph avoids the costly sort-merge operations common in other out-of-core systems.
- Optimization Synergy: Edge separation and hot-aware re-partitioning are most effective when used together, significantly reducing disk I/O for out-of-core computations.
Key Results
- Memory Savings: MOCgraph can achieve significant memory reductions, with one case showing an 8x reduction compared to GraphLab.
- Performance Gains:
- For memory-intensive graph analytics with limited memory, MOCgraph can be up to 20x faster than Giraph.
- For Triangle Counting on Twitter with limited memory, MOCgraph finished in 40 minutes, while out-of-core Giraph failed after 10 hours (a 15x speedup).
- MOCgraph achieved comparable time costs to GraphLab in some scenarios while using significantly less memory.
- Asynchronous Execution Benefits: Asynchronous execution in MOCgraph accelerated convergence for tasks like Landmark Index Construction, Connected Components, and Reachability, leading to time speedups.
- Optimization Impact: Edge separation provided 10-30% time speedup for PR, CC, and LM. The combination of edge separation and hot-aware re-partitioning was effective across various tasks.
Limitations and Future Work
- GraphLab Comparison: While MOCgraph shows competitive performance and superior memory efficiency, GraphLab can be faster for certain analytics (like PageRank on natural graphs) due to its vertex-replication strategy, albeit at a much higher memory cost. The paper notes that direct comparisons are challenging due to implementation differences (C++ vs. Java, different communication layers).
- Future Work: The paper suggests that the MOC model and its data flow design could be applied to other distributed graph processing frameworks like GPS and GraphLab to improve their memory efficiency and scalability. The authors also mention that their implementation did not involve modifying core in-memory data structures or implementing eager memory resource management, implying potential for further gains.
Summary updated