Serving · 2026-11-13
A cache hit is not the end of the journey
Our cache hit rate was 98.6%, yet the first token still took 3.6 seconds. Following the bytes showed where the time went, and why a hit-rate dashboard can mislead.

Split the first token into stages
We stitched together per-request logs from four layers (gateway, entry, prefill and decode) for 5,858 requests between October 19 and 21, then attributed the average first-token time to each stage.
The transfer volume did not depend on the hit rate at all. It was a straight line in input length.
Two causes. First, prefix reuse was not enabled on the decode side, so prefill always sent KV from token zero. Second, the gateway applied session affinity only to prefill (99.4% of turns returned to the same prefill node) while only 6.7% of decode turns returned to the same decode node. A third finding was about reading metrics: a "connect 1.6 s" field was really time spent waiting for prefill to finish; the handshake itself took tens of milliseconds.
Route to where the KV already is
For GLM, consistent hashing sends a session back to the same prefill node, which raised the prefix hit from 0.64 to 0.98. For GLM-5.3-Flash, routing by prefix to the same replica gives near-100% affinity. Hit rates today: GLM 97–99%, DeepSeek about 96%.
Say no when the system is full
Read a hit, don't recompute it
- Another machine's memory over RDMA is about 7× faster than local NVMe and as fast as local memory. Across the cluster, about 39 TB of memory can act as one shared KV pool.
- Writes to host memory must stay on the local NUMA side: split writes from 8 GPUs reach 144 GB/s; writing everything to one side drops to 46 GB/s.
- One GPU sending to many machines does not add bandwidth. To go faster, use more GPUs and more NICs at once.
Next
| Direction | Measured basis | Expected (projected) |
|---|---|---|
| Send only missing KV | 57% of first token is KV transfer; full KV sent at 98.6% hit | First-token median 3.6 → about 1.2–1.4 s |
| Decode KV residency and release | At 90% KV occupancy only about half is generating | +23% to +42% throughput ceiling on the same machines |
| Entry overhead | Already-cached context still costs about 8 ms per 1K tokens | Lower long-context first token |
Projections are estimates, not results. Every change goes through an idle-machine canary, benchmark and approval first.
Data & sources
| Test | Observed result | Scope |
|---|---|---|
| First-token breakdown | 57% KV transfer | 5,858 requests, Oct 19–21 |
| Transfer volume | 0.4175 MB × input | R² = 1.0000 |
| Admission control | p50 35 → 2.5 s · p99 68 → 4.2 s | Standby drills, Oct 18–19 |
October 2026 engineering measurements on the stated hardware and workload. They are not a cross-model ranking or a service-level guarantee.
This work runs underneath Zenith Tokens.
Try Zenith Tokens