⚙️
Domain 3 · AI Operations · 22% of the exam

MIG and virtualising GPU infrastructure

Multi-Instance GPU hardware partitioning, compared with time-slicing, vGPU and passthrough, and how to choose between them.

Lesson 29 of 29~15 min read5 quiz questions5 key terms
Exam objectives this lesson covers
  • 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:

Partition an 80 GB GPU:

01What MIG isolates

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

PassthroughTime-slicingvGPUMIG
HowWhole physical GPU given to one VMWorkloads take turns on the whole GPUHypervisor + NVIDIA vGPU software share a GPU among VMsHardware partitions with dedicated resources
IsolationFull (one tenant)None for memory/compute; contentionSoftware (hypervisor-enforced)Hardware-enforced, strong
PerformanceNear-nativeVaries; noisy neighboursVaries with sharingConsistent, predictable
Max sharing1ManyMany VMs per GPU (model-dependent)Up to 7 per GPU
NeedsHypervisor (e.g. VFIO)Driver / K8s configLicensed vGPU software + hypervisorMIG-capable data center GPU; no hypervisor needed
Best forDedicated VM needing a full GPUDev, light or bursty workVDI, virtual workstations, VM-based tenantsInference, containers, multi-tenant with guaranteed QoS

04Key considerations when virtualising accelerated infrastructure

  1. Isolation needs: tenants from different teams or customers? Prefer MIG (hardware) or passthrough.
  2. Performance predictability: latency SLOs favour MIG over time-slicing.
  3. Workload size: large training wants whole GPUs (or many); small inference wants slices.
  4. Platform: VMs (vGPU, passthrough) versus containers on bare metal (MIG, time-slicing).
  5. Licensing and support: vGPU needs NVIDIA licences (part of NVIDIA AI Enterprise).
  6. Monitoring: DCGM reports per-MIG-instance metrics; make sure your dashboards do.
  7. 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.
An office floor. Time-slicing is hot-desking: everyone shares one desk in turns. vGPU is a co-working space: private desks but a shared lobby and kitchen. MIG is walled suites, each with its own door, lift and kitchen. Passthrough is renting the whole floor.

✦Key terms: flip the cards

What the exam looks for
  • 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.
Common traps
  • 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

Original readingNVIDIA Multi-Instance GPU (MIG) ↗

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.

All lessons →
↑