Compression and Sieve: Reducing Communication in Parallel Breadth First Search on Distributed Memory Systems

Huiwei Lv, Guangming Tan, Mingyu Chen, Ninghui SunarXiv 2012

Abstract

Distributed Breadth-First Search (BFS) is a fundamental graph algorithm but suffers from significant communication overhead in large-scale systems. This paper presents "Compression and Sieve," a dual-strategy approach using Word-Aligned Hybrid (WAH) bitmap compression and a "cross directory" sieve to minimize redundant data transfers. Experimental results on a 512-node cluster demonstrate a 79% reduction in communication time and a 2.2× overall speedup compared to standard Graph500 baselines.

Introduction

In the era of big data, graph analysis is pivotal for understanding complex structures like social networks and the web. Breadth-First Search (BFS) serves as a foundational building block for many graph algorithms. However, as graph sizes exceed the memory capacity of single machines, distributed processing becomes necessary. In these distributed environments, the primary performance bottleneck is not computation, but the massive volume of communication required to synchronize the "frontier" of visited vertices across nodes.

The Communication Bottleneck in Distributed BFS

In a distributed memory system, a graph is partitioned across multiple nodes. During each level of a BFS, nodes must exchange information to identify which vertices belong to the next frontier. Standard implementations often rely on collective communication like MPI_Allgather to broadcast the entire frontier to every node.

As the system scales, this "chatter" becomes the dominant factor in execution time. Analysis of a 512-node cluster reveals that a baseline BFS spends approximately 70% of its time on network communication, while actual arithmetic computation remains negligible.

Communication overhead increases significantly with the number of nodes, dominating execution time at scale.

Methodology: Compression and Sieve

To address this bottleneck, Lv et al. (2012) proposed two complementary techniques: WAH Bitmap Compression and the Cross Directory Sieve.

1. WAH Bitmap Compression

BFS frontiers are typically represented as bitmaps. While efficient, these bitmaps are often sparse, containing many zeros. The authors employ Word-Aligned Hybrid (WAH) compression, a lossless scheme designed for sparse bitmaps. WAH groups consecutive zeros into "fill words," significantly shrinking message sizes with minimal CPU overhead for compression and decompression.

2. The Cross Directory Sieve

The most significant innovation is the "cross directory" sieve. In a standard broadcast, a node sends its entire frontier to all other nodes, regardless of whether those nodes actually need the data. The sieve acts as a distributed directory that tracks which partitions share edges.

The sieve process uses a distributed directory to filter the frontier vector f, ensuring nodes only receive relevant vertex updates.

Before transmission, a node "sieves" its bitmap, zeroing out bits for vertices that have no connections to the destination node's partition. This transforms a dense, redundant broadcast into a sparse, targeted All-to-all communication pattern.

Experimental Results

The proposed optimizations were evaluated using the Graph500 benchmark on a 512-node SMP cluster (6,144 cores) with synthetic Kronecker graphs of up to 8 billion vertices.

  • Communication Efficiency: The combination of WAH compression and the sieve reduced total communication time by 79.0%.
  • Performance Gain: The optimized algorithm achieved a 2.2× speedup over the Graph500 baseline, reaching a throughput of 12.1 GTEPS (Giga Traversed Edges Per Second).
  • Scalability: The performance gap between the optimized method and the baseline widened as the node count increased, demonstrating superior scalability for massive distributed systems.

Conclusion

The "Compression and Sieve" approach highlights a critical trade-off in modern high-performance computing: using relatively abundant CPU cycles to conserve precious network bandwidth. By filtering redundant data at the source and compressing the remainder, this methodology significantly enhances the efficiency of distributed graph processing. Future work may involve adapting these techniques for dynamic graphs or integrating them with hybrid top-down/bottom-up BFS strategies.

Summary updated

BibTeX
@misc{lv2012compression,
  author = {Huiwei Lv and Guangming Tan and Mingyu Chen and Ninghui Sun},
  title = {{Compression and Sieve: Reducing Communication in Parallel Breadth First Search on Distributed Memory Systems}},
  year = {2012},
  eprint = {1208.5542},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1208.5542},
}
Figure