Pidoku

GPU Utilization Is a Lie

Module 22 Lesson 22.d 1h Difficulty 3/5

Prerequisites 4.c, 22.c

★ This one misunderstanding has probably wasted more GPU-hours than any other in the field.


Before you start: words you need#

WordPlain meaning
GPU-UtilThe “utilization” percentage nvidia-smi prints. Defined in section 1; it is not what it sounds like.
SMStreaming multiprocessor: one of the GPU’s ~132–160 compute units (4.a).
DCGMNVIDIA Data Center GPU Manager: a service that reads detailed hardware counters from every GPU in a node.
dcgm-exporterA small program that publishes DCGM’s counters in Prometheus format so they can be graphed and alerted on.
Profiling countersDCGM’s hardware activity fields (names start DCGM_FI_PROF_): how much of each cycle the SMs, tensor cores and memory interface were actually busy.
Running batchHow many requests the engine is generating for in the same step.
Effective utilizationA composite this lesson defines: how much of the machine is doing work that someone wanted.

1. What is it?#

nvidia-smi prints a number called GPU-Util. NVIDIA’s documentation defines it as:

“Percent of time over the past sample period during which one or more kernels was executing on the GPU. The sample period may be between 1 second and 1/6 second depending on the product.”

That is all. It does not measure:

  • how many of the SMs were busy,
  • how much of the arithmetic capacity was used,
  • how much of the memory bandwidth was used,
  • whether the work was useful.
One kernel using 1 of 132 SMs, stalled on memory 99% of the time,
computing something nobody needs:

    GPU-Util: 100%

The “Memory” utilization column is the same kind of number: the share of time that any read or write to device memory happened, not the share of bandwidth used.


2. Why does it matter?#

Because it is the number everyone looks at first, and it errs in the comfortable direction.

"The GPUs are at 100%, we're maxed out, we need more GPUs."

Reality: GPU-Util 100%, SMs busy 97% of cycles, memory interface busy 24%,
         running batch 6 when memory allows 60.

Real headroom: 3–10x.

Teams buy hardware because of this number. An inference server with an engine loop running is at or near 100% GPU-Util whenever it has any traffic at all, so the number cannot tell “barely used” from “saturated”.


3. Simple analogy#

A factory’s “lights on” sensor.

The lights are on 100% of the time. The sensor cannot tell apart:

  • every machine running flat out,
  • one machine running, 131 idle,
  • every machine running, producing scrap.

It says the building is occupied. It says nothing about output.


4. Tiny example: three readings of the same GPU#

One H100 serving an 8B model, measured three ways during the same minute:

nvidia-smi GPU-Util                    100%
DCGM memory interface active           0.24     (24% of cycles moving data)
engine running batch                   7 of a possible 96

The first says “full”. The second says the binding resource for decode (22.c) is a quarter used. The third says why: too few requests per step. Only the last two are worth putting on a dashboard.


5. Technical explanation#

Three levels of measurement#

LEVEL 1  Is any work happening?            nvidia-smi / NVML GPU-Util
LEVEL 2  How much of the chip is used?     DCGM profiling counters
LEVEL 3  Is the work useful?               engine and application metrics

Level 3 is what matters, and no GPU tool can give it: running batch, KV cache usage, tokens per second, share of tokens delivered to a client who was still listening. The engine must emit them (19.c, 22.j).

The DCGM fields worth collecting#

DCGM 4.7 renamed many fields, and dcgm-exporter 4.9.0 (6 November 2026) switched to the new names and units by default: utilizations became 0–1 ratios, clocks hertz, memory bytes. Dashboards and alerts written for older exporters use the old names, so both are shown.

Field (DCGM 4.7 name)Older nameMeaningHealthy for LLM decode
DCGM_FI_PROF_DRAM_UTIL_RATIODCGM_FI_PROF_DRAM_ACTIVEShare of cycles the memory interface was sending or receiving data0.6–0.9: the key one
DCGM_FI_PROF_SM_UTIL_RATIODCGM_FI_PROF_SM_ACTIVEShare of cycles an SM had at least one warp assigned0.8–1.0
DCGM_FI_PROF_SM_OCCUPANCY_RATIODCGM_FI_PROF_SM_OCCUPANCYResident warps ÷ maximum0.2–0.6
DCGM_FI_PROF_TENSOR_UTIL_RATIODCGM_FI_PROF_PIPE_TENSOR_ACTIVEShare of cycles the tensor pipe was busylow (0.02–0.2) is normal for decode
DCGM_FI_PROF_GR_ENGINE_UTIL_RATIODCGM_FI_PROF_GR_ENGINE_ACTIVEShare of time the graphics/compute engine was activeclose to GPU-Util; same weakness
DCGM_FI_DEV_GPU_UTIL_RATIODCGM_FI_DEV_GPU_UTILThe nvidia-smi number, as a ratioalways high; ignore for capacity
DCGM_FI_PROF_PCIE_TX_BYTES, _RX_BYTESsamePCIe trafficnear zero in steady-state decode
DCGM_FI_DEV_NVLINK_THROUGHPUT_BYTES_PER_SECONDNVLink bandwidth fieldsNVLink trafficscales with tensor parallelism
DCGM_FI_DEV_BOARD_POWER_WATTSDCGM_FI_DEV_POWER_USAGEBoard power drawcompare with the power limit
DCGM_FI_DEV_SM_CLOCK_HERTZDCGM_FI_DEV_SM_CLOCK (MHz)Actual SM clockdrops mean throttling

