Distributed Phasers

Sri Raj Paul, Karthik Murthy, Kuldeep S. Meel, John M. Mellor-CrummeyarXiv 2015

Introduction

In high-performance computing, synchronization is a critical bottleneck. Traditional barriers often impose a rigid "all-or-nothing" wait, which can stifle concurrency. Phasers offer a more flexible alternative, allowing tasks to register as signalers, waiters, or both, and supporting dynamic group membership. However, phasers have historically been limited to shared-memory systems. This paper introduces a highly concurrent, scalable design for distributed phasers tailored for distributed-memory environments like the Asynchronous Partitioned Global Address Space (APGAS) model.

The Distributed Phaser Architecture

The proposed design utilizes two specialized augmented skip lists to manage synchronization signals efficiently across a distributed network.

  1. Signal Collection Skip List (SCSL): Signalers propagate their status updates through this structure up to a designated "head-signaler."
  2. Signal Notification Skip List (SNSL): Once all signals are collected, the "all-clear" notification is distributed from a "head-waiter" down to all waiting tasks.
The dual skip-list architecture for signal collection (SCSL) and notification (SNSL).

By leveraging the probabilistic, multi-level nature of skip lists, the system achieves $O(\log n)$ complexity for signal aggregation and distribution, ensuring it scales effectively as the number of tasks grows.

Two-Phase Modification and Formal Verification

A key challenge in distributed synchronization is handling dynamic task entry and exit without blocking ongoing signals. The authors employ a two-phase modification protocol:

  • Eager Insertion: A new task is immediately linked into the base level (L0) of the skip list, allowing it to participate in synchronization right away.
  • Lazy Promotion: The task is then gradually promoted to higher levels using a "hand-over-hand" approach to maintain the $O(\log n)$ search/propagation properties.

To ensure the correctness of this complex message-passing dance, the authors used the SPIN model checker. Given the massive state space, they utilized a "message-based decomposition" strategy, verifying different message types (like travel-up, travel-down, and neighbor movements) independently.

Key Results and Scaling

The complexity analysis confirms that signal aggregation, eager task addition, and task deletion all operate within $O(\log n)$ expected time. Beyond theoretical bounds, the formal verification process demonstrated the protocol's robustness at an immense scale.

Verification resource requirements for different message types in the distributed phaser protocol.

As shown in the table above, the verification explored up to 11 billion states for certain message types (e.g., TUS). Despite this scale, memory usage remained manageable (peaking at 135GB on a POWER7 compute node), proving that formal methods can be effectively applied to complex synchronization primitives through intelligent state-space decomposition.

Conclusion

This work bridges the gap between flexible phaser synchronization and the demands of distributed-memory Exascale computing. By decoupling structural optimization from immediate task participation and verifying the protocol through rigorous model checking, the authors provide a scalable and reliable foundation for future high-performance parallel applications.

Summary updated

BibTeX
@misc{paul2015distributed,
  author = {Sri Raj Paul and Karthik Murthy and Kuldeep S. Meel and John M. Mellor-Crummey},
  title = {{Distributed Phasers}},
  year = {2015},
  eprint = {1512.07305},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1512.07305},
}
Figure