[Paper Review] Low-latency job scheduling with preemption for the development of deep learning
This paper proposes FitGpp, a low-latency job scheduling algorithm that reduces trial-and-error (TE) job latency in deep learning workloads by selectively preempting best-effort (BE) jobs based on their resource demand and resumability. The algorithm achieves a 96.6% reduction in TE job 95th percentile slowdown compared to FIFO, while increasing BE job slowdown by only 18.0% on median and 23.9% at the 95th percentile.
One significant challenge in the job scheduling of computing clusters for the development of deep learning algorithms is the efficient scheduling of trial-and-error (TE) job, the type of job in which the users seek to conduct small-scale experiments while monitoring their processes. Unfortunately, the existing job schedulers to date do not feature well-balanced scheduling for the mixture of TE jobs and best-effort (BE) jobs, or they can handle the mixture in limited situations at most. To fill in this niche, we propose an algorithm that can significantly reduce the latency of TE jobs in versatile situations without greatly elongating the slowdown of the BE jobs. Our algorithm efficiently schedules both TE and BE jobs by selectively preempting the BE jobs that can be, when the time comes, resumed without much delay. In our simulation study with synthetic and real workloads, we were able to reduce the 95th percentile of the slowdown rates for the TE jobs in the standard FIFO strategy by 96.6%, while compromising the median of the BE slowdown rates by only 18.0% and the 95th percentile by only 23.9%.
Motivation & Objective
- To address the imbalance in scheduling between low-latency trial-and-error (TE) jobs and high-throughput best-effort (BE) jobs in deep learning clusters.
- To reduce TE job latency without significantly increasing BE job slowdown, especially in mixed workloads.
- To design a preemption strategy that avoids starving BE jobs by limiting preemption frequency and selecting resumable jobs.
- To enable efficient scheduling across diverse deep learning frameworks, including those using all-reduce architectures.
- To provide a practical, production-ready solution compatible with real-world cluster workloads and dynamic resource demands.
Proposed method
- The FitGpp algorithm selects BE jobs for preemption based on their resource demand and likelihood of quick resumption, using a score function that prioritizes jobs with lower resource consumption and higher resumability.
- It dynamically suspends selected BE jobs, freeing up GPU resources for immediate allocation to pending TE jobs.
- The algorithm enforces a maximum preemption limit per BE job to prevent starvation and ensure fairness.
- It uses a parameter 's' to control the aggressiveness of preemption, balancing TE job responsiveness and BE job slowdown.
- The scheduler does not require execution time estimation, making it robust to hyperparameter sensitivity common in deep learning jobs.
- It supports both synthetic and real-world workloads, including traces from a university cluster, and is compatible with various deep learning frameworks.
Experimental results
Research questions
- RQ1Can a preemption-based scheduler significantly reduce TE job latency without incurring excessive BE job slowdown in mixed deep learning workloads?
- RQ2How does the choice of preemption threshold parameter 's' affect the trade-off between TE job responsiveness and BE job performance?
- RQ3To what extent can preemption reduce TE job slowdown when the workload includes long-running BE jobs with variable execution patterns?
- RQ4Does the algorithm maintain low BE job slowdown across diverse workload proportions and GP length distributions?
- RQ5Can the algorithm outperform non-preemptive FIFO and other preemption strategies like LRTP and RAND in real cluster traces?
Key findings
- FitGpp with s=4.0 reduced the 95th percentile of TE job slowdown by 96.6% compared to FIFO, achieving a slowdown rate of 9.00 vs. 2080.
- The median slowdown of BE jobs was reduced by 29.6% with FitGpp compared to FIFO, dropping from 16.2 to 11.4.
- The 95th percentile of BE job slowdown increased by only 18.0% (from 443 to 372) when using FitGpp, compared to 16.0% reduction in median slowdown.
- FitGpp maintained low BE job slowdown across varying proportions of TE jobs, outperforming other algorithms consistently regardless of workload mix.
- The algorithm’s performance was robust to variations in GP length distribution, with s=8.0 effectively mitigating increased TE job slowdown under longer GPs.
- In real cluster trace evaluation, FitGpp achieved a 16.0% lower 95th percentile BE job slowdown than FIFO, while reducing TE job 95th percentile slowdown to just 9.00.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.