TL;DR
Modern deep learning workloads often underutilize GPUs due to coarse-grained resource allocation. Salus introduces "fast job switching" and "GPU lane abstraction" to enable fine-grained GPU sharing, allowing multiple DL applications to run concurrently on a single GPU, significantly improving utilization and reducing job completion times.
What Problem Does This Paper Address?
Deep learning (DL) applications heavily rely on GPUs for their parallel processing needs. However, current GPU resource management is typically "all-or-nothing," meaning a single GPU is allocated exclusively to one application at a time. This coarse-grained allocation leads to two major inefficiencies:
- Underutilization: DL applications, especially those with varying memory demands or batch sizes, often don't fully utilize a GPU's capacity, leaving resources idle. This is particularly true for memory-intensive training jobs where peak usage can be high but average usage is much lower, and for hyper-parameter tuning or inference workloads that have fluctuating demands.
- Scheduling Inflexibility: Implementing advanced scheduling policies like preemption (interrupting a job to run another) or efficient time-sharing is difficult and costly due to the overhead of suspending and resuming entire DL jobs. This often leads to simple, less efficient scheduling like First-In, First-Out (FIFO), which can suffer from head-of-line blocking.
The paper aims to solve this by enabling fine-grained sharing of individual GPUs among multiple DL applications.
Methods
Salus introduces two core GPU sharing primitives:
- Fast Job Switching: This primitive enables rapid switching between active DL jobs on a GPU. Instead of the expensive process of fully unloading and reloading a job, Salus focuses on switching at the "iteration" level. This is made possible by observing that DL jobs have predictable memory usage patterns with persistent (model parameters) and ephemeral (intermediate computations) components. Salus keeps the persistent memory on the GPU and only switches the ephemeral allocations, drastically reducing the overhead of preemption and time-sharing.
- GPU Lane Abstraction (Memory Sharing): This technique divides the GPU's memory into "persistent" and "ephemeral" regions. The persistent region holds model parameters and framework-internal data, while the ephemeral region is further divided into "lanes." Each lane can host multiple DL jobs, allowing their ephemeral memory allocations to be managed and shared. This "GPU lane" abstraction, combined with an intelligent allocator and auto-defragmentation at iteration boundaries, allows for packing multiple jobs onto a single GPU while mitigating memory fragmentation and avoiding deadlocks.
These primitives are integrated into a consolidated execution service that acts as a transparent layer between DL frameworks (like TensorFlow) and the GPU hardware, requiring only a framework-specific adaptor.
Datasets
The paper does not explicitly mention specific datasets used for training DL models. However, it evaluates Salus using a collection of popular DL workloads and benchmarks, including:
- TensorFlow CNN benchmarks: Official benchmarks for Convolutional Neural Networks.
- Other popular models: Selected models from various DL fields.
- Hyper-parameter tuning workloads: Used to evaluate the efficiency of packing multiple jobs.
- DL inference applications: Used to assess GPU utilization for serving models.
The paper also refers to a "production cluster" workload for long-running training scenarios.
Key Insights and Ideas
- Iteration-level switching is key: The realization that DL jobs have distinct persistent and ephemeral memory components allows for efficient switching at the iteration level, avoiding the massive overhead of full job context switches.
- Memory patterns enable sharing: The predictable nature of DL memory usage (peaks and troughs) is not a limitation but an opportunity for fine-grained sharing and packing.
- GPU lanes for efficient packing: Dividing the ephemeral memory into lanes provides a structured way to manage and share resources among multiple jobs, preventing fragmentation and deadlocks.
- Transparency is crucial: Salus aims to be transparent to users and DL frameworks, meaning existing DL scripts should work without modification, lowering the barrier to adoption.
Key Results
Salus demonstrates significant improvements across various DL application types:
- Long-Running Training: Improves average job completion time (JCT) by 3.19x compared to FIFO scheduling using the SRTF policy.
- Hyper-Parameter Tuning: Increases GPU utilization by 2.38x by enabling packing of multiple tuning jobs.
- Inference: Achieves 42x GPU utilization improvement over not sharing the GPU and 7x over NVIDIA MPS, while maintaining low latency overhead.
- Overhead: Salus introduces minimal overhead, typically less than 10% per iteration for most CNN models, with some exceptions for models with heavy CPU computation.
- Comparison with existing solutions: Salus achieves comparable performance to NVIDIA MPS in a two-job training scenario but offers significantly more flexibility.
Limitations and Future Work
- Policy Question: The paper acknowledges that while Salus provides the mechanism for flexible scheduling, determining the "best" scheduling algorithm for shared GPUs remains an open research question.
- Job Duration Estimation: The SRTF policy assumes job durations are known or can be estimated. While the paper mentions existing work on estimation, it's not a core focus.
- Multi-GPU and Cross-Machine Sharing: Salus is currently focused on single-GPU sharing. Future work includes extending it to multiple GPUs and even across machines using RDMA.
- Framework Optimization: The overhead for models with heavy CPU computation is higher because Salus's execution engine is not yet heavily optimized for CPU tasks.
Summary updated