Introduction
As high-performance computing (HPC) moves toward the exascale era—systems capable of performing a quintillion calculations per second—the frequency of hardware failures is expected to increase significantly. In systems with millions of components, a node failure could occur every few minutes. Traditional "checkpoint/restart" (C/R) methods, which periodically save the entire simulation state to persistent disk storage, are becoming untenable. At exascale, the time required to write a checkpoint to disk can exceed the mean time between failures (MTBF), leading to a situation where the simulation spends more time backing up than computing.
Proposed Methodology
To address this bottleneck, this research proposes a "minimally intrusive" resilience framework implemented within the Nektar++ spectral/hp element framework. The approach leverages User-Level Failure Mitigation (ULFM) extensions for MPI to handle process failures without crashing the entire job. The core innovation lies in a hybrid backup strategy that distinguishes between static and dynamic data.
- Static Data via Message-Logging: Scientific solvers often have a computationally expensive setup phase that generates large static data structures (e.g., system matrices). Rather than storing these massive structures, the framework logs the MPI communication used to create them. In the event of a failure, a spare process can "replay" these logs to reconstruct the static state locally. This is highly memory-efficient because the communication volume often scales with the surface area of partitions ($O(n^2)$), while the resulting data scales with the volume ($O(n^3)$).
- Dynamic Data via Remote In-Memory Checkpointing: For data that changes every time-step (e.g., solution fields), the framework uses a "buddy system." Each active process sends its state to the RAM of a partner node. RAM-to-RAM transfers over high-speed interconnects are orders of magnitude faster than disk I/O.
Failure Recovery Mechanism
The system maintains "spare" MPI ranks that remain idle during normal operation. When a failure is detected via ULFM, the surviving ranks and the spare rank enter a recovery phase. The recovery process involves several steps:
- Detection and Enrollment: Surviving ranks detect the failure and agree on a new communicator that includes the spare rank.
- Restoration: The spare rank reconstructs its static data by replaying the recorded MPI logs. Simultaneously, it pulls the latest dynamic checkpoint from its buddy node.
- Rollback and Roll-forward: Surviving ranks may need to roll back to the last consistent checkpoint. The spare rank then "rolls forward" by re-executing any steps necessary to synchronize with the rest of the simulation.
Experimental Results
The framework was evaluated using a 3D incompressible Navier–Stokes simulation on an SGI ICE XA supercomputer with up to 2,304 cores. Key findings include:
- Performance: In-memory checkpointing was approximately 100 times faster than traditional disk-based methods at high core counts.
- Scalability: The overhead for backups remained low and showed strong scaling up to 2,304 cores.
- Recovery Speed: The system could restore a lost state and resume the simulation in less than one second for the core algorithmic components.
- Efficiency: The memory footprint of the static backup (communication logs) decreased as a percentage of total memory as the simulation scaled up, reaching just 6% at the largest tested scale.
Conclusion and Future Work
This approach demonstrates that high-level interception of MPI calls can provide robust resilience with minimal changes to the underlying physics code. By treating static and dynamic data differently, the framework achieves significant memory and time savings. Future work will focus on extending this method to adaptive meshes, where "static" data changes over time, and developing a portable library to enable these features in other scientific solvers.
Summary updated