Abstract
In High-Performance Computing (HPC), job management systems rely on user-provided runtime estimates to perform backfilling, a critical technique for maximizing processor utilization. However, these estimates are notoriously inaccurate, often leading to significant resource waste. This paper presents a novel approach that replaces user-provided estimates with machine learning (ML) predictions. By employing a custom asymmetrical loss function (E-Loss) and a Shortest Job Backfilled First (SJBF) scheduling policy, the proposed system achieves an average 28% improvement in scheduling performance, measured by average bounded slowdown, across diverse production workloads.
Introduction: The Backfilling Bottleneck
High-Performance Computing environments utilize schedulers to manage complex queues of computational tasks. To keep processors busy, these systems employ backfilling: if the primary job at the head of the queue is waiting for resources, the scheduler searches for smaller, shorter jobs further down the queue that can "jump" ahead without delaying the start time of the primary job.
Effective backfilling requires precise knowledge of job durations. Currently, systems rely on users to provide an upper bound for their job's runtime. Because jobs are terminated if they exceed this limit, users tend to over-estimate runtimes by massive margins. This "noise" creates a significant challenge for schedulers, which must perform complex, Tetris-like packing based on wildly inaccurate data. This research investigates whether historical data and machine learning can provide more reliable predictions to enhance cluster efficiency.
Methodology
The authors propose a holistic framework that integrates machine learning directly into the scheduling logic through three primary components:
1. Adaptive ML Model and Feature Engineering
The system utilizes an on-line $\ell_2$-regularized polynomial regression model of degree 2. Unlike traditional batch learning, this model updates continuously as jobs complete, allowing it to adapt to shifting system conditions in real-time. The model incorporates over 15 features, including user history (e.g., the average duration of the last $N$ jobs), specific job requirements like CPU count, and temporal data such as the time of day or week (encoded using sine and cosine transformations).
2. Asymmetrical Loss (E-Loss)
A core innovation of this work is the E-Loss function. In the context of HPC scheduling, not all prediction errors are equal. Under-predicting a job's duration is particularly disruptive because it can lead to "starvation" or the delay of existing resource reservations. To address this, the authors developed a custom cost function that penalizes under-prediction more heavily than over-prediction.
3. The EASY-SJBF Algorithm
The standard EASY backfilling algorithm typically considers candidates in First-Come, First-Served (FCFS) order. The authors modify this to Shortest Job Backfilled First (SJBF) based on ML predictions. To handle the inherent uncertainty of ML, they implement an "Incremental" correction mechanism: if a job exceeds its predicted runtime, the scheduler dynamically increases the estimate in fixed intervals until completion or until it reaches the user's original hard limit.
Experimental Evaluation
The study evaluates the proposed framework using six production logs from the Parallel Workload Archive, covering a wide spectrum of HPC environments:
- Small/Legacy Systems: KTH-SP2 and CTC-SP2 (100–338 CPUs).
- Mid-sized Systems: SDSC-SP2 and SDSC-BLUE (long-term data over 24–32 months).
- Large-scale Infrastructure: Curie (80,640 CPUs) and Metacentrum (a large Czech grid infrastructure).
Key Insights and Results
Breaking the "Clairvoyance" Ceiling
Initial simulations using a "Clairvoyant" scheduler (one with perfect knowledge of the future) suggested a theoretical maximum performance improvement of approximately 27%. Remarkably, the ML-based approach occasionally outperformed this ceiling. This is attributed to the SJBF sorting strategy, which is inherently more efficient than the standard FCFS order used in the baseline clairvoyant model.
Performance Gains
Across all datasets, the combination of ML, E-Loss, and SJBF reduced the average bounded slowdown by an average of 28% compared to standard EASY backfilling. On the modern "Curie" dataset, improvements reached 86%, as the ML model successfully identified short jobs that users had conservatively tagged with 24-hour limits.
Accuracy vs. Scheduling Performance
The research highlights that traditional metrics like Mean Average Error (MAE) do not perfectly correlate with scheduling success. A model that is highly accurate on average but frequently under-predicts large jobs can disrupt a schedule more than a less accurate model that consistently over-predicts by a small margin. The E-Loss function allows the model to be "cautiously aggressive," enabling more backfilling while minimizing the penalties of under-estimation.
Conclusion and Future Work
While the proposed system significantly improves throughput, the authors identified a "0.1% problem" where a tiny fraction of jobs experience extreme slowdowns due to major prediction failures. Future research will focus on more robust no-starvation guarantees for long jobs and exploring "Learning to Rank" algorithms to predict optimal queue priority directly rather than absolute runtime.
Summary updated