Skip to main content
QUICK REVIEW

[Paper Review] Predicting batch queue job wait times for informed scheduling of urgent HPC workloads

Nick Brown, Gordon S. Gibb|arXiv (Cornell University)|Apr 28, 2022
Cloud Computing and Resource ManagementComputer Science9 citations
TL;DR

This paper proposes a machine learning approach using boosted trees and stochastic queue state modeling to predict HPC job start times with high accuracy, achieving 65–76% of predictions within one minute of actual start times on ARCHER2 and Cirrus, outperforming Slurm's estimator by up to 18 times in accuracy. The method improves prediction by incorporating dynamic queue states and a multi-stage classification-regression pipeline.

ABSTRACT

There is increasing interest in the use of HPC machines for urgent workloads to help tackle disasters as they unfold. Whilst batch queue systems are not ideal in supporting such workloads, many disadvantages can be worked around by accurately predicting when a waiting job will start to run. However there are numerous challenges in achieving such a prediction with high accuracy, not least because the queue's state can change rapidly and depend upon many factors. In this work we explore a novel machine learning approach for predicting queue wait times, hypothesising that such a model can capture the complex behaviour resulting from the queue policy and other interactions to generate accurate job start times. For ARCHER2 (HPE Cray EX), Cirrus (HPE 8600) and 4-cabinet (HPE Cray EX) we explore how different machine learning approaches and techniques improve the accuracy of our predictions, comparing against the estimation generated by Slurm. We demonstrate that our techniques deliver the most accurate predictions across our machines of interest, with the result of this work being the ability to predict job start times within one minute of the actual start time for around 65\% of jobs on ARCHER2 and 4-cabinet, and 76\% of jobs on Cirrus. When compared against what Slurm can deliver, this represents around 3.8 times better accuracy on ARCHER2 and 18 times better for Cirrus. Furthermore our approach can accurately predicting the start time for three quarters of all job within ten minutes of the actual start time on ARCHER2 and 4-cabinet, and for 90\% of jobs on Cirrus. Whilst the driver of this work has been to better facilitate placement of urgent workloads across HPC machines, the insights gained can be used to provide wider benefits to users and also enrich existing batch queue systems and inform policy too.

Motivation & Objective

  • To address the critical challenge of unpredictable job wait times in HPC batch queues, especially for urgent disaster-response simulations.
  • To improve upon Slurm’s built-in queue wait time estimation, which is often inaccurate and inconsistent across systems.
  • To develop a machine learning model that captures complex queue dynamics, including fluctuating workloads and scheduling policies.
  • To enable users and HPC centers to make informed decisions about job configuration and resource allocation based on reliable start time predictions.
  • To provide a scalable, data-driven solution applicable across diverse HPC systems with varying workloads and policies.

Proposed method

  • The method uses historical job data from three production HPC systems—ARCHER2, Cirrus, and a 4-cabinet HPE Cray EX—to train machine learning models.
  • A stochastic sampling technique generates 100 representative queue workload states per job, based on distributions of actual vs. requested wall times, to model uncertainty in queue load at submission time.
  • A two-stage pipeline combines classification (to predict if a job will start within a target window) and regression (to predict exact start time) for improved accuracy.
  • The model employs gradient-boosted trees (e.g., XGBoost) to handle non-linear relationships between job parameters and queue behavior.
  • Queue state features include current running jobs, queued jobs, and their requested wall times, with dynamic sampling to reflect real-time unpredictability.
  • The approach is validated against Slurm’s backfill plugin estimator, using metrics like mean absolute error and prediction window accuracy.

Experimental results

Research questions

  • RQ1Can machine learning models significantly improve the accuracy of HPC job wait time predictions compared to Slurm’s built-in estimator?
  • RQ2How does incorporating dynamic, stochastic representations of queue state enhance prediction accuracy in highly variable HPC workloads?
  • RQ3To what extent can a multi-stage classification-regression model outperform single-model approaches in predicting exact job start times?
  • RQ4How does prediction accuracy vary across different HPC systems with distinct workloads and scheduling policies?
  • RQ5Can the model provide actionable insights for users to optimize job configuration (e.g., node count, wall time) to reduce wait times?

Key findings

  • The proposed model achieves 65% of predictions within one minute of actual job start time on ARCHER2 and the 4-cabinet system, and 76% on Cirrus, significantly outperforming Slurm.
  • For a 10-minute accuracy window, the model predicts 75% of jobs correctly on ARCHER2 and the 4-cabinet system, and 90% on Cirrus, compared to Slurm’s performance.
  • The model improves prediction accuracy by 3.8 times on ARCHER2 and 18 times on Cirrus when measured within a one-minute window.
  • The multi-stage classification-regression approach reduces error by leveraging job-specific patterns and queue state dynamics more effectively than baseline models.
  • The stochastic queue state sampling method effectively models real-world unpredictability, enhancing model robustness across diverse workloads.
  • The model has been integrated into the VESTEC urgent computing system, demonstrating real-world utility in dynamic, time-sensitive HPC workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.