ParvaGPU: Efficient Spatial GPU Sharing for Large-Scale DNN Inference in Cloud Environments

Munkyu Lee, Sihoon Seong, Minki Kang, Jihyuk Lee, Gap-Joo Na, In-Geol Chun, Dimitrios S. Nikolopoulos, Cheol-Ho Hong · DOI

Introduction

In modern cloud computing, maximizing the efficiency of expensive GPU resources is paramount. Cloud providers strive to pack as many deep learning inference tasks as possible onto each device to minimize costs, while users require strict adherence to Service Level Objectives (SLOs), typically defined by latency limits. ParvaGPU is a novel framework designed to bridge the gap between hardware isolation and fine-grained resource sharing by combining NVIDIA’s Multi-Instance GPU (MIG) and Multi-Process Service (MPS) technologies.

The Challenge of GPU Sharing

Current GPU sharing technologies face a "Goldilocks" problem. NVIDIA’s MIG provides robust hardware isolation but is relatively coarse-grained. It allows a GPU to be split into only a few fixed sizes, often resulting in "internal slack"—wasted compute capacity within a partition that is too small for another model but too large for the current one.

Conversely, MPS enables fine-grained sharing but can lead to unpredictable performance interference when heterogeneous models are co-located. Furthermore, as models are distributed across multiple GPUs, "external fragmentation" occurs, leaving small, non-contiguous gaps that are unusable for new tasks. ParvaGPU addresses both internal slack and external fragmentation through a two-stage optimization process.

Methodology: The GPU Segment

The core innovation of ParvaGPU is the GPU Segment: an MPS-activated MIG instance. By using MPS exclusively for identical workloads within a MIG instance, the framework achieves fine-grained scaling without the interference typical of mixed-model MPS environments.

1. Segment Configurator

The Segment Configurator determines the optimal hardware and software parameters for a specific model. It performs an Optimal Triplet Decision, searching for the best combination of MIG instance size, batch size, and the number of MPS processes to maximize throughput while ensuring the latency remains within SLO bounds.

Throughput analysis across different MIG instances, batch sizes, and process counts.

For high-traffic models, a tree-search-based algorithm calculates the minimum number of segments required to satisfy the total request rate.

2. Segment Allocator

Once the segments are defined, the Segment Allocator places them onto physical hardware while respecting complex MIG configuration constraints.

MIG configuration options for GPC slices.

The allocator uses a heuristic approach, sorting segments by size to pack them efficiently. To combat fragmentation, it proactively splits larger, underutilized segments into smaller ones to fill available "holes" on the GPUs.

Evaluation and Results

The framework was evaluated using 11 diverse DNN workloads (including BERT-large, ResNet, and VGG) on a cluster of NVIDIA A100 (80GB) GPUs. ParvaGPU demonstrated significant improvements over state-of-the-art baselines:

  • Resource Efficiency: ParvaGPU reduced GPU consumption by an average of 46.5% compared to gpulet, 34.6% compared to iGniter, and 41.0% compared to MIG-serving.
  • Utilization: It maintained an internal slack rate of only 3-5%, a stark contrast to the 20-50% underutilization seen in competing frameworks.
  • Performance: Scheduling delays were reduced by 80% to 97%, and the system achieved a 100% SLO compliance rate across nearly all tested scenarios.

Conclusion and Future Work

ParvaGPU successfully decouples configuration from allocation, transforming a complex NP-hard optimization problem into a manageable two-step process. While the current implementation is tailored for NVIDIA's Ampere architecture, the underlying logic is potentially applicable to other hardware like AMD’s compute unit masking. Future research will focus on mitigating reconfiguration overheads and adapting these techniques for the memory-intensive requirements of Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{lee2024parvagpu,
  author = {Munkyu Lee and Sihoon Seong and Minki Kang and Jihyuk Lee and Gap-Joo Na and In-Geol Chun and Dimitrios S. Nikolopoulos and Cheol-Ho Hong},
  title = {{ParvaGPU: Efficient Spatial GPU Sharing for Large-Scale DNN Inference in Cloud Environments}},
  booktitle = {SC},
  year = {2024},
}
Figure