Two engineers drawing a system architecture on a whiteboard with a laptop open beside them. Photo by Kaleidico on Unsplash. Source: https://unsplash.com/photos/man-wearing-gray-polo-shirt-beside-dry-erase-board-3V8xo5Gbusk (Unsplash License).

Executive Summary

The llm-d project made SGLang a first-class serving engine behind its Kubernetes control plane. What the contributors measured is a memory hierarchy, and the numbers say cache capacity sets the pace for long-context agent work, not raw compute. On 16 H200 GPUs, moving evicted KV blocks into host RAM held cache hit rates between 85 and 95 percent, raised output 3.94 times to 1,257 tokens per second, and cut median time to first token from 174.2 seconds to 20.1 seconds.

Scaling to 32 GPUs across two prefill replicas and a two-node decode pool took the same measure to 3.43 seconds. A shared filesystem tier kept conversations alive when a pod died, restoring 1.08 million tokens at a 99.94 percent hit rate and halving the survivor queue recovery time. The verdict is that routing to a warm cache beats buying silicon, and the number to watch is the hit rate per rank rather than GPU utilization. Every figure here is the project’s own, on one model family, and none of it has been reproduced independently.

Diagram of three KV cache tiers with capacity in tokens for each tier and the measured latency reductions.
The three tiers on a 16 GPU layout, with the concurrency 128 results the llm-d team published.

A request shows up with a prefix the server has already seen, and the cache has no room for it. The server recomputes all 142,000 tokens before it writes one. Run that 128 times at once and the queue is measured in minutes rather than seconds.

That is the hole llm-d and the SGLang contributors put numbers around in a post published on 23 November. On 16 H200s with only the GPU’s own cache available, median time to first token at concurrency 128 was 174.2 seconds. Nothing was wrong with the accelerators. There was nowhere to put the past.

The fix is a hierarchy, not a faster kernel. The SGLang project added the per-rank plumbing that lets each attention data parallel rank be addressed on its own, and llm-d taught its router to use it.

Two engines behind one control plane is the harder win

llm-d separates orchestration from the engine. Prefill and decode pools run as native workloads through a DisaggregatedSet, every attention data parallel rank registers as its own endpoint in an InferencePool, and an endpoint picker behind Envoy and the Kubernetes Gateway API decides which rank holds the warm prefix.

SGLang did not fit that shape. One node level port hid eight separate caches behind a single endpoint, and the prefill to decode handshake only worked on rank zero. The contributors gave every rank its own HTTP server and readiness signal, replicated the pairing state across all listeners, and shifted KV over DMA BUF and RDMA.

The same overlays, the same routing and the same verification steps now run SGLang or vLLM, so a second engine did not become a second platform. The reference deployment is public, so the claim can be checked.

Host RAM buys 3.94 times the output, a shared volume buys survival

The SGLang KV cache hierarchy is the whole story. One 8 GPU prefill pod holds 2.09 million tokens in HBM, which is roughly 20 to 30 codebase scale conversations. Host RAM lifts a pod to 17.5 million tokens at 98.4 GiB per rank. A 9,000 GiB ReadWriteMany volume holds about 163 million.

With host RAM in place the hit rate held between 85 and 95 percent. Output went from 319 to 1,257 tokens per second and median time to first token fell to 20.1 seconds. Two prefill replicas and a two node decode pool then took it to 3.43 seconds at 1,903 tokens per second across 32 GPUs.

The shared tier earns its place during failure. In a live pod eviction it restored 1.08 million tokens at a 99.94 percent hit rate and halved the survivor queue recovery time. A cold replica recovered in 16.8 seconds instead of 38.8.

One pool serving every rank is specific rather than clever. GLM-5.2 uses MLA, so the KV representation is identical across attention data parallel ranks and the page files need no rank suffix. That dedupe is a property of the architecture. Run the same test on a model without MLA and expect a different ratio.

Read the boundary before you copy the numbers

These results come from one model family, one GPU type, one cloud and a 142K context cap. They are vendor reported and unreproduced. Useful as a shape, not a guarantee.

Then check two dependencies. The shared tier needs an RWX volume with enough write throughput for KV traffic, and the host tier depends on the PCIe path per rank. Cache aware routing also changes your load balancer, because a request should go to the pod holding the prefix, not the pod with the most free GPUs.

Instrument the hit rate per rank before anything else. A GPU utilization chart looks identical at a 40 percent hit rate and a 95 percent one, and the gap between those two is the difference between 20 seconds and three.

Three questions for your own stack. What is your hit rate at your real concurrency. What happens to time to first token when a serving pod is evicted. And how much of your latency budget is prefix recompute rather than generation.

Related reading. Why KV cache offload hits a fabric ceiling, and what the TPU memory tiers changed for time to first token.

By Ivan Tarin

Ivan Tarin is a Principal Product Marketing Manager at SUSE, where he owns go-to-market strategy and positioning for a seven-product cloud-native portfolio spanning Kubernetes, virtualization, storage, security, and observability. A former full-stack developer who shipped production code for enterprise and public-sector clients including U.S. national laboratories, Ivan translates complex infrastructure and AI technology into messaging that lands with developers, platform teams, and enterprise buyers. He has presented at KubeCon, SUSECON, and AWS Developer Week, and is currently pursuing an MS in Artificial Intelligence at the University of Colorado Boulder.

One thought on “The 174-Second Pause Was a Cache Shortage, Not a GPU Shortage”

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the next one before it is old news

Independent analysis of cloud-native infrastructure, Kubernetes and data center economics. No vendor spin.