Why GPUs sit idle, and how to fix it
The common causes of low GPU utilisation, and the scheduling tricks (fractions, bin-packing, priorities, memory swap, autoscaling) that raise it.
- Articulate the key measures and criteria related to monitoring GPUs.
- Describe AI cluster orchestration and job scheduling essentials.
- Identify the key considerations for virtualizing accelerated infrastructure.
A GPU costs the same whether it is working or idle. Studies of real clusters regularly find average utilisation far below 100%, which is money burnt and, on-prem, a cost model that stops working. Raising utilisation is one of the main jobs of AI operations.
01Why GPUs end up idle
| Cause | What it looks like |
|---|---|
| Static allocation | Every model or user gets a whole GPU "to be safe", even when it needs a fraction of it |
| Idle reservations | Notebooks and dev sessions hold GPUs for hours while the person thinks or is at lunch |
| Data pipeline bottleneck | CPU data loading or slow storage cannot feed the GPU fast enough |
| Small batches or poor code | Kernels too small to fill the GPU; frequent CPU-GPU synchronisation |
| Communication waits | Multi-node jobs stall on a slow network or collective |
| Scheduler blind spots | FIFO queues blocked by big jobs; no awareness of inference vs training patterns; no sharing |
| Always-on replicas | Rarely used models kept loaded because cold starts are slow |
02Remedies from the Run:ai + NIM post
- GPU fractions with memory isolation: each workload gets a guaranteed slice of GPU memory (a hard limit, not a hope), so several models share one GPU without out-of-memory crashes.
- Bin-packing: fill partly used GPUs before opening new ones.
- Dynamic fractions: a request (guaranteed minimum) and a limit (burst ceiling) per workload, borrowed from the Kubernetes model, so bursty services use idle memory at peaks.
- GPU memory swap: park idle models’ weights in CPU memory and swap them in on demand, avoiding slow cold starts; the post measured time-to-first-token 44-61× faster than scaling from zero.
- Inference-first priority: inference gets top priority so training cannot starve it; training checkpoints and resumes when preempted.
- Autoscaling, including scale-to-zero for unused models.
The post’s benchmark on H100s: three NIM models ran on about 1.5 GPUs instead of three, keeping 91-100% of their single-GPU throughput, roughly doubling utilisation.
03Other levers
- MIG for hardware-isolated slices (next lesson); time-slicing for light, bursty dev work.
- Fix the input pipeline: faster storage, GPUDirect Storage, local caching, more data-loader workers, GPU data prep with RAPIDS/DALI.
- Bigger batches, mixed precision, TensorRT to give each GPU more useful work.
- Quotas and fair share so idle team capacity is lent out, plus idle-job reclaim policies.
- Measure properly: track SM activity and memory bandwidth with DCGM, not just "GPU utilisation".
✦Key terms: flip the cards
- Causes: static whole-GPU allocation, idle reservations, data bottlenecks, small batches, poor scheduling.
- Fixes: fractions, bin-packing, MIG/time-slicing, priorities, autoscaling, better pipelines.
- Measure with DCGM SM activity, not utilisation alone.
- Adding more GPUs does not fix a data-loading bottleneck.
- Sharing without memory isolation causes out-of-memory errors and latency spikes.
?Quick quiz
1. Training GPUs show low activity while CPUs are maxed decoding images. Fix?
Why: The GPUs are starved by a CPU-side data bottleneck.
2. Three small inference models each hold a whole H100 at ~15% use. Best improvement?
Why: Fractional/MIG sharing consolidates small models.
3. What does bin-packing do for GPU utilisation?
Why: Packing keeps whole GPUs free for big jobs.
4. Why is memory isolation important when sharing a GPU?
Why: Without isolation, neighbours can exhaust shared memory.
Score: 0 / 4
The original Run:ai article now redirects to a newer NVIDIA post about Run:ai with NIM. This lesson covers both: the classic causes of low utilisation and the remedies the newer post benchmarks.