The ranges in the last column are typical, not targets. Check your exporter’s own counter file: in 4.9.0 the SM-utilization and occupancy fields are commented out by default, while DRAM and tensor utilization are on.

The memory-interface ratio is the best single GPU-side health number for decode, because it measures the resource that binds (22.c). Low tensor-core activity during decode is correct, not a problem: decode is memory-bound and the tensor cores are waiting for bytes. Alerting on it produces false alarms.

Effective utilization#

A composite that connects the GPU to the money:

effective = (fraction of time the GPU is busy)
          × (running batch ÷ largest batch memory allows)
          × (1 − fraction of generated tokens nobody received)

Example:
  busy 92% of the time
  running batch 14 of a possible 72
  11% of tokens generated for clients who had disconnected

  effective = 0.92 × 0.194 × 0.89 = 16%

  nvidia-smi says 100%.

The batch term is a rough proxy: decode throughput is close to linear in batch while memory-bound (22.c), so “14 of 72” means roughly a fifth of the throughput the GPU could deliver at this context length. The “largest batch memory allows” comes from KV capacity (12.f, 17.h).


6. Under the hood: how the counters are made#

  • GPU-Util comes from NVML (the library behind nvidia-smi). The driver samples whether any kernel was resident during each short interval. One tiny kernel on one SM counts the same as a full-chip GEMM.
  • DCGM profiling fields come from the same hardware performance counters Nsight Compute uses, sampled continuously at low overhead (typically once a second or so) across the whole GPU. Because they share hardware with the profilers, an Nsight Compute session on a GPU can conflict with DCGM profiling collection on it; pause one to run the other.
  • Ratios are averages over the sample window. A ratio of 0.5 can mean half the SMs busy all the time, or all SMs busy half the time. The timeline (22.h) tells which.
  • On MIG or shared GPUs (21.d), dcgm-exporter 4.9.0 reports GPU-wide fields once per physical GPU, and a pod’s summed utilization ratio can exceed 1.0. Read the labels carefully.

7. Performance implications#

  • The real ceiling is in the Level 2 and Level 3 numbers. A fleet at 100% GPU-Util and 0.25 memory-interface activity has several times its current throughput available.
  • Spreading traffic over too many replicas is the classic way to waste it: each replica reads all the weights every step to serve a handful of requests. Fewer, fuller replicas give more tokens per GPU (14.m, splitting the batch).
  • Rising tensor activity during decode is a signal. It means you have moved toward the compute-bound side (large batches, speculative decoding verifying many tokens), which changes which optimisations help.

8. Production implications#

  • Never autoscale on GPU-Util. It sits near 100% whenever anything runs. Scale on queue time, waiting requests or KV usage (20.g, 23.d).
  • Put the memory-interface ratio and the running batch on the main dashboard (22.j).
  • Deploy dcgm-exporter (usually as a Kubernetes DaemonSet) to get Level 2 at all. Pin the exporter version and update dashboards when names change, as they did in 4.9.0.
  • Compute and trend effective utilization. It is the number that links engineering to cost (23.c).
  • Do not alert on low tensor-core activity for decode-heavy services.
  • Have the two-sentence explanation ready. “100% GPU utilization means a kernel was running, not that the GPU was full. Our memory bandwidth is 24% used and our batch is 7 of 96.”

9. Common mistakes#

  1. Treating GPU-Util as a capacity signal. The central error.
  2. Autoscaling on it. It never moves, so the autoscaler never acts, or always does.
  3. Alerting on low tensor-core activity during decode.
  4. Not collecting the running batch. It is the most informative single number for LLM serving efficiency and is often missing.
  5. Saying “we’re maxed out” without checking the memory-interface ratio.
  6. Ignoring aborted tokens. 10–30% of the work can be for clients who already left.
  7. Upgrading dcgm-exporter without checking metric names. Dashboards silently go blank.

10. Hands-on exercise#

  1. Demonstrate the lie. Launch a kernel with a single thread block that spins for ten seconds. Watch nvidia-smi show 100% while DCGM’s SM-utilization ratio shows about 1 ÷ (number of SMs).
  2. Deploy DCGM. Run dcgm-exporter and Prometheus. Graph the fields in section 5 during a load test. Which ones move with load and which stay flat?
  3. Compute effective utilization for a real service. How far is it from GPU-Util?
  4. The consolidation test. Split a fixed request rate across 1, 2, 4 and 8 replicas. Record GPU-Util, the memory-interface ratio, running batch and total throughput. Show that GPU-Util stays flat while the others change a lot.
  5. Write the explainer you would send a manager who says “the GPUs are at 100%, we need more”.

11. Interview questions#

  1. What does nvidia-smi’s GPU-Util actually measure?
  2. Give an example where it reads 100% and the GPU is doing almost nothing useful.
  3. Which metrics would you use instead, and what does each tell you?
  4. Why is low tensor-core activity normal during LLM decode?
  5. Define effective utilization for an LLM service.
  6. Why can you not autoscale on GPU utilization?
  7. A team says all their GPUs are at 100% and asks for more. What do you check?

12. Further reading#

Checked on 12 November 2026.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in