Adaptive Communication Algorithms for Distributed Heterogeneous Systems

Prashanth B. Bhat, Viktor K. Prasanna, Cauligi S. Raghavendra

TL;DR

This paper tackles the challenge of efficient communication in distributed, heterogeneous computing systems (metacomputing). They propose a novel framework for developing adaptive communication schedules that dynamically adjust to varying network conditions, outperforming traditional static methods by up to 5x.

What Problem Does This Paper Address?

Metacomputing, the use of geographically distributed supercomputers and visualization devices interconnected by various networks, offers immense computational power. However, effectively harnessing this power is hindered by the inherent heterogeneity of these systems. Unlike tightly coupled supercomputers with uniform networks, metacomputing environments feature diverse network types (local, wide-area, ATM, T3), varying bandwidths, and unpredictable network loads. This heterogeneity makes static communication schedules, common in homogeneous systems, perform poorly. Applications must adapt their communication strategies on the fly to avoid bottlenecks and maximize performance. This paper addresses the need for such adaptive communication algorithms, specifically focusing on collective communication patterns crucial for many parallel applications.

Methods

The authors introduce a uniform framework for developing adaptive communication schedules, comprising four key components:

  1. Directory Service: A crucial element that provides real-time information about current network performance (latency, bandwidth) between any pair of nodes. This service is essential for adapting to dynamic network conditions.
  2. Communication Model: An analytical model that estimates the time for individual node-to-node communication events. It uses parameters like start-up cost ($T_{ij}$) and data transmission rate ($B_{ij}$) for each pair of processors ($P_i, P_j$), abstracting away low-level network details.
  3. Timing Diagrams: A visual representation of communication schedules. These diagrams abstractly depict communication patterns and network performance, showing the time taken for each message transfer.
  4. Scheduling Algorithms: These algorithms use the timing diagrams to determine the optimal placement of communication events to minimize the overall completion time.

The paper then applies this framework to the "all-to-all personalized communication" pattern, where each processor sends a unique message to every other processor. They propose and evaluate three scheduling algorithms:

  • Matching-Based Algorithm: This algorithm constructs a bipartite graph where edge weights represent communication costs. It then finds a series of maximum weight complete matchings to partition communication events into independent steps, aiming for optimal schedules. The complexity is O(P^4).
  • Greedy Technique: An approximation to the matching-based algorithm with a lower computational complexity of O(P^3). It iteratively selects the next communication event based on availability.
  • Open Shop Technique: This algorithm draws inspiration from heuristics for the open shop scheduling problem. It treats processors as independent senders and receivers, managing their availability to schedule communication events. This algorithm has a complexity of O(P^3).

Datasets

The paper does not introduce new datasets. Instead, it uses data representative of real-world metacomputing environments, specifically referencing information from the GUSTO testbed. The simulation results are generated using random performance characteristics for pairwise network performance, guided by the GUSTO directory service's data. Message sizes of 1kB and 1MB were used, along with a mix of both.

Key Insights and Ideas

  • Heterogeneity is the Bottleneck: The core insight is that static communication schedules, effective in homogeneous systems, fail dramatically in heterogeneous metacomputing environments due to unpredictable network variations.
  • Adaptivity is Key: Dynamic, run-time adaptation of communication schedules based on real-time network performance information is crucial for achieving high performance.
  • Unified Framework: The proposed framework (directory service, communication model, timing diagrams, scheduling algorithms) provides a general and powerful approach for tackling adaptive communication scheduling across various patterns and architectures.
  • Scheduling as a Core Problem: The paper highlights that efficient communication scheduling, especially for patterns like all-to-all personalized communication, is an NP-complete problem, necessitating the development of effective heuristic algorithms.
  • Open Shop Heuristic Dominance: The Open Shop heuristic, despite its O(P^3) complexity, emerges as the most effective algorithm, achieving schedules very close to the theoretical lower bound.

Key Results

The paper demonstrates significant performance improvements through simulation:

  • Up to 5x Improvement: The proposed adaptive algorithms achieved performance improvements of a factor of 5 over well-known homogeneous scheduling techniques (specifically, the "caterpillar" or baseline algorithm).
  • Open Shop Best Performance: The Open Shop algorithm consistently produced schedules closest to the lower bound, often within 2% and always within 10%.
  • Matching Algorithms Competitive: Maximum and minimum matching-based techniques also performed well, within 15% of the lower bound.
  • Greedy Algorithm Good: The greedy algorithm was within 25% of the lower bound.
  • Baseline Algorithm Poor: The baseline algorithm, in contrast, sometimes took up to 6 times longer than the lower bound, underscoring the need for adaptive strategies.
  • Client-Server Scenario: In a client-server scenario where servers send large messages, the adaptive algorithms still outperformed the baseline by 2 to 5 times.

Limitations and Future Work

Limitations:

  • Model Assumptions: The communication model assumes a processor can send and receive only one message at a time. While acknowledged, relaxing this is a direction for future work.
  • Buffer Space: The model doesn't explicitly account for finite buffer space at nodes, which can impact performance when multiple messages arrive.
  • Fixed Schedule Overhead: While adaptive, the initial computation of schedules can still incur overhead, especially for applications with identical communication patterns run repeatedly.

Future Work:

  • Enhanced Communication Model: Relaxing the single-message-at-a-time restriction, exploring interleaved message reception with context switching overhead, and incorporating finite buffer management.
  • Incremental Dynamic Scheduling: Developing faster algorithms for refining existing schedules when network conditions change, particularly for applications with repetitive communication patterns.
  • Enhanced Adaptivity: Implementing intermediate checkpoints within schedules to allow for dynamic rescheduling if actual communication times deviate significantly from estimates.
  • Scheduling with Critical Resources/QoS: Extending the framework to handle scenarios with critical resources (e.g., expensive supercomputers) that need early completion, and incorporating Quality of Service (QoS) constraints like deadlines and priorities for message scheduling.
  • Communication Scheduling with QoS Constraints: Further research into scheduling algorithms that can handle QoS constraints, especially when multiple communication events contend for network links.

Summary updated

BibTeX
@inproceedings{bhat1998adaptive,
  author = {Prashanth B. Bhat and Viktor K. Prasanna and Cauligi S. Raghavendra},
  title = {{Adaptive Communication Algorithms for Distributed Heterogeneous Systems}},
  booktitle = {HPDC},
  year = {1998},
  doi = {10.1109/hpdc.1998.710017},
}

Loading related content...

Figure