Beyond GPU compute, LLM serving is bottlenecked by routing and KV cache
Eric Zhang dissects a dozen inference systems from late 2026: prefill and decode have opposite temperaments, KV cache determines routing costs, and PD disaggregation and multi-region scheduling each come with tradeoffs.
In large-scale LLM serving, GPU compute is only part of the cost on the books. Eric Zhang recently published a blog post on inference routing, looking at a dozen inference systems from late 2026 together: cache hits, PD disaggregation, and how traffic is split across regions and GPU types. The original post is here.
The LLM inference API is usually still POST /v1/chat/completions. Text comes in and is first turned into tokens. Model context limits often reach 1 million tokens, while agentic coding traffic averages 128K. The main engines are vLLM and SGLang. The engine loop switches between prefill and decode: prefill swallows a large chunk of input at once, at least 8192 tokens; decode generates one token at a time. TTFT is about prefill, TPOT or ITL is about decode.

Continuous batching makes decode elastic. As traffic rises, batch size changes and the system slides along the interactivity-throughput curve. Prefill is more rigid. It processes large token chunks, quickly saturates fixed throughput, and once requests queue, TTFT spikes. Eric Zhang uses Resin's DeepSeek V4.1 Flash benchmark to show these two curves, on 8×B300 hardware.


Speculative decoding is also changing this curve. Train a draft model, reduce the number of decode steps, and increase the amount of computation per step. Decode is mostly memory-bandwidth-bound, so speculative decoding typically brings 1.5× to 4× improvements in interactivity and throughput. Eric cites Modal's Kimi K3 benchmark, whose chart compares DFlash block sizes 8 and 16 with no speculative decoding.

PD disaggregation separates prefill and decode, with KV transferred over a high-bandwidth network. Eric Zhang once gave a time-sharing argument: decode usually spends 10 to 50 ms per output token, while prefill can take 1 second. When combined, decode has to compete with prefill for time. After separation, average per-token latency improves, request flow speeds up, concurrency drops, and throughput is maintained. The cost is more complex routing and caching. Prefill uses cache-aware routing, decode uses least-load, and you also need a cross-node KV cache aggregation system. The figure shows the operating range of prefill and decode replica counts under fixed load.

Local routing first handles data parallelism. Random, round-robin, and least-load are all used. Least-load is prone to herd effects: a cold engine can suddenly be saturated; power of two choices can mitigate this. KV cache makes inference routing unusual. In agentic serving, 95% to 99% of tokens are cached input on average, and every tool call wants to return to the same replica. Cache-aware routing records prefixes, sets overload thresholds, does sticky until saturated, and must also control routing-tree size and the cold-start impact when new workers join.

KV cache also has tiers. L1 is GPU HBM, L2 is host DRAM, and L3 is NVMe SSD or a distributed file system. DeepInfer is the most extreme example: DeepSeek's production inference engine puts KV cache in 3FS, L3-only, skipping L1 and L2. The benefit is predictable performance; it can also skip cache-aware routing and use DPA to improve the prefill queue. vLLM recently also suggested skipping the DRAM tier and using NVMe-backed KV cache. They raised cache hit rate from 93% to 96%, roughly halving prefill compute. The costs fall on SSD P/E endurance, encryption, and ZDR compliance.


Global routing spans data centers and accelerators. For example: two pools both run 100 requests/s at 30 ms per output token; one still has double the headroom, while the other is nearly full and takes three minutes to start a new replica. On the surface both are healthy; where should the next 20 requests/s go? Google's DLB paper uses the derivative of processing rate for global optimization, with the cost of a candidate pool being 1/μ′j(Nj) plus 2τij, where τij is network RTT. OpenAI uses black-box feedback to measure interactivity; if tuned poorly, requests can oscillate between regions and shatter KV hits.

In a reply under Eric Zhang's tweet, Sachal offered an operations perspective: at the cross-DC global layer, KV-aware routing has diminishing returns. Add load plus sessionId, factor in RTT, and keeping KV awareness within a DC is usually sufficient. Over the WAN, high-fidelity KV signals expire quickly, and the state flow and request plane themselves have significant dollar costs. Sometimes a pool looks like it has great KV hits, but the source is just a large customer harness's system prompt producing a lot of organic duplication; orgId can provide a similar signal. This judgment is closer to production reality than chasing cache hit rate alone.
Model routing goes one step further. RouteLLM uses human preference data to learn which prompts are worth sending to a stronger model; tuning the threshold traces out a cost-quality curve. OpenRouter Auto and Auto Code combine task type, difficulty, real-time price, and cache state. Devin Fusion lets frontier models lead, handing routine work to cheaper lieutenants and switching models during context compression. Ramp's Router lets teams rank models by weighted benchmarks and first try them on small traffic. Eric Zhang warns that switching models mid-session can turn a long cache hit into a fresh prefill. Plato’s Key attempts to use rotation and scaling to give one LLM's hidden state to another model; in a fact-recall test across 20 model pairs, the receiving model output the donor model's answer with a median probability of 41%. If this generalizes, model switching can reuse part of the computation.
Security is an intrinsic problem for routers. Prefix caching changes response times and can leak other tenants' activity. Most engines allow cache_salt to be mixed into the first block's hash, with subsequent blocks inheriting it through a hash chain; gateways use this to limit the scope of prefix reuse. Anthropic's prompt caching documentation lists caching as ZDR-eligible; KV tensors and hashes remain in memory with a lifetime of 5 minutes or 1 hour. The FlashProve prototype has providers commit to model weights and prove that selected output tokens match greedy decoding; the Llama 4 Maverick experiment cost roughly 70 to 95 times the GPU time of normal inference. Auditing model replacement has a cost.
Multimodal inference is also growing its own routing. ModServe observes that multimodal requests vary widely in size and burst by modality, so it scales image and text capacity independently and routes image requests by queued visual work. In a 128-GPU trace replay, throughput improved by 3.3× to 5.5× while meeting latency targets. llm-d estimates visual tokens, weighing worker load and cache affinity together. A 200 KB JPEG and a 2 MB PNG may represent the same image with the same encoding cost. vLLM-Omni and SGLang-Omni represent multimodal generation as a graph, with independent batching and GPU allocation at each stage.
This blog post is worth reading because of its method: treat the inference engine as a black box and explain routing through prefill inelasticity, decode elasticity, and cache locality. Many teams are still staring at per-GPU throughput, while real costs are eaten by cross-region jitter, cache misses, cold starts, and model switching. How to scale cross-region capacity over the long term is still an open question, Eric Zhang says. Routing and KV cache systems turn open-source engines and kernels into tokens that users can perceive.
发布时间: 2026-12-06 14:28