MGMilind Gunjan / gunjanlabs

Part 1 of 5 in LLM inference, explained. Nov 22, 2026, 1 min read.

GPU utilization lies

Your dashboard says 100%. Your users say the chatbot takes four seconds to answer. Both are right.

Your GPU dashboard says 100% utilization. Your users say the chatbot takes four seconds to answer. Both are right.

Start here · The whole GPU, live: one H100 serving Llama 3.1 8B

Requests arrive, wait for KV memory, have their prompt read in chunks, then decode one token per step. Every control below changes one of the five ideas. Watch which numbers move, and which one doesn't: GPU utilization.

Queue
0 waiting

KV memory: 62 GB left after the weights, drawn as 240 cells

Shared prefix, stored onceOne request's own KV (paler while its prompt is read)Free

Time per step, last 80 steps

Decode onlyStep also carried a prefill chunk

Bars top out at 100 ms. Every decoding user waits one whole step for their next token, so a tall bar is a stall for all of them.

–Time to first token (median)
–Inter-token latency (median)
–Throughput, all users
–KV memory used
–Users running
0Preemptions
–Prompt tokens from cache
–GPU “utilization”
t = 0.0 s
Try this, in order
  1. Leave the defaults. The red bars are steps that also read a prompt chunk: every decoding user stalls for them.
  2. Raise arrivals to 15 per second. The GPU can't read prompts as fast as they arrive: the queue and time to first token climb into seconds, KV fills and requests get preempted, while GPU “utilization” still reads 100%.
  3. Keep 15 per second and tick the shared prefix. Each prompt needs about 75% less prefill and much less KV: time to first token drops from seconds to tens of milliseconds and the queue drains.
  4. Untick it, set arrivals to about 10 and the answer to about 3,000 tokens. KV memory fills, new requests wait and running ones get preempted.
  5. Tick FP8 KV cache. Each token's KV halves, so about twice the users fit.
  6. Change the token budget. A bigger budget starts long prompts sooner but makes the red stalls taller.
  7. Tick disaggregation. The stalls vanish because prompts are read on another pool; time to first token now includes the KV transfer.

An illustrative model, not a benchmark: one H100 (80 GB, 3.35 TB/s, ~600 TFLOPS achieved for prefill), Llama 3.1 8B with FP16 weights (16 GB) and 128 KiB of KV per token (64 KiB in FP8). Step time = (weights + every decoding user's KV) ÷ bandwidth + prefill math. A request reserves its prompt's KV when admitted and grows by one token per step; when memory runs out the newest request is preempted and recomputed later. With disaggregation the prefill pool is assumed big enough.

Takeaway: one GPU, five ideas. Decode re-reads the weights every step, batching shares that read, each user's KV grows in the same memory, prefill is a compute burst that stalls decode unless it's chunked or moved, and cost is GPU-hours over tokens. Utilization reads 100% throughout, so watch queue depth, KV usage, first-token time and inter-token latency instead.

I built a small simulation of one H100 serving Llama 3.1 8B to show why. It runs live just below. Leave the defaults running, then raise arrivals to 15 requests per second. Time to first token climbs from milliseconds into seconds, KV memory fills up, requests start getting preempted, and "utilization" never moves off 100%.

Utilization only tells you the GPU is doing something. It says nothing about whether users are waiting.

Five ideas explain almost everything

  1. Decode re-reads all the model weights for every token, so it is limited by memory bandwidth, not compute.
  2. Batching lets many users share that one read, which is where throughput comes from.
  3. Every user's KV cache grows in the same GPU memory, and that memory decides how many users fit.
  4. Prefill reads a whole prompt in one compute-heavy burst, and it stalls everyone else unless it is chunked or moved.
  5. Cost is GPU-hours divided by tokens served.

What to watch instead

Queue depth, KV memory used, time to first token, and inter-token latency. The next posts take each idea in turn, each with its own scene in the lab, and the last one ties them together.

Illustrative model built with AI assistance; assumptions and numbers checked by me. Not a benchmark. All five scenes in one place

Next: Prefill vs. decode