Dissecting GPU Utilization for LLM Inference on Nvidia Hopper

Mohammad Siavashi, Gerald Q. Maguire, Dejan Kostic, Marco ChiesaarXiv 2026

TL;DR

Standard GPU utilization metrics can wildly overestimate how efficiently an LLM inference workload uses hardware, masking massive inefficiencies during token generation (decode). This paper introduces an eight-metric profiling framework for Nvidia Hopper GPUs, revealing that small-batch decode operations leave up to 98% of hardware matrix fragments empty due to fixed architectural constraints.

What Problem Does This Paper Address?

When optimizing or planning capacity for LLM serving, engineers heavily rely on a single metric from NVIDIA Nsight Compute: sm_busy_pct (SM utilization). However, this number can be highly deceptive.

During the "decode" phase—where an LLM generates tokens one by one—batch sizes are typically small. This turns large matrix multiplications (GEMMs) into thin, small-row operations. On Nvidia's Hopper architecture (H100), the hardware executes these operations via Tensor Cores using fixed 64-row matrix fragments. If your batch size is small, the hardware pads the remaining rows with zeros but still reports the SM as "busy." This creates a massive illusion of compute saturation when the GPU is actually doing very little useful work.

This paper aims to demystify this behavior by breaking down aggregate utilization into explicit, counter-verified hardware mechanisms.

Figure 1: SM utilization heatmaps by model, regime, role, and (S, B). Rows are kernel roles; columns are swept (S, B) corners; one panel per (model, regime).

Methods

The authors profile a standard production LLM serving stack—vLLM, FlashAttention-3 (FA3), and cuBLASLt—on an NVIDIA H100 NVL GPU.

Instead of relying on a single aggregate utilization scalar, they develop a framework of eight distinct, counter-validated metrics derived from raw Nsight Compute (NCU) reports. They systematically sweep across three operational serving regimes:

  1. Cold Prefill: Processing a prompt from scratch (high arithmetic intensity).
  2. Warm Prefill: Re-evaluating a prompt suffix using a cached prefix.
  3. Decode: Generating one token per request at a time (highly memory-bandwidth bound).

For each regime, they isolate specific kernel roles (such as QKV projection, attention, and feed-forward networks) across different context lengths and batch sizes.

Datasets

The paper evaluates performance using four production-grade open-weights LLM architectures configured with synthetic inputs to precisely control context lengths ($S$) and batch sizes ($B$):

  • Meta-Llama-3-8B
  • Qwen3-14B
  • Qwen3-32B
  • Qwen3-30B-A3B (a sparse Mixture of Experts model with top-8 routing over 128 experts)

Key Insights and Ideas

  • The Fragment-Fill Ceiling: During decode with small batch sizes, the M-axis fragment fill ($\eta_M$) drops as low as 1.56%. Because Hopper's GMMA instruction requires a minimum of 64 rows, a batch size of 1 means 63 rows are wasted as zeros. The SM throughput counter still charges these padded rows as work, overstating useful matmul throughput by up to 64×.
  • The Occupancy Paradox: A kernel might look poorly optimized because it only achieves ~14% occupancy relative to the GPU's theoretical 64-warp architectural ceiling. However, when measured against the kernel's resource cap (limited by registers and shared memory), it is actually at 75–95% saturation.
Figure 2: Achieved warps/SM under two denominators on the canonical cell (Llama-3-8B decode, S=2048, B=1): nor- malized by the 64-warp architectural limit and by each kernel’s resource cap ηcap (12 dense, 8 FA3 main). Dense decode values stay within 9.0–9.4 warps/SM across the full sweep (S ∈{2k . . . 16k}, B ∈{1 . . . 8}, 8B–32B models): the empty warp pool is not a small-budget artifact, and this cell is representative.
  • Divergent Stall Signatures: Dense decode kernels are heavily bottlenecked by memory loads (long_scoreboard stalls account for 70–84% of the stall budget). Conversely, FlashAttention-3 is bottlenecked by inter-warp synchronization and barriers (stall_wait), meaning memory-bandwidth upgrades won't accelerate attention compute during decode.
  • Wave Quantization Waste: Due to structural dimensions (e.g., Llama-3's QKV dimensions), power-of-2 tile shapes cannot perfectly map to the H100's 132 SMs. This causes "wave quantization," where up to 39% of SM slots sit completely idle during the trailing wave of execution.

Key Results

  • The Prefill-to-Decode Drop: Cold prefill successfully saturates the GPU compute pipeline, achieving a mean device-wide compute Speed-of-Light (SOL) of 92%. However, decode plummets to a dismal mean of 7.9% useful compute SOL due to the fragment-fill ceiling and memory stalls.
  • Empirical Validation at Batch Size 32: To find the compute-memory crossover point ($B^*$), the authors ran a validation arm at $B=32$. At this batch size, Qwen3-14B's dense GEMM utilization successfully jumps to 71.9%, proving that the bottleneck shifts from memory bandwidth to compute saturation exactly as predicted by their model.
  • KV-Cache Write Overhead: The authors show that the overhead of writing to the KV-cache stays below 2% of the total decode iteration time even at $B=32$, validating that separate KV-write terms are unnecessary in modern LLM cost models.

Limitations and Future Work

The study is limited to a single-GPU setup (Tensor Parallelism = 1) using BF16 precision. It does not explore FP8 execution paths or multi-GPU tensor-parallel configurations, where all-reduce communication overheads introduce new bottlenecks. Additionally, the warm prefill analysis assumes a near-perfect (99%+) prefix-cache hit rate, leaving highly dynamic, intermediate-hit multi-turn workloads uncharacterized.

The authors suggest that future work should focus on persistent-decode kernels and cross-request token packing to artificially raise the effective row dimension ($M$) rather than attempting to retile existing libraries.

Summary updated

BibTeX
@misc{siavashi2026dissecting,
  author = {Mohammad Siavashi and Gerald Q. Maguire and Dejan Kostic and Marco Chiesa},
  title = {{Dissecting GPU Utilization for LLM Inference on Nvidia Hopper}},
  year = {2026},
  eprint = {2609.12923},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.12923},
}
Figure