Scheduling Deep Learning Jobs in Multi-Tenant GPU Clusters via Wise Resource Sharing

Yizhou Luo, Qiang Wang, Shaohuai Shi, Jiaxin Lai, Shuhan Qi, Jiajia Zhang, Xuan Wang

Introduction

In modern data centers, Deep Learning (DL) training jobs are increasingly managed within multi-tenant GPU clusters. Traditionally, these clusters employ scheduling policies that grant jobs exclusive access to GPUs to prevent performance interference. However, this "exclusive-access" paradigm often leads to significant inefficiencies, specifically Head-of-Line (HOL) blocking—where short jobs are delayed by long-running tasks—and hardware under-utilization when a single job cannot fully saturate a GPU's compute or memory capacity.

While existing schedulers like Tiresias use preemption to mitigate HOL blocking, they incur high overhead from job migration and pausing. Other solutions, such as Pollux, attempt to increase utilization by dynamically scaling batch sizes, but this risks degrading model accuracy. This paper introduces SJF-BSBF (Shortest Job First with Best Sharing Benefit First), a scheduling framework that enables multiple DL jobs to share the same GPUs simultaneously. By leveraging gradient accumulation and a "wise" sharing heuristic, SJF-BSBF improves cluster throughput while guaranteeing that the training process remains mathematically identical to the user's original configuration.

The SJF-BSBF Framework

The core philosophy of SJF-BSBF is to maximize resource utilization without compromising the integrity of the DL models. The system is built on three primary pillars:

1. Gradient Accumulation as a Buffer

Memory is the primary bottleneck when co-locating multiple DL jobs on a single GPU. To fit two jobs without shrinking the global batch size (which would alter the learning dynamics), SJF-BSBF utilizes gradient accumulation. This technique breaks a large batch into smaller "micro-batches" that fit within the remaining GPU memory. Model weights are updated only after the gradients from several micro-batches have been accumulated, ensuring the training remains numerically equivalent to the original single-tenant execution.

2. Interference Modeling

Resource sharing is not always beneficial; contention for the GPU's streaming multiprocessors (SMs) and memory bandwidth can lead to significant slowdowns. The authors model this via an "interference ratio" ($\xi$). By quantifying the performance hit two specific jobs take when running together, the scheduler can avoid pairings that result in a net loss of productivity.

3. The SJF-BSBF Heuristic

The scheduling logic operates in two stages:

  • Shortest Job First (SJF): To minimize average waiting time, the scheduler prioritizes jobs with shorter estimated durations.
  • Best Sharing Benefit First (BSBF): When the cluster is fully occupied, the scheduler searches for the optimal job pair to share resources. Using a greedy strategy, it identifies the pairing and the specific "launch point" (the optimal time to start the second job) that minimizes the total completion time for both tasks. The authors mathematically prove that the optimal time to insert a shared job is typically either immediately or after the first job completes, rather than at an arbitrary midpoint.

Experimental Evaluation

The researchers evaluated SJF-BSBF using a combination of physical hardware and large-scale simulations:

  • Physical Cluster: A setup of 4 servers equipped with 16 NVIDIA 2080Ti GPUs. The workload included diverse models such as BERT, CIFAR10, DeepSpeech2, ImageNet, NCF, and YoloV3.
  • Trace-Driven Simulations: To test scalability, the authors simulated environments with 240 and 480 jobs, using arrival patterns and GPU demands sampled from Microsoft’s public DL cluster traces.

Key Results and Insights

Significant JCT Reductions

SJF-BSBF consistently outperformed state-of-the-art schedulers. It reduced the Average Job Completion Time (JCT) by 27% to 33% compared to Tiresias and Pollux. In high-load scenarios where job arrival rates were doubled, the system maintained its efficiency, whereas exclusive-access schedulers saw a dramatic spike in queuing delays.

Relief for Queuing Bottlenecks

For specific compute-intensive models like BERT, the system slashed queuing delays by nearly 44%. By allowing smaller jobs to "tuck into" the unused resources of larger jobs, the scheduler effectively eliminated the starvation of short-duration tasks.

The Importance of "Wise" Sharing

A critical finding was the comparison between SJF-BSBF and a naive "First-Fit Sharing" (SJF-FFS) approach. While SJF-BSBF provided a 33% gain, naive sharing often resulted in performance degradation due to extreme resource contention. This highlights that how jobs are paired is just as important as the decision to share resources at all.

Conclusion

SJF-BSBF demonstrates that non-preemptive, sharing-aware scheduling can outperform complex preemptive and elastic schedulers in multi-tenant GPU environments. By treating model accuracy as a hard constraint and using gradient accumulation as a flexible resource lever, the system achieves superior throughput and lower latency. Future work may expand this model to allow more than two jobs per GPU and explore more complex network topologies in hyperscale data centers.

Summary updated

BibTeX
@inproceedings{luo2024scheduling,
  author = {Yizhou Luo and Qiang Wang and Shaohuai Shi and Jiaxin Lai and Shuhan Qi and Jiajia Zhang and Xuan Wang},
  title = {{Scheduling Deep Learning Jobs in Multi-Tenant GPU Clusters via Wise Resource Sharing}},
  booktitle = {IWQoS},
  year = {2024},
  url = {https://openreview.net/forum?id=XNIngGrlZX},
}
Figure