MIG and virtualising GPU infrastructure
Multi-Instance GPU hardware partitioning, compared with time-slicing, vGPU and passthrough, and how to choose between them.
- Identify the key considerations for virtualizing accelerated infrastructure.
- Articulate the key measures and criteria related to monitoring GPUs.
One modern data center GPU is often far more than a single inference service, notebook or small training job needs. Multi-Instance GPU (MIG) splits a supported GPU into up to seven fully isolated instances, each with its own compute cores, memory, memory bandwidth and cache. Try it:
01What MIG isolates
- Compute: dedicated streaming multiprocessors (SMs) per instance.
- Memory and bandwidth: a fixed slice of HBM and its bandwidth, so one job cannot starve another.
- Cache: dedicated L2 cache slices.
- Faults: an error in one instance does not affect the others.
- Media engines: decoders (NVDEC, NVJPG) assigned per instance.
The result is predictable quality of service: each instance behaves like a smaller, dedicated GPU. On Hopper and Blackwell, MIG also works with confidential computing for secure multi-tenancy.
02Profiles and rules
Profiles are written <compute slices>g.<memory>gb. On an 80 GB A100/H100 they range from 1g.10gb (smallest) through 2g.20gb, 3g.40gb and 4g.40gb to 7g.80gb (the whole GPU). On an A100 40 GB the smallest is 1g.5gb. Rules: slices cannot overlap, the total cannot exceed the GPU’s compute and memory, and some combinations leave unusable leftovers. A server with 8 GPUs can expose up to 8 × 7 = 56 instances.
nvidia-smi -i 0 -mig 1 # enable MIG mode on GPU 0
nvidia-smi mig -lgip # list available GPU instance profiles
nvidia-smi mig -cgi 9,9 -C # create two 3g instances + compute instances
nvidia-smi -L # list GPUs and MIG devices
MIG is a data center GPU feature (Ampere A100/A30, Hopper, Blackwell and later). GPUs without it, such as T4 or A10G, show MIG as N/A in nvidia-smi. On Kubernetes, the GPU Operator’s MIG manager applies layouts and the device plugin exposes slices as resources.
03The four ways to share or virtualise GPUs
| Passthrough | Time-slicing | vGPU | MIG | |
|---|---|---|---|---|
| How | Whole physical GPU given to one VM | Workloads take turns on the whole GPU | Hypervisor + NVIDIA vGPU software share a GPU among VMs | Hardware partitions with dedicated resources |
| Isolation | Full (one tenant) | None for memory/compute; contention | Software (hypervisor-enforced) | Hardware-enforced, strong |
| Performance | Near-native | Varies; noisy neighbours | Varies with sharing | Consistent, predictable |
| Max sharing | 1 | Many | Many VMs per GPU (model-dependent) | Up to 7 per GPU |
| Needs | Hypervisor (e.g. VFIO) | Driver / K8s config | Licensed vGPU software + hypervisor | MIG-capable data center GPU; no hypervisor needed |
| Best for | Dedicated VM needing a full GPU | Dev, light or bursty work | VDI, virtual workstations, VM-based tenants | Inference, containers, multi-tenant with guaranteed QoS |
04Key considerations when virtualising accelerated infrastructure
- Isolation needs: tenants from different teams or customers? Prefer MIG (hardware) or passthrough.
- Performance predictability: latency SLOs favour MIG over time-slicing.
- Workload size: large training wants whole GPUs (or many); small inference wants slices.
- Platform: VMs (vGPU, passthrough) versus containers on bare metal (MIG, time-slicing).
- Licensing and support: vGPU needs NVIDIA licences (part of NVIDIA AI Enterprise).
- Monitoring: DCGM reports per-MIG-instance metrics; make sure your dashboards do.
- Flexibility: MIG layouts can be changed (for example small slices by day for inference, a full GPU at night for training), but changing them requires the GPU to be idle.
✦Key terms: flip the cards
- MIG: up to 7 hardware-isolated instances with dedicated SMs, cache and memory; data center GPUs only.
- Compare MIG, time-slicing, vGPU and passthrough on isolation, performance and use case.
- Considerations: isolation, QoS, workload size, VMs vs containers, licensing, monitoring.
- MIG needs no hypervisor; vGPU does.
- Time-slicing gives no memory isolation.
- Consumer and some data center GPUs (T4, A10G) do not support MIG.
?Quick quiz
1. Maximum MIG instances per supported GPU?
Why: MIG supports up to seven instances.
2. Which approach gives hardware-enforced isolation of memory and compute?
Why: MIG partitions SMs, cache and memory in hardware.
3. A company needs GPU-backed virtual desktops for designers on a hypervisor. Best fit?
Why: vGPU is designed for VDI and VM sharing.
4. What is the smallest MIG profile on an 80 GB A100/H100?
Why: 1g.10gb on 80 GB parts (1g.5gb on the 40 GB A100).
5. Which sharing method risks noisy-neighbour latency spikes?
Why: Time-sliced workloads compete for the same resources.
Score: 0 / 5
This lesson explains the reading in plain language and adds the exam context around it. Read the original too: it is short, and seeing the vendor wording helps on exam day.