TL;DR
This paper introduces Dally, a novel cluster scheduler for deep learning (DL) that intelligently places DL jobs on GPUs based on their network sensitivity and the underlying network topology. By minimizing communication latency, Dally significantly reduces training times and costs, outperforming existing schedulers.
What Problem Does This Paper Address?
Training large deep learning models (DNNs) on GPU clusters is becoming increasingly common but is also very expensive. A significant portion of the training time, and thus cost, is spent on communication between GPUs, especially in large, distributed clusters. Existing cluster schedulers often treat all jobs and network connections similarly, failing to account for how different DNN models are affected by network latency. This "network-agnostic" approach leads to suboptimal job placement, prolonged training times, and wasted resources. The paper aims to bridge this gap by developing a scheduler that understands and leverages the network sensitivity of DL jobs to optimize placement and reduce communication overhead.
Methods
The core of Dally's approach lies in its network-placement sensitive cluster scheduling. It combines two key strategies:
- Delay Scheduling: Inspired by traditional delay scheduling algorithms, Dally allows jobs to wait for more optimal resource offers. Instead of immediately accepting any GPU allocation, a job can "delay" its placement, waiting for GPUs that are physically closer within the network. This delay is managed by "delay timers" that are specific to different network tiers (e.g., within a machine, within a rack, across the network).
- Network-Sensitive Preemption Policy: Dally introduces a novel preemption strategy that prioritizes jobs based on their "network sensitivity." This means jobs that are more affected by network latency are given higher priority for consolidated placements. This is quantified using a metric called
Nwsens, which considers the work completed versus the expected ideal running time. - Auto-Tuner: To avoid the manual configuration of delay timers (which can be suboptimal, especially with new DL models), Dally incorporates an "auto-tuner." This module dynamically adjusts the delay timers based on historical job waiting times and current network contention, learning optimal waiting durations over time.
To evaluate Dally, the authors developed ArtISt-sim, a high-fidelity, multi-job DL cluster simulator. ArtISt-sim builds upon existing simulators (Themis and ASTRA-sim) to accurately model network slowdowns based on specific job placements and modern networking hardware.
Datasets
The paper uses real-world production traces from SenseTime for their experiments. They selected 500 DL/DDL jobs for batch workloads and approximately 400 for Poisson workloads. These traces include individual job arrivals, metadata, compute requirements (time per iteration, number of iterations), and GPU demands. The models used are specified in Table I of the paper (VGG11, AlexNet, MobileNetV3, ResNet18, ResNet50, BERT large).
Key Insights and Ideas
- Network Sensitivity is Crucial: The paper strongly emphasizes that different DNN models have vastly different sensitivities to network latency. This is not always correlated with model complexity (e.g., "skew" as previously thought) but rather with how communication-intensive specific layers or operations are.
- Delay Scheduling is More Than Just Data Locality: While traditional delay scheduling focuses on data locality, Dally repurposes it for network proximity. This allows jobs to strategically wait for better network placements, not just data-resident ones.
- Auto-Tuning is Key for Adaptability: The manual configuration of delay timers is a bottleneck. The auto-tuner's ability to dynamically adapt these timers based on real-time cluster conditions and job characteristics is a significant advancement for handling diverse and evolving DL workloads.
- Simulation is Essential for Modern Hardware: The authors highlight the prohibitive cost of setting up real-world experiments with cutting-edge networking hardware. Their simulator, ArtISt-sim, provides a realistic and cost-effective platform for evaluating novel DL scheduling techniques.
- Consolidation Needs Nuance: Simply consolidating jobs as much as possible (like some existing methods) isn't always optimal. Dally's approach of "network-sensitive consolidation" strikes a balance, prioritizing consolidation for sensitive jobs while allowing others more flexibility.
Key Results
Dally demonstrated significant improvements across various metrics compared to state-of-the-art schedulers like Tiresias and Gandiva:
- Makespan: Up to 69% improvement compared to consolidation-based policies.
- Job Completion Time (JCT): Average JCT reduced by up to 36% (26% mean).
- Communication Latency: Reduced by up to 83% (66% mean), especially under congested network conditions.
- Queuing Delay: Significant reduction, contributing to the overall makespan improvement.
- Cluster Utilization: Dally achieved higher cluster utilization due to its efficient job scheduling and reduced communication bottlenecks.
Limitations and Future Work
- Unknown JCT Distributions: The paper assumes unknown job completion time distributions, which is a realistic constraint but might limit certain optimization strategies.
- Absence of Model Architecture Information: Dally does not require specific model architecture information, which is a strength for generalizability but might miss opportunities for highly specialized optimizations.
- Unknown Job Submission Pattern and GPU Demand: The scheduler is designed to handle unknown arrival patterns and GPU demands, which is a practical advantage.
- Future Work: The paper doesn't explicitly detail future work, but the development of ArtISt-sim itself suggests a path for further research into DL cluster simulation and scheduling. The auto-tuner's effectiveness could also be further explored with more complex network topologies and workload patterns.
Summary updated