CareerByteCode
ByteBlogby CareerByteCode
📰 Published in Chennai FutureTech Voices

GPU Utilization Is at 95%, But Inference Is Slow — Where Would You Troubleshoot?

🟢 Beginner

A Practical AI Infrastructure Troubleshooting Guide Using NVIDIA GPUs, vLLM, Kubernetes and DCGM

GPU Utilization Is at 95%, But Inference Is Slow — Where Would You Troubleshoot?

✍️ Translate this blog into Hindi, Tamil or Telugu

A GPU is running at 95%. So why is inference still slow?

Imagine you're managing an AI inference deployment in a production environment.

Your LLM model is loaded, the GPU is available, Kubernetes reports that the inference pod is running, and everything looks normal from the deployment side.

✨ From the author · BytePlay courseNVIDIA GPU AI Factory: Architecture, Engineering & Operations₹40,000Start learning →

But suddenly, users start reporting that responses are taking longer than expected.

You open your monitoring dashboard and notice:

  • GPU utilization: 95%

  • VRAM usage: 38.5 GB

  • P99 latency: 1.49 seconds

  • Request queue depth: Increasing

  • Time to First Token (TTFT): Higher than expected

Now comes the interesting part.

The GPU is already running at 95%, but users are still experiencing slow inference.

So, what's actually happening?

Is the GPU compute capacity saturated? Is the inference engine struggling with request scheduling? Is the KV cache consuming too much memory? Or is the host CPU unable to feed the GPU efficiently?

As an AI infrastructure engineer, I wouldn't immediately recommend adding another GPU.

First, I want to understand where the request is spending its time.

Let's troubleshoot this step by step, starting from the incoming request and moving all the way to GPU execution.

Note: The telemetry values in this walkthrough are illustrative incident data, not benchmark results from a specific GPU.

1. Understand the Complete Inference Request Pipeline

Before checking the GPU, I want to understand how a request actually travels through our infrastructure.

When a user submits a prompt to an LLM inference endpoint, the request doesn't directly reach the GPU.

It passes through multiple layers.

A typical inference request flow looks like this:

  1. Ingress and Gateway

  2. CPU Tokenizer

  3. Inference Scheduler

  4. GPU Execution

  5. Detokenizer and Response Streaming

Let's understand what happens at each stage.

1.1 Ingress and Gateway

The first layer is where incoming requests enter our infrastructure.

For example, we might use NGINX as an ingress controller or API gateway.

It handles incoming connections, TLS termination, authentication, request routing and forwarding traffic to the inference backend.

Now, suppose users are experiencing high latency.

I would first check whether requests are reaching the backend correctly, whether connections are accumulating, and whether the gateway is introducing additional delays.

For example:

kubectl get pods -n ai-inference
kubectl logs <nginx-pod> -n ai-inference --since=10m

I would also inspect gateway access logs and upstream response-time metrics.

If the gateway is forwarding requests correctly, we can move to the next layer.

There is no point tuning the gateway if the actual bottleneck is happening inside the inference engine.

1.2 CPU Tokenizer

Now let's look at the host CPU.

Before the model starts executing on the GPU, the inference application may perform tokenization, request validation and preprocessing.

Tokenization converts the incoming text into token IDs that the model can process.

If the CPU is overloaded or the container is being throttled, it can introduce delays into the request pipeline.

Let's check the node:

top

Then inspect Kubernetes resource usage:

kubectl top pods -n ai-inference
kubectl top nodes

And check the pod configuration:

kubectl describe pod <inference-pod> -n ai-inference

If CPU throttling is confirmed, I would investigate CPU requests and limits, tokenizer worker configuration, and whether other services are competing for resources.

The important point is that a powerful GPU cannot compensate for an overloaded host CPU if the application cannot prepare and schedule work efficiently.

1.3 vLLM Scheduler

Now we're getting closer to the inference engine.

Let's assume we're using vLLM to serve our LLM.

When multiple users submit requests simultaneously, vLLM manages those requests through its scheduling and continuous batching mechanisms.

Some requests are running, some are waiting, and others may be preempted depending on available resources and configuration.

