Skip to main content
QUICK REVIEW

[Paper Review] Salus: Fine-Grained GPU Sharing Primitives for Deep Learning Applications

Peifeng Yu, Mosharaf Chowdhury|arXiv (Cornell University)|Feb 12, 2019
Advanced Neural Network ApplicationsComputer Science27 citations
TL;DR

Salus introduces two fine-grained GPU sharing primitives—fast job switching and memory sharing—to enable efficient, consolidated execution of unmodified deep learning workloads on shared GPUs. By supporting dynamic scheduling and memory packing, Salus improves average training job completion time by 3.19×, hyper-parameter tuning GPU utilization by 2.38×, and inference utilization by 42× over non-sharing and 7× over NVIDIA MPS, with minimal overhead.

ABSTRACT

GPU computing is becoming increasingly more popular with the proliferation of deep learning (DL) applications. However, unlike traditional resources such as CPU or the network, modern GPUs do not natively support fine-grained sharing primitives. Consequently, implementing common policies such as time sharing and preemption are expensive. Worse, when a DL application cannot completely use a GPU's resources, the GPU cannot be efficiently shared between multiple applications, leading to GPU underutilization. We present Salus to enable two GPU sharing primitives: fast job switching and memory sharing, in order to achieve fine-grained GPU sharing among multiple DL applications. Salus implements an efficient, consolidated execution service that exposes the GPU to different DL applications, and enforces fine-grained sharing by performing iteration scheduling and addressing associated memory management issues. We show that these primitives can then be used to implement flexible sharing policies such as fairness, prioritization, and packing for various use cases. Our integration of Salus with TensorFlow and evaluation on popular DL jobs show that Salus can improve the average completion time of DL training jobs by $3.19\ imes$, GPU utilization for hyper-parameter tuning by $2.38\ imes$, and GPU utilization of DL inference applications by $42\ imes$ over not sharing the GPU and $7\ imes$ over NVIDIA MPS with small overhead.

Motivation & Objective

  • To address GPU underutilization caused by coarse-grained, whole-GPU allocation in deep learning workloads.
  • To enable efficient time sharing and preemption of GPU resources among multiple unmodified DL applications.
  • To improve memory utilization through dynamic memory partitioning and packing of small jobs on a single GPU.
  • To support flexible scheduling policies such as fairness, prioritization, and packing in shared GPU environments.
  • To integrate seamlessly with existing DL frameworks like TensorFlow while minimizing performance overhead.

Proposed method

  • Introduces a consolidated execution service that manages GPU access across multiple DL jobs without requiring application modifications.
  • Employs fast job switching to enable low-latency context switching between jobs, supporting time-sharing and preemption.
  • Designs a GPU lane abstraction to enable dynamic memory partitioning and efficient memory sharing across jobs with varying memory usage patterns.
  • Classifies DL memory usage into three types and applies tailored memory management policies to each, improving allocation efficiency.
  • Uses iteration-level scheduling to coordinate job execution and balance load across GPU resources.
  • Integrates with TensorFlow and exposes primitives via a lightweight runtime layer, minimizing performance impact.

Experimental results

Research questions

  • RQ1How can fine-grained GPU sharing be efficiently implemented in deep learning workloads without modifying existing frameworks?
  • RQ2What are the performance and utilization benefits of enabling dynamic job switching and memory sharing on shared GPUs?
  • RQ3Can flexible scheduling policies like fairness, prioritization, and packing be effectively implemented using GPU-level primitives?
  • RQ4How does the proposed sharing mechanism compare to existing solutions like NVIDIA MPS and container-based GPU allocation?
  • RQ5What is the overhead of enabling fine-grained sharing while maintaining compatibility with complex DL frameworks?

Key findings

  • Salus improves the average completion time of deep learning training jobs by 3.19× compared to non-sharing and non-preemptive scheduling.
  • GPU utilization for hyper-parameter tuning workloads increases by 2.38× over non-sharing and 7× over NVIDIA MPS.
  • Inference workloads achieve 42× higher GPU utilization compared to non-sharing and 7× over NVIDIA MPS, with minimal performance overhead.
  • Salus enables efficient implementation of scheduling policies such as shortest-remaining-time-first (SRTF), reducing head-of-line blocking.
  • The integration with TensorFlow is stable and does not cause crashes, unlike NVIDIA MPS with TensorFlow in multi-instance scenarios.
  • Salus outperforms the SP+MPS+OC configuration, which exhibited unusably poor performance in evaluation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.