Introduction
Large-scale graph analytics are central to modern data science, yet distributed graph processing frameworks often struggle with significant communication overhead. As modern workstations now possess sufficient RAM to house graphs with billions of edges, optimizing shared-memory multi-core implementations has become a high-priority research area. This paper investigates how to maximize performance for iterative graph algorithms, using PageRank as a primary case study.
The Design Space of PageRank Algorithms
The authors identify three critical axes for algorithm design: work activation, data access patterns, and scheduling. By systematically exploring these dimensions, they developed several PageRank variants to identify the most efficient configurations for shared-memory systems.
- Work Activation: The choice between topology-driven execution (processing all nodes in synchronous rounds) and data-driven execution (dynamically processing only "active" nodes whose values have changed significantly).
- Data Access Pattern: The mechanism by which nodes update their values. Options include Pull-based (reading from neighbors), Push-based (writing to neighbors), and a hybrid Pull-Push approach.
- Scheduling: The order in which tasks in the worklist are executed. The study compares simple, scalable FIFO/LIFO schedulers with work-stealing against more complex Priority schedulers designed to accelerate convergence.
Experimental Setup and Datasets
The performance of these variants was evaluated using the Galois system and compared against GraphLab. The evaluation utilized four massive real-world networks, ranging from hyperlink graphs to social networks.
The datasets include pld and sd1 (hyperlink graphs), as well as Twitter and Friendster (social networks). Notably, the largest dataset, Friendster, contains over 3.6 billion edges, testing the limits of memory efficiency and scalability.
Key Findings and Performance Analysis
The experimental results yielded several counter-intuitive insights into graph processing optimization:
- The Superiority of Data-Driven Execution: Data-driven algorithms consistently outperformed topology-driven ones by focusing computation on "hot spots," avoiding redundant processing of converged nodes.
- Push vs. Pull: While pull-based methods are often favored for their cache-friendliness, push-based algorithms proved superior in a data-driven context. By pushing residuals, nodes can selectively activate only the specific neighbors that require updates, significantly reducing the total task volume.
- The Priority Scheduling Trap: Although priority scheduling reduces the number of tasks needed for convergence, the synchronization overhead of maintaining a concurrent priority queue on NUMA systems often outweighs these gains. A fast, NUMA-aware FIFO scheduler typically results in the best overall wall-clock time.
Results and Conclusion
The optimized dd-push implementation achieved up to a 28x speedup over GraphLab and was 10–20x faster than standard topology-driven implementations within the same Galois framework. On the pld dataset, dd-push completed in just 17 seconds using 40 threads. Furthermore, the shared-memory implementations proved more robust than GraphLab, which failed due to memory constraints on the larger datasets.
This research demonstrates that by carefully selecting data-driven activation and push-based access patterns, developers can achieve massive performance gains in graph analytics without the complexity of distributed systems.
Summary updated