An Architecture for Reconfigurable Iterative MPI Applications in Dynamic Environments

Kaoutar El Maghraoui, Boleslaw K. Szymanski, Carlos A. VarelaPPAM 2005

TL;DR

This paper introduces an architecture that allows long-running MPI applications to dynamically reconfigure themselves in response to changing computational environments. By integrating MPI with a middleware called IOS, the system can adapt to varying resource availability and demands, improving performance and resilience.

What Problem Does This Paper Address?

Modern computational environments, such as grids, are characterized by their dynamic nature. Resources can join or leave, and their performance can fluctuate unpredictably. Traditional MPI applications, designed for static and homogeneous environments, struggle to maintain high performance in such dynamic settings. This leads to significant performance degradation as applications become bottlenecked by slow resources or fail to utilize newly available ones. The challenge is to enable these applications to adapt their resource allocation and execution strategies on the fly without requiring extensive manual intervention from developers.

Methods

The core of the proposed solution is an architecture that combines the Message Passing Interface (MPI) with a middleware called the Internet Operating System (IOS).

  • IOS Middleware: IOS is a decentralized framework designed for dynamic reconfiguration of large-scale distributed applications. It uses middleware agents on each node to monitor resource and application performance. Key components include:
  • Dynamic Profiling Component: Gathers performance data about physical resources (CPU, memory, disk) and application entities (processing, communication, data access).
  • Protocol Component: Manages inter-agent communication and virtual topology creation, facilitating resource discovery and work stealing.
  • Reconfiguration Module: Evaluates potential performance gains from migrating application entities based on profiled data and predicted performance.
  • MPI/IOS Integration: To integrate MPI applications with IOS, a user-level library called PCM (Process Checkpointing and Migration) was developed.
  • Semi-transparent Checkpointing: PCM allows applications to specify which data structures need to be saved for process migration, minimizing code modification.
  • Process Migration: When IOS identifies a beneficial migration, PCM facilitates the process by checkpointing the migrating process, spawning a new instance on the target node, and updating MPI communicators. This is performed collaboratively by participating MPI processes at natural barrier points (e.g., the beginning of an iteration).
  • Profiling Library: A profiling library based on the MPI profiling interface (PMPI) intercepts MPI communication calls and sends this information to the local IOS agent.

The system targets iterative applications, which have predictable points for reconfiguration (e.g., the end of an iteration).

Datasets

Not discussed in the paper. The evaluation uses a simulated heat diffusion application.

Key Insights and Ideas

  • Middleware-level Adaptivity: Shifting load balancing and resource management concerns from application developers to a middleware layer (IOS) significantly simplifies the development of adaptive applications.
  • Iterative Applications as a Starting Point: Focusing on iterative applications is strategic because they offer natural points (barriers) for safe and effective reconfiguration without disrupting ongoing computations.
  • Semi-transparent Checkpointing for Portability: The PCM library's approach to checkpointing, requiring only the specification of critical data structures, offers a good balance between ease of use, portability across different MPI implementations, and performance.
  • Decentralized Reconfiguration: IOS's decentralized strategy avoids global knowledge, making it scalable for large and dynamic environments like grids.
  • Performance Gain Prediction: The architecture's ability to predict performance gains before migration is crucial for making informed decisions and avoiding unnecessary overhead.

Key Results

The paper demonstrates the effectiveness of the MPI/IOS architecture through experiments with a 2D heat diffusion application on a cluster with emulated dynamic load conditions.

  • MPI/IOS vs. Standard MPI: The MPI/IOS system achieved a substantial performance improvement. In one experiment, the adaptive execution finished in 645.67 seconds, while the standard MPICH2 execution (without adaptation) took 1173.79 seconds, an 81.8% decrease in performance for the non-adaptive case.
  • Dynamic Load Handling: The system successfully adapted to increasing load by migrating processes to newly available nodes, effectively eliminating slow processors from the computation and improving overall throughput.

Limitations and Future Work

  • Focus on Iterative Applications: The current framework is primarily designed for iterative applications. Extending it to handle non-iterative applications with more complex execution patterns is a key future direction.
  • Sophisticated Policies: Developing more sophisticated checkpointing and migration policies will be necessary for broader application support.
  • Evaluation on Larger Networks: The framework needs to be evaluated on larger networks with more realistic and diverse load characteristics and network latencies.
  • Reconfiguration Policy Evaluation: Further investigation into the effectiveness and sensitivity of different reconfiguration policies to application characteristics is planned.

Summary updated

BibTeX
@inproceedings{maghraoui2005architecture,
  author = {Kaoutar El Maghraoui and Boleslaw K. Szymanski and Carlos A. Varela},
  title = {{An Architecture for Reconfigurable Iterative MPI Applications in Dynamic Environments}},
  booktitle = {PPAM},
  year = {2005},
  doi = {10.1007/11752578\_32},
}
Figure