[2020 OSDI] Gavel: Heterogeneity-Aware Cluster Scheduling Policies for Deep Learning Workloads
Gavel is a scheduler that takes into account the performance heterogeneity of underlying accelerators (GPUs, TPUs, etc.) when training DNN jobs. Gavel makes existing policies heterogeneity-aware and incorporates them as optimization problems.
- 1.DNN Training
- 2.Performance Optimizations
- 3.System Overview
- 1.Heterogeneity-Aware Policies
- 2.Round-based Scheduling Mechanism
- 3.Throughput Estimator
- 4.Limitations and Non-Goals
- 4.Scheduling Policies
- 1.Max-Min Fairness as an Optimization Problem
- 2.Other Policies as Optimization Problems
- 3.Hierarchical Scheduling Policies
- 4.Properties of Gavel's Policies
- 5.Scheduling Mechanism
- 1.Experiment Setup
- 2.End-to-End Results on Physical Cluster
- 3.End-to-End Results in Simulation
- 4.Scalability of Heterogeneity-Aware Policies
- 5.Efficacy of Scheduling Mechanism
- 6.Impact of Throughput Estimation
- 8.Related Work and Discussion
For a cluster scheudler, choosing the optimal accelerator types is difficult for three reasons:
- 1.Performance heterogeneity: Common deep learning training workloads show heterogeneous performance on different hardware accelerators due to architectural differences. Not being aware of this result in suboptimal allocations.
- 2.Generality across policies: Recent scheudlers like Allox and Gandiva optimize for a single scheduling objective, while in reality, clusters may take differnet (and sophisticated) scheduling policies.
- 3.Colocation and optimization optimizations: The performance benefits of these optimizations should be considered explicitly while optimizing for global scheduling objectives, since these optimizations are more effective when deployed in a heterogeneity-aware way.
Gavel expresses scheduling policies as optimization problems and produces an allocation matrix that indicates the fraction of time each job should spend on the different accelerators between allocation recomputations (new jobs arriving, old jobs finishing, periodic recomputations, etc).
In this case, job 0 spends 60% of the time on a V100 and 40% of the time on a P100.
m: model, X: allocation matrix, T: throughput matrix
Gavel converted the following policies into optimization problems and included them in the code base:
With the optimal allocation computed, Gavel tries to dispatch jobs while matching the optimal allocation as close as possible by using two techniques:
- 1.Round-based scheduling: Gavel allows users to set the round length (optimal length that allows for the effective approximation is 6 minutes). This mechanism ensures that jobs receive time on accelerator types according to the optimal allocation.
- 2.Per-job priority score: In each round, the scheduler runs jobs in decreasing priority order. The priority for each job is computed as the target allocation divided by the number of rounds received.
This priority mechanism helps the approximation of the optimal allocation as shown in X^example.
Heterogeneity-aware policies reduces avg. JCT by 1.5x
How well the Gavel scheduling/dispatching mechanism works
The paper also covers extensive evaluations on:
- How well the heterogeneity-aware policies improve objective metrics, both in simulation and physical experiments
- How do Gavel's policies scale
- Whether Gavel can accurately estimate the throughputs of co-located jobs when using space sharing