A CP Scheduler for High-Performance Computers

Thomas Bridi, Michele Lombardi, Andrea Bartolini, Luca Benini, Michela Milano

Abstract

High-Performance Computing (HPC) centers face a significant challenge in balancing machine utilization with user fairness. This paper introduces a Constraint Programming (CP) based job scheduler that moves beyond traditional greedy heuristics. By modeling scheduling as a combinatorial optimization problem, the proposed system reduces weighted waiting times on the Eurora supercomputer. While highly effective for standard workloads, the study also identifies scalability limits in high-stress scenarios, providing a roadmap for future hybrid scheduling strategies.

Introduction: The HPC Scheduling Challenge

Supercomputers represent massive capital investments that typically depreciate fully within three years. To maximize return on investment, HPC centers prioritize high machine utilization. However, scheduling thousands of incoming jobs—each with unique requirements for CPU cores, memory, and specialized accelerators—is an NP-hard combinatorial problem.

Most current HPC centers rely on "greedy" rule-based schedulers, such as PBS Professional, which utilize simple priority queues and "back-filling" techniques. While computationally efficient, these methods are often suboptimal, leading to "unfair" waiting times where certain jobs remain in the queue significantly longer than necessary. The challenge lies in implementing advanced optimization techniques that are powerful enough to improve schedules but fast enough for live production environments.

Methodology: Constraint Programming for Optimization

The researchers employed Constraint Programming (CP), a paradigm uniquely suited for complex scheduling due to its ability to handle discrete logic and specialized global constraints. Key technical components of the model include:

  • Conditional Interval Variables (CVI): These represent jobs that may or may not be scheduled within specific time windows, allowing the model to reason about future possibilities.
  • Global Constraints: The model utilizes cumulative constraints to manage resource limits (e.g., RAM or cores per node) and alternative constraints for jobs that can be distributed across different nodes.
  • Objective Function: Rather than focusing solely on throughput, the system minimizes a weighted waiting time. This approach ensures fairness by penalizing the system more heavily when a job exceeds its expected queue time.
  • Integration: The CP solver was developed as a plug-in for the commercial PBS Professional scheduler, allowing for seamless replacement of the default rule-based engine.

Experimental Evaluation

The system was evaluated through both simulated workloads and real-world production data:

  1. Simulated Workloads: Two scenarios were tested on a virtual machine cluster. Test 1 modeled a standard workload, while Test 2 scaled to 700 jobs to evaluate solver scalability.
  2. Production Data: The system was deployed on the Eurora Supercomputer at CINECA. Performance was tracked over five weeks of real-world logs, comparing the CP scheduler against the standard PBS configuration.

Key Results and Discussion

In the simulated Test 1, the CP scheduler outperformed the standard FIFO (First-In-First-Out) approach across all primary metrics. As shown in the data below, the CP scheduler achieved a lower Weighted Queue Time (WQT) and a reduced number of late jobs (NL) compared to the baseline.

Comparative performance of PBSFifo, PBSWalltime, and CP Schedulers in simulated Test 1 and Test 2 scenarios.

In real-world production on the Eurora supercomputer, the CP system maintained consistent superiority. It achieved an average weighted waiting time per job of approximately $2.50 \times 10^{-6}$, compared to $3.93 \times 10^{-6}$ for the standard rule-based system. Crucially, machine utilization remained stable, with CP utilizing 510–573 cores, comparable to the 520–599 range of the commercial baseline.

The "Hardness" Wall

A critical insight from the study is the existence of a computational "hardness" wall. While CP is highly effective for medium-complexity problems, Test 2 (the high-stress simulation) revealed that the computational overhead of finding an optimal solution can become a bottleneck. In Test 2, the CP solver's WQT rose to 2441.3 compared to PBSFifo's 1034.2, as the solver had to be aggressively pruned to return results in a production-viable timeframe.

Conclusion

This research demonstrates that Constraint Programming can successfully reduce user waiting times in HPC environments without sacrificing machine utilization. By moving from greedy heuristics to optimization-driven models, centers can provide fairer service to users. Future work will focus on mitigating computational overhead through incremental "hot-start" optimization strategies, where the solver updates existing plans rather than recalculating from scratch as new jobs arrive.

Summary updated

BibTeX
@inproceedings{bridi2015cp,
  author = {Thomas Bridi and Michele Lombardi and Andrea Bartolini and Luca Benini and Michela Milano},
  title = {{A CP Scheduler for High-Performance Computers}},
  booktitle = {DC@AI*IA},
  year = {2015},
}
Figure