MRSch: Multi-Resource Scheduling for HPC

Boyang Li, Yuping Fan, Matthew T. Dearing, Zhiling Lan, Paul M. Rich, William Allcock, Michael E. Papka · DOI

Abstract

Emerging workloads in high-performance computing (HPC) are embracing significant changes, such as having diverse resource requirements instead of being CPU-centric. This advancement forces cluster schedulers to consider multiple schedulable resources during decision-making. Existing scheduling studies rely on heuristic or optimization methods, which are limited by an inability to adapt to new scenarios for ensuring long-term scheduling performance. We present an intelligent scheduling agent named MRSch for multi-resource scheduling in HPC that leverages direct future prediction (DFP), an advanced multi-objective reinforcement learning algorithm. While DFP demonstrated outstanding performance in a gaming competition, it has not been previously explored in the context of HPC scheduling. Several key techniques are developed in this study to tackle the challenges involved in multi-resource scheduling. These techniques enable MRSch to learn an appropriate scheduling policy automatically and dynamically adapt its policy in response to workload changes via dynamic resource prioritizing. We compare MRSch with existing scheduling methods through extensive trace-base simulations. Our results demonstrate that MRSch improves scheduling performance by up to 48% compared to the existing scheduling methods.

Introduction

Historically, High-Performance Computing (HPC) schedulers have been CPU-centric, focusing primarily on core allocation and job duration. However, modern scientific workloads are increasingly diverse; I/O-intensive simulations may require specific access to burst buffers (fast intermediate storage), while other jobs are constrained by system-wide power caps.

Existing solutions typically rely on simple heuristics like First-Come-First-Served (FCFS) or complex optimization models. Heuristics are often "short-sighted" and fail to adapt when bottlenecks shift between resources. Conversely, optimization methods are computationally expensive and frequently fail to account for the long-term impact of individual scheduling decisions. There is a clear need for a scheduler that is both adaptive to shifting resource priorities and oriented toward long-term system performance.

Methodology: Direct Future Prediction for HPC

MRSch addresses these challenges by adapting Direct Future Prediction (DFP), a multi-objective reinforcement learning algorithm. Unlike standard RL, which maximizes a single scalar reward, DFP predicts the future state of system measurements (such as utilization and wait times) conditioned on specific actions. This allows the agent to "switch goals" and adjust its policy dynamically without retraining.

The MRSch architecture integrates a DFP-based agent with a window-based reservation system to manage multi-resource HPC environments.

Key innovations in the MRSch framework include:

  • Vector-based Encoding: MRSch utilizes vector-based encoding rather than image-based inputs to effectively represent the wide variance in HPC job durations.
  • MLP Architecture: While many RL agents use Convolutional Neural Networks (CNNs), the authors found that a Multilayer Perceptron (MLP) architecture performs better for job features that lack spatial relationships.
  • Dynamic Resource Prioritizing: A goal vector automatically adjusts the weights of different resources, allowing the agent to prioritize contested resources like burst buffers in real-time.
  • HPC Safeguards: To prevent job starvation, standard techniques like window-based reservation and EASY backfilling are integrated into the RL framework.

Experimental Evaluation

The researchers evaluated MRSch using a five-month historical job trace from the Theta supercomputer at the Argonne Leadership Computing Facility (ALCF). The trace was augmented with Darshan I/O data to estimate storage needs and power consumption profiles. Ten distinct workloads (S1–S10) were generated to represent various levels of resource contention.

Key Results

MRSch consistently outperformed FCFS, traditional optimization, and standard scalar reinforcement learning across all metrics. Key findings include:

  • Wait Time Reduction: Average job wait times were reduced by up to 48%.
  • Improved Slowdown: Job slowdown (the ratio of response time to actual runtime) decreased by up to 41%.
  • Architectural Efficiency: The choice of network architecture proved critical. As shown in the evaluation of wait times, the MLP-based agent consistently outperformed the CNN-based counterpart.
Performance comparison showing that the MLP architecture consistently achieves lower average job wait times than the CNN architecture across various workloads.

Despite the deep learning backend, MRSch maintains a low operational overhead, making scheduling decisions in under three seconds—well within the typical 15–30 second window allowed in production environments.

Conclusion

MRSch demonstrates that intelligent, multi-objective reinforcement learning can significantly improve the efficiency of modern, multi-resource HPC systems. Future work will focus on improving the interpretability of these "black box" models to provide system administrators with human-readable logic for scheduling decisions, bridging the gap between advanced AI and practical system management.

Summary updated

BibTeX
@misc{li2022mrsch,
  author = {Boyang Li and Yuping Fan and Matthew T. Dearing and Zhiling Lan and Paul M. Rich and William Allcock and Michael E. Papka},
  title = {{MRSch: Multi-Resource Scheduling for HPC}},
  year = {2022},
  eprint = {2403.16298},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.16298},
}
Figure