TL;DR
This paper introduces MISO, a novel system that dynamically partitions NVIDIA's Multi-Instance GPU (MIG) capabilities to improve resource utilization and performance in multi-tenant GPU environments. By cleverly using the less restrictive Multi-Process Service (MPS) to predict optimal MIG configurations, MISO significantly reduces job completion times and increases system throughput compared to existing static or unpartitioned approaches.
What Problem Does This Paper Address?
Modern GPUs are incredibly powerful, but many AI/ML workloads can't fully utilize their capabilities. This leads to inefficient resource usage, especially in multi-tenant systems where multiple users share GPUs. While NVIDIA's Multi-Instance GPU (MIG) technology allows for hardware-level partitioning of GPUs into smaller, isolated instances, finding the optimal partition for a mix of co-located jobs is a significant challenge. This is because exploring different MIG configurations is time-consuming, requires frequent GPU resets, and incurs substantial overhead due to checkpointing and restarting jobs. The paper aims to solve this by providing an efficient and automated way to determine the best MIG partition for a given set of jobs.
Methods
MISO employs a two-pronged approach:
- MPS-to-MIG Performance Predictor: Instead of directly profiling jobs on MIG slices (which is slow and disruptive), MISO leverages the lightweight and flexible Multi-Process Service (MPS). MPS allows jobs to share GPU resources (specifically Streaming Multiprocessors or SMs) with less isolation but much lower overhead. MISO runs co-located jobs in MPS mode at different resource sharing levels and uses this data to train a U-Net based autoencoder model. This model learns to predict how a job would perform on various MIG slices (which offer hardware isolation) based on its MPS performance.
- MISO Scheduling Optimizer: Once the performance predictor estimates each job's potential speedup on different MIG slices, the optimizer formulates the problem as maximizing total system throughput. It then solves this optimization problem to find the near-optimal MIG partition for the current job mix on a given GPU. This process is performed dynamically for each GPU, adapting to changes in the job queue.
Datasets
The paper uses a job trace modeled after the "Helios Trace," a publicly available production GPU job trace, for reproducibility. For real-system experiments, they generated a 100-job mix mimicking this trace. For simulation, they used a 1000-job mix. The workloads evaluated include various deep learning models such as ResNet50, MobileNet, BERT, Transformer, DeepSpeech, Embedding, Graph NN, and CycleGAN, with different batch sizes.
Key Insights and Ideas
- The "sweet spot" of GPU sharing: While MIG offers superior isolation, its configuration overhead is prohibitive for dynamic optimization. MPS, on the other hand, is fast but lacks isolation. MISO bridges this gap by using MPS as a proxy to predict MIG performance.
- Dynamic partitioning is key: The optimal MIG partition for a job mix is not static. It changes depending on the specific jobs co-located, highlighting the need for dynamic, job-mix-aware scheduling.
- Overhead matters: The paper emphasizes that the cost of profiling and reconfiguring MIG partitions can negate performance gains. MISO's MPS-based approach significantly reduces this overhead.
- Heuristics aren't enough: Simple heuristic-based partitioning (e.g., based on memory or SM utilization) can lead to suboptimal performance, underscoring the need for a more sophisticated predictive approach.
Key Results
MISO achieves significant performance improvements:
- 49% lower average job completion time (JCT) compared to unpartitioned GPUs (NOPART).
- 16% lower average JCT compared to an optimal static MIG partition (OPTSTA).
- 35% higher system throughput (STP) compared to OPTSTA.
- MISO's performance is within 10% of an "Oracle" strategy that has perfect, offline knowledge of job performance.
- MISO significantly reduces queue wait times, with jobs spending virtually no time in the queue compared to NOPART.
Limitations and Future Work
- MPS overhead: While significantly lower than MIG reconfiguration, MISO still incurs some overhead from running jobs in MPS mode for profiling. The paper shows that increasing MPS profiling time beyond a certain point yields diminishing returns.
- Scalability to cluster: While MISO optimizes partitions per GPU, globally optimizing job placement across a cluster is an NP-hard problem. MISO currently uses a simpler heuristic for initial job placement.
- Future work: The authors suggest exploring more sophisticated job placement strategies for large clusters and investigating how MISO can be used to inform pricing models for GPU resources. They also anticipate future GPUs offering more MIG slices, requiring MISO to adapt its prediction and optimization models.
Summary updated