All posts

GPU utilization is not one number

A GPU can report 100% utilization while doing a fraction of the work it could. What to measure instead, and how to tell idle GPUs from busy-but-wasteful ones.

3 min readgpukubernetes

GPUs are the most expensive line on many infrastructure bills, and the metric most teams use to judge them is also the most misleading. The "GPU utilization" figure shown by nvidia-smi, and exported by DCGM as DCGM_FI_DEV_GPU_UTIL, measures the share of time that at least one kernel was running on the GPU. It says nothing about how much of the GPU that kernel was using.

A single small kernel running non-stop shows as 100%. So does a large training job that keeps every streaming multiprocessor busy. Both look identical on a dashboard, and they are very different value for money.

What to measure instead

NVIDIA's DCGM exporter provides profiling metrics that describe how much of the GPU is actually working. The ones worth putting on a dashboard:

Metric What it tells you
DCGM_FI_PROF_SM_ACTIVE Share of time the streaming multiprocessors had work assigned
DCGM_FI_PROF_SM_OCCUPANCY How full the SMs were when active
DCGM_FI_PROF_PIPE_TENSOR_ACTIVE How busy the tensor cores were, which matters for deep-learning workloads
DCGM_FI_PROF_DRAM_ACTIVE How busy GPU memory bandwidth was
DCGM_FI_DEV_FB_USED GPU memory in use

Profiling metrics (DCGM_FI_PROF_*) are available on data-center GPUs and may need enabling in the exporter's counter configuration.

Read together, they separate very different situations that "utilization" lumps into one number.

Four patterns to look for

1. Allocated but idle. A pod holds a GPU and nothing runs on it: a notebook left open, an inference service with no traffic, a job waiting on data. GPU_UTIL is near zero. This is the easiest waste to find and to fix, usually with idle timeouts and scale-to-zero for interactive and inference workloads.

2. Busy but small. GPU_UTIL is high, but SM_ACTIVE and tensor activity are low. The workload keeps the GPU occupied without using much of it. Small inference models and light batch jobs often look like this. Sharing the GPU side by side — MIG partitions on GPUs that support them, or CUDA MPS — can put several of these workloads on one card. Time-slicing takes turns rather than running workloads together, so it suits the intermittent, allocated-but-idle pattern better than this one.

3. Starved by input. Utilization rises and falls in a sawtooth because the GPU waits on the data pipeline: storage reads, preprocessing on the CPU, or network transfers. The fix lies outside the GPU: faster storage, more data-loader workers, or preprocessing moved ahead of time.

4. Memory-bound. DRAM_ACTIVE is high while compute activity is moderate. The workload is limited by memory bandwidth, not compute. A different GPU type, a different batch size or mixed precision may move it, but this one needs profiling before anyone changes hardware.

Don't forget the queue

Utilization only describes GPUs that are allocated. For shared clusters, the other half of the picture is how long jobs wait to get a GPU. A cluster can show low average utilization and long queues at the same time, when GPUs are reserved by a few large requests or locked into the wrong node pools.

Track queue wait time per team or job type alongside utilization. Low utilization with no queue suggests buying fewer GPUs. Low utilization with a long queue suggests a scheduling or quota problem, and buying fewer GPUs would make it worse.

A practical starting point

  1. Deploy the DCGM exporter if you don't have it, and keep at least two weeks of data.
  2. Build one dashboard per node pool with GPU_UTIL, SM_ACTIVE, tensor activity and memory used, broken down by namespace or workload.
  3. List every GPU that was allocated but below a low activity threshold for most of the window. Start there.
  4. For the busy workloads, compare GPU_UTIL with SM_ACTIVE. Large gaps are candidates for sharing.
  5. Add queue wait time before making any decision about buying or releasing capacity.

GPU cost work goes wrong when it starts from one number. It goes well when it starts from the question of what each GPU is actually doing.

Want this looked at in your environment?

A 30-minute sanity check: an outside read on the cost mechanisms most worth checking, and whether a full assessment is worth it.

Book a sanity check