This is where I want to investigate:

  • Running requests versus waiting requests

  • Request queue depth

  • Queue time

  • Continuous batching behavior

  • Maximum concurrent sequences

  • KV cache utilization

  • Request preemption

For example, if requests are arriving faster than the inference service can process them, the waiting queue can continue growing.

In that situation, I wouldn't blindly increase the concurrency limit.

Increasing concurrency might improve throughput, but it can also increase memory pressure and make latency worse.

First, I want to understand how the scheduler is managing the workload.

2. Understand GPU Excution: Prefill vs Decode

Now let's move into GPU execution.

When an LLM receives a prompt, inference generally happens in two important phases: prefill and decode.

Prefill: Processing the input prompt

During prefill, the model processes the input prompt tokens.

For example, imagine a user submits a prompt containing 2,000 tokens.

The model processes those input tokens through its transformer layers to prepare for generating a response.

This stage can be computationally intensive, particularly with longer prompts.

If users are experiencing high Time to First Token (TTFT), I would investigate prompt length, queueing, scheduling and prefill performance.

Decode: Generating the response

Once the prompt has been processed, the model starts generating output tokens.

This is the decode stage.

The model generates tokens autoregressively, meaning each generated token influences the next generation step.

During decode, the model repeatedly accesses its weights and KV cache.

Memory bandwidth, compute capacity, batching, and memory access patterns can all influence token generation performance.

Now imagine our service produces the first token quickly, but the remaining response is extremely slow.

In that case, I would investigate decode performance.

I would look at:

  • Output tokens per second

  • GPU memory bandwidth behavior

  • Batch size and continuous batching

  • KV cache utilization

  • GPU compute activity

  • Model precision and quantization

  • GPU interconnect performance for multi-GPU workloads

If we're running tensor parallelism across multiple GPUs, I would also investigate communication overhead and GPU-to-GPU connectivity.

The important thing is to identify whether our workload is compute-bound, memory-bandwidth-bound, or limited by another part of the serving pipeline.

3. Four Major Root Causes to Investigate

After understanding the request pipeline, let's look at four possible root causes behind our slow inference incident.

A. KV Cache Pressure

Let's assume our monitoring dashboard shows high VRAM utilization, and the inference engine reports request preemptions.

This is where I would investigate KV cache pressure.

Remember, GPU memory isn't used only for model weights.

During inference, VRAM is also required for:

  • Model weights

  • KV cache

  • Temporary tensors

  • Runtime allocations

  • Other framework overhead

The KV cache stores attention keys and values from previously processed tokens. This allows the model to reuse information instead of recomputing the entire previous sequence at every decode step.

Now imagine we're running an inference service with multiple concurrent users.

As prompt lengths and generated sequence lengths increase, KV cache requirements can also increase.

If the available KV cache capacity becomes insufficient, the inference engine may need to preempt sequences, limit admission, or wait for resources, depending on its configuration.

What would I investigate?

  • KV cache utilization

  • Maximum context length

  • Maximum concurrent sequences

  • Running and waiting requests

  • Request preemption

  • Available VRAM headroom

Possible optimization options:

  • Review max_num_seqs.

  • Revisit maximum context length.

  • Tune token budgets and batching configuration.

  • Evaluate supported FP8 KV cache options.

  • Consider model quantization if quality requirements permit.

  • Evaluate a GPU with higher VRAM capacity if memory is genuinely the limiting resource.

But remember: high VRAM utilization doesn't automatically mean something is wrong.

We need to establish whether memory pressure is actually affecting concurrency, request scheduling or inference performance.

B. Memory-Bandwidth Bound

Now let's assume KV cache pressure isn't the main issue, but GPU utilization remains high and output token generation is slower than expected.

This is where memory bandwidth becomes important.

LLM decode repeatedly accesses model weights and KV cache data.

Depending on the model architecture, batch size and GPU hardware, the workload can become limited by how efficiently data moves between GPU memory and the compute units.

Think of it this way.

We might have powerful GPU compute resources available, but if the workload cannot move data efficiently enough, adding more compute capability alone may not solve the problem.

