Introduction
Modern data centers increasingly rely on powerful GPUs like the NVIDIA A100 to handle massive deep learning (DL) workloads. However, executing a single, small-scale inference model on such hardware often leads to significant resource underutilization. To address this, NVIDIA introduced Multi-Instance GPU (MIG) technology, which allows a physical GPU to be partitioned into up to seven isolated hardware instances. Despite its potential, selecting the optimal partition size for specific models remains a challenge due to the lack of automated benchmarking tools and documented performance trade-offs.
The MIGPerf Framework
To demystify MIG performance, we developed MIGPerf, an open-source tool designed to automate the partitioning and profiling of GPUs. The system architecture, illustrated in Figure 1, consists of two primary components:
- MIG Controller: This component serves as a high-level wrapper for NVIDIA's low-level management commands, automating the creation, tracking, and destruction of GPU instances (GIs) and compute instances (CIs).
- MIG Profiler: Built atop popular frameworks like HuggingFace, the profiler executes training and inference tasks while monitoring critical metrics—including throughput, latency, memory usage, and energy consumption—via NVIDIA's Data Center GPU Manager (DCGM).
Experimental Methodology
MIGPerf was used to characterize performance across various partition sizes (ranging from 1g.10gb to 7g.80gb) on NVIDIA A100 and A30 GPUs. The benchmarking suite included representative DL workloads:
- Computer Vision: ResNet-18, 34, 50, and 101 via TorchHub.
- Natural Language Processing: DistilBERT, BERT-base, and BERT-large via HuggingFace.
These models represent a spectrum of computational requirements, allowing for a thorough analysis of how different hardware slices handle varying model complexities.
Key Findings and Performance Analysis
Our evaluation revealed several critical insights into MIG's operational characteristics, as summarized in Figure 2.
Throughput and Utilization
For smaller MIG instances (e.g., 1g.10gb), we observed a "throughput ceiling." Increasing the batch size beyond a certain point does not yield higher throughput because compute resources saturate almost immediately. Instead, larger batches merely increase latency. This is further evidenced by GRACT (Graphics Engine Activity) metrics, which show small instances hitting nearly 100% utilization even with modest batch sizes, whereas larger instances like 7g.80gb often remain underutilized.
Energy Efficiency
A counter-intuitive finding was that larger MIG instances can be more energy-efficient for a fixed number of requests. Although they consume more power, they complete tasks significantly faster, resulting in lower total energy consumption (power × time) compared to smaller, slower instances.
Hardware vs. Software Isolation
We compared MIG (hardware-level partitioning) with NVIDIA’s Multi-Process Service (MPS, software-level sharing). While MPS is competitive for light, non-interfering workloads, MIG excels in "crowded" environments. MIG provides superior tail latency (P99) stability by preventing the "noisy neighbor" effect, which is essential for meeting Service Level Objectives (SLOs) in production environments.
Current Limitations and Future Directions
Despite its advantages, MIG faces two major hurdles:
- Framework Visibility: Most current DL frameworks (PyTorch, TensorFlow, etc.) are "blind" to multiple MIG instances by default, typically only recognizing the first partition (MIG 0). Utilizing additional slices currently requires complex Docker orchestration.
- Rigid Partitioning: Current implementations follow strict partitioning rules that limit resource flexibility (e.g., inability to have specific mixed partition sizes simultaneously).
Future work will focus on developing hybrid orchestration systems that dynamically switch between MIG and MPS based on real-time workload sensitivity and latency requirements.
Summary updated