Low GPU Utilization During LLM Inference: Finding the CPU Bottleneck
An inference server with expensive GPUs and low GPU utilization is often waiting on the CPU. The fix starts with knowing which CPU work sits on the path of every token, and which counters show it.
A common complaint from teams running large language models in production: the GPUs are busy on paper, latency is worse than expected, and GPU utilization sits well below what the hardware should deliver. Adding GPUs does not help. In many of these cases the bottleneck is not on the GPU at all. It is the CPU work that has to happen before, between and after the GPU's kernels.
This post explains where CPU work sits in LLM inference, the usual CPU-side causes of low GPU utilization, how to read GPU utilization against SM activity and MFU, what to measure, and how to increase GPU utilization without hurting latency. It describes general industry practice and applies to most serving stacks.
Why the GPU waits for the CPU
An inference server is a loop run by the CPU. It receives a request, parses it, renders the chat template and tokenizes the prompt. It then decides which sequences go into the next step, launches the kernels for the forward pass, picks the next token, turns tokens back into text and streams the result to the client. The GPU only does the forward pass, and sometimes the sampling.
The decode phase makes this worse. Each step generates one token per sequence, so the GPU work per step is small, especially with few concurrent requests. The CPU work per step, on the other hand, is roughly fixed: scheduling, kernel launches, sampling and detokenization happen every step whatever the batch size. When the GPU finishes its part faster than the CPU can prepare the next step, it waits, and GPU utilization drops.
Common CPU-side causes
- Tokenization and pre- and post-processing. Slow tokenizer implementations, chat template rendering, JSON parsing, detokenization for streaming, and logit processing or grammar-constrained decoding computed on the CPU all sit on the request path. For multimodal models, image decoding and resizing on the CPU can dominate.
- Data loading. In offline and batch inference, reading and preparing prompts from storage can fail to keep up, so the GPU runs in bursts.
- Small batch sizes. With low concurrency or static batching the GPU runs small kernels that finish quickly, and fixed per-step overhead becomes a large share of each step. Continuous batching, which adds and removes sequences between steps, exists for this reason.
- Python and kernel launch overhead. Eager execution launches many small kernels, each with a CPU cost. Interpreter overhead and lock contention in a single Python process add to it. Capturing the step as a CUDA graph or compiling it reduces the number of launches.
- PCIe and host transfers. Copies between host and device memory, pageable rather than pinned buffers, and synchronization points that force the CPU to wait for the GPU all stall the pipeline. Offloading weights or the KV cache to host memory adds PCIe traffic on every step.
- Starved CPU resources. A container with too few cores, CPU limits that cause throttling, a process running on the socket that is not attached to the GPU, or power-saving frequency scaling can each slow the serving loop.
Reading GPU utilization, SM activity and MFU
The GPU utilization figure most tools show is coarse. It reports the share of the sample period in which at least one kernel was running. It says nothing about how much of the GPU that kernel used. A tiny kernel running all the time reads as full utilization, even while most of the chip is idle.
Finer counters help. SM activity, available through NVIDIA's DCGM profiling metrics, measures the fraction of time the streaming multiprocessors have work, averaged across them; tensor-core activity shows whether the matrix units are in use. Model FLOPs utilization (MFU) compares the floating-point work the model actually did with the hardware's peak. Because decode is usually limited by memory bandwidth rather than compute, inference teams often track achieved memory bandwidth against the peak as well.
Read together, the patterns are distinctive. Low GPU utilization with visible gaps between kernels points to the CPU or the input pipeline. High GPU utilization with low SM activity points to small kernels and small batches. High values on both with poor throughput points to a GPU-bound or memory-bound workload, where CPU tuning will not help.
What to measure
- A timeline of one step. A profiler such as the PyTorch profiler or NVIDIA Nsight Systems shows CPU activity and GPU kernels on the same axis. Gaps on the GPU row while the CPU row is busy are the signature of a CPU bottleneck.
- CPU use per core, not in total. One core at 100% while the rest idle means a single-threaded bottleneck, even though overall CPU use looks low.
- Container throttling. The cgroup throttling counters show whether CPU limits are slowing the server.
- Latency split. Time to first token reflects prompt processing and queueing; time between tokens reflects the decode loop.
- Throughput against concurrency. Tokens per second per GPU at different numbers of concurrent requests shows where batching stops helping.
- PCIe traffic. Host-to-device and device-to-host throughput shows whether transfers or offloading are on the critical path.
How to increase GPU utilization in inference
Fixes follow from the cause. Raise effective batch size with continuous batching and enough concurrent requests, within your latency target. Use a fast tokenizer and move tokenization and detokenization off the critical path, into separate processes if needed. Reduce launch overhead with CUDA graphs or a compiled execution mode. Give the server dedicated cores on the CPU socket attached to its GPU, and remove CPU limits that cause throttling. Use pinned memory, avoid unnecessary synchronization, and keep weights and cache in GPU memory when they fit. Scale the HTTP front end separately from the GPU workers so request handling does not compete with the serving loop.
Keep the goal in view. In inference, the target is tokens per second per GPU at an acceptable latency, not a utilization percentage. Pushing utilization up with very large batches can break time-to-first-token targets. Measure both before and after each change.
Frequently asked questions
How do I know if LLM inference is CPU-bound?
Profile one decode step. If the GPU timeline shows gaps between kernels while a CPU thread is busy, if one CPU core sits near 100%, or if the container is being throttled, the CPU is limiting the GPU. Low GPU utilization together with low SM activity at low concurrency points the same way.
How do you increase GPU utilization?
Find the cause first. For inference, the usual fixes are continuous batching with enough concurrency, fast tokenization off the critical path, CUDA graphs or compilation to cut launch overhead, dedicated CPU cores on the GPU's socket without throttling, pinned memory, fewer synchronization points and keeping weights and cache in GPU memory.
Is GPU utilization the same as MFU?
No. GPU utilization reports the share of time at least one kernel was running. MFU, model FLOPs utilization, compares the floating-point work the model performed with the hardware's theoretical peak. A GPU can show high utilization with low MFU when kernels are small or memory-bound.
Finding a CPU bottleneck is much faster when the GPU, host and power data for a job sit on one timeline. In Sensaka, per-job GPU, CPU and power readings land in one place, described in AI workload operations and AI infrastructure observability, part of the AI data center management platform for your AI factory. You can try it on your own inference servers in a free 30-day on-premises pilot; list prices are on the pricing page, and resellers can join the partner programme with a 25% first-year margin.
Put GPU, CPU and power readings for your inference jobs on one timeline. Start a free 30-day pilot on your own servers, inside your network.
Start a Pilot →Sensaka for AI Data Centers
GPU pools, workload queues, GPU-hour and token metering, and an operations cockpit with an AI Cockpit, on one on-premises platform.
Related articles & analysis
