Abstract
Traditional High-Performance Computing (HPC) relies on rigid resource allocation, leading to significant system fragmentation and long queue wait times. This paper presents a framework integrating the Slurm workload manager with the OmpSs programming model to enable "malleable" applications that can dynamically shrink or expand their resource usage. By leveraging OmpSs offload semantics and a new Dynamic Management of Resources (DMR) API, the proposed system reduces total workload execution time by over 40% and decreases resource consumption by 30%.
Introduction: The Rigidity Problem in HPC
In standard HPC environments, jobs are typically "rigid": a user requests a fixed number of nodes, and the job remains in a queue until that exact allocation is available. This paradigm causes two primary inefficiencies:
- Resource Fragmentation: Idle nodes remain unused if they do not meet the specific requirements of the next job in the queue.
- Extended Latency: Users face long wait times for specific resource "shapes" to become available.
While malleable computing—the ability to resize jobs during execution—offers a solution, implementation has historically been hindered by the complexity of manual data redistribution in MPI or the high overhead of Checkpoint/Restart (C/R) mechanisms.
Methods: A Holistic Malleability Framework
The authors introduce a two-part solution to enable seamless application resizing:
- Slurm Workload Manager Integration: A custom Slurm plugin implements reconfiguration policies that decide when to expand a job into idle nodes or shrink it to accommodate pending tasks.
- OmpSs Parallel Runtime (DMR API): The Nanos++ runtime is extended with a Dynamic Management of Resources (DMR) API. Unlike traditional methods, this leverages OmpSs task-based offload semantics. When a resize signal is received, the runtime automatically handles process spawning and data redistribution based on existing task dependencies, bypassing the need for low-level manual coding.
Key Insights: Efficiency over Checkpoint/Restart
A critical finding of this research is the inefficiency of traditional Checkpoint/Restart (C/R) for dynamic resizing. C/R requires writing massive state data to disk and reloading it, which introduces significant overhead.
As shown in the figure above, the DMR API is significantly faster than C/R, which can be up to 77x slower due to the heavy "Spawning" and I/O costs. Furthermore, the authors found that synchronous reconfiguration—where applications check for resize signals at defined intervals—is more effective than asynchronous methods, as it prevents "stale" decisions that lead to suboptimal resource use.
Evaluation and Results
The system was evaluated on the Marenostrum Supercomputer using a variety of workloads, including iterative solvers (CG, Jacobi) and N-body simulations, with job arrival patterns modeled on real-world supercomputing clusters.
The experimental results demonstrate substantial improvements:
- Throughput and Execution Time: For a practical workload of 400 jobs, the flexible approach significantly outperformed fixed allocation. In some scenarios, total batch execution time was reduced by approximately 42%.
- Wait Time Reduction: Average job wait times decreased by 60-70%.
- Resource Savings: Applications achieved these speedups while using 30% fewer node-seconds on average, as the system could scale down jobs that reached diminishing returns in scalability.
Conclusion and Future Work
By making applications malleable, HPC centers can transform "wait time" into "compute time," significantly increasing cluster throughput. While currently tied to the OmpSs model, the DMR API demonstrates the potential for a more flexible HPC ecosystem. Future work will focus on making the Slurm policy more workload-aware, using predictive analytics to optimize expansion decisions for applications with varying scalability profiles.
Summary updated