What would I investigate?

  • GPU memory bandwidth behavior

  • Output tokens per second

  • Model precision and quantization

  • Batch size

  • Continuous batching efficiency

  • Tensor parallelism configuration

  • GPU interconnect performance

For example, we could benchmark different batch sizes to understand whether increasing the batch improves throughput.

If we're using tensor parallelism, we should also verify whether the GPU topology and interconnect are appropriate for the workload.

However, increasing batch size doesn't always improve performance. It may increase memory consumption and individual request latency.

Similarly, tensor parallelism can introduce communication overhead.

So, I wouldn't treat either change as a guaranteed fix.

I would run controlled benchmarks, compare throughput and latency, and select the configuration that best meets our workload requirements.

C. Host CPU and Kubernetes Throttling

Now let's move outside the GPU.

Suppose our inference pod is running, but the host CPU is consistently saturated.

🛍️✨ From the author · ByteStoreEmbedded Linux Career Mentoring₹4,999View offer →

The tokenizer, preprocessing pipeline and application components may be competing for CPU resources.

In Kubernetes, a pod showing Running doesn't necessarily mean that the application is performing efficiently.

I would investigate CPU utilization, resource requests, CPU limits, throttling, node pressure and pod restarts.

Useful commands:

kubectl top nodes
kubectl top pods -n ai-inference
kubectl describe pod <inference-pod> -n ai-inference
kubectl get events -n ai-inference

If CPU throttling is confirmed, I would evaluate increasing available CPU resources, optimizing tokenizer workers, or separating CPU-intensive preprocessing into an independent service.

But I wouldn't blindly increase CPU limits.

First, I want to establish whether CPU contention is actually affecting the inference pipeline.

D. Power and Thermal Clamping

Now let's consider something that engineers sometimes overlook: the physical GPU platform.

We may have a properly configured inference engine, sufficient memory and healthy Kubernetes pods, but the GPU may still be operating below its expected performance.

Power constraints and thermal conditions can affect GPU operating clocks.

For example, imagine we're running a sustained inference workload and observe that GPU clocks are dropping significantly.

I would investigate whether the GPU is hitting a power limit, thermal limit or another performance constraint.

Let's inspect GPU information:

nvidia-smi

For more detailed information:

nvidia-smi -q -d PERFORMANCE,CLOCK,POWER,TEMPERATURE

Then I would investigate:

  • GPU temperature

  • Power consumption

  • GPU clock behavior

  • Reported throttling reasons

  • Server airflow

  • Fan operation

  • Chassis cooling and power delivery

If we identify a thermal or power issue, we need to address the physical infrastructure.

Tuning vLLM won't solve a cooling problem.

4. Monitoring: How Do We Identify These Problems in Production?

Now, I don't want our infrastructure team manually logging into every GPU server and running nvidia-smi whenever a customer complains.

For production AI infrastructure, we need continuous monitoring and observability.

A typical monitoring stack could include NVIDIA DCGM, DCGM Exporter, Prometheus and Grafana.

Let's understand their roles.

ComponentPurpose
NVIDIA DCGMGPU health, telemetry and diagnostics
DCGM ExporterExposes GPU metrics for collection
PrometheusCollects and stores time-series metrics
GrafanaDashboards and alert visualization
vLLM MetricsRequest, latency, token throughput, queue and cache metrics
KubernetesPod health, scheduling, node and resource metrics

Now imagine our inference latency suddenly increases at 10 AM.

Instead of checking each server independently, we can open Grafana and correlate:

  • GPU utilization

  • VRAM consumption

  • GPU power and temperature

  • CPU utilization

  • Request queue depth

  • KV cache utilization

  • TTFT and TPOT

  • Input and output token throughput

For example, if we observe increasing queue depth, elevated KV cache utilization and rising TTFT at the same time, that gives us a direction for further investigation.

We can correlate the timeline with traffic changes and application metrics to understand what happened.

That's the purpose of observability: understanding what our infrastructure was doing before, during and after an incident.

5. The Six-Step AI Infrastructure Troubleshooting Workflow

When an inference service becomes slow, I would follow this investigation sequence.

Step 1: Identify the symptom

First, determine whether the problem is high TTFT, slow token generation, overall request latency or reduced throughput.

Step 2: Inspect the serving layer

Check request queues, running sequences, waiting requests, batching, KV cache and preemptions.

Step 3: Validate GPU health

Investigate GPU clocks, power consumption, temperature, utilization and memory.

Step 4: Check infrastructure and Kubernetes

Inspect CPU saturation, container throttling, pod resources, node pressure and scheduling.

Step 5: Identify the actual bottleneck

Determine whether the workload is compute-bound, memory-bandwidth-bound, queue-bound or affected by another infrastructure limitation.

Step 6: Apply the fix and measure again

Tune the configuration, optimize the workload, scale the infrastructure or evaluate a hardware upgrade.

Then compare the new results against the original baseline.

I would change one major variable at a time so that we can understand which change actually improved performance.

6. Final Decision: Should We Optimize, Scale or Upgrade the GPU?

After completing the investigation, we can make a more informed infrastructure decision.

If KV cache capacity is limiting concurrency, we evaluate serving configuration and memory requirements.

If memory bandwidth or compute is limiting performance, we benchmark the workload against alternative GPU architectures.

If CPU resources are limiting the pipeline, we optimize the host and application layer.

If power or thermal constraints are affecting GPU clocks, we address the physical server environment.

And if the GPU has genuinely reached its practical performance or capacity limit, we can evaluate adding GPUs, scaling out or moving to a more capable platform.

For example, when evaluating GPUs such as NVIDIA RTX PRO 6000 Blackwell, H100 or B200, I would consider the workload, VRAM capacity, memory bandwidth, compute requirements, interconnect, power, cooling and total infrastructure cost.

I wouldn't recommend a B200 simply because a GPU is showing 95% utilization.

If the actual issue is inefficient batching, CPU throttling or request scheduling, upgrading the hardware may not address the root cause.

Hardware decisions should be driven by measured workload requirements.

Final Thoughts

In AI infrastructure, GPU utilization is only one part of the performance story.

A GPU running at 95% utilization doesn't automatically mean our inference service is performing efficiently.

We need to understand where requests are waiting, how the inference engine manages workloads, how memory is being consumed, whether the GPU is operating as expected, and whether the surrounding infrastructure is feeding it efficiently.

A healthy Kubernetes pod doesn't necessarily mean a healthy inference service.

High GPU utilization doesn't necessarily mean high throughput.

And high VRAM usage doesn't necessarily mean memory exhaustion.

So, the next time you see GPU utilization at 95% and your inference service is slow, don't immediately ask:

"Should we add another GPU?"

"Where is the request spending its time, and what is the actual bottleneck?"

That's where AI infrastructure troubleshooting begins.

NVIDIA GPUs | vLLM | Kubernetes | NGINX | NVIDIA DCGM | DCGM Exporter | Prometheus | Grafana | LLM Inference

#AIInfrastructure #GPUComputing #LLMInference #NVIDIA #vLLM #Kubernetes #DCGM #Prometheus #Grafana #AIEngineering

Read next →🚀 How Do GPUs Actually Talk to Each Other? The Hidden Network Powering AI at Scale⏱ 7 min

🛍️ Madhumathy U's shelf

Courses, cohorts and more from the author
Madhumathy U
Written by Madhumathy U
AI Infrastructure & Cloud | Linux · Distributed Systems · GPU Computing
🏅 Rookie writer

Passionate about scalable AI infrastructure, high-performance computing, and distributed GPU clusters. Writing about Linux, Cloud, and system architecture.

Visit my ByteStoreOrchestrating Clouds. Accelerating AI.
Available for projectsHire me →

Get Madhumathy U's next blog by email

One email a week when they publish. Add the weekly Best of ByteBlog too. No spam, unsubscribe with one click.

We email you once to confirm. By subscribing you agree to the privacy policy.

💬 Comments (0)

Top · Newest

Sign in to comment

More from Madhumathy U

✨ From the author · BytePlay courseNVIDIA GPU AI Factory: Architecture, Engineering & Operations₹40,000Start learning →