vLLM Ditches Expensive DRAM and Runs Kimi-K3 on NVMe Within 1%
vLLM, AMD and Embedded LLM put the KV cache pool straight on local NVMe drives and matched same-size DRAM throughput within 1%.
Takeaways
- vLLM, AMD and Embedded LLM put the KV cache pool directly on NVMe, skipping the host DRAM tier entirely.
- On Kimi-K3 with 16 MI355X GPUs, a 1.8 TB NVMe pool matched a 1.8 TB DRAM pool within 1%.
- At 70 sessions, a 4.6 TB NVMe pool delivered 5.1 times the throughput of a 1 TB DRAM pool.
- DRAM costs per TB held ($42K/TB); NVMe costs per TB written ($0.36/TB), flipping economics for long retention.
- Three fixes mattered: 256 MiB segment files, touch hints from GPU hits, and frequent KDA checkpoints.
UMBPStoreConnectoris in vLLM main via PR #61789; requires AMD MoRI.
Long-running coding agents repeatedly send large conversation histories back to the model. In SemiAnalysis’ AgentX benchmark, which replays Claude Code sessions, the median turn contains 142,000 input tokens, and more than 96% belong to a prefix the server has already processed. A retained key-value cache, or KV cache, lets the prefill worker reuse the attention state for that prefix and compute only the new suffix. An eviction forces the worker to recompute the full prompt, increasing latency and consuming GPU capacity.
A joint vLLM, AMD, and Embedded LLM engineering report tested local NVMe as the capacity pool, with DRAM limited to staging reads and writes. Running Kimi-K3 on 16 AMD Instinct MI355X GPUs with MoRI’s unified memory and bandwidth pool, or UMBP, the team measured NVMe throughput within 1% of an equal-sized DRAM pool. A second set of runs on different machines produced the same result.
Flash keeps pace at equal capacity
The baseline compared a 1.8 TB host DRAM pool with a 1.8 TB NVMe pool backed by two Micron 7450 PRO drives per node. Across 48, 70, and 96 concurrent AgentX sessions, throughput differences remained within run-to-run noise. KV cache hit rates differed by no more than 0.08 percentage points of prompt tokens.
UMBP used about 80 GB of DRAM to buffer new KV data and stage reads, compared with 1.8 TB for the full DRAM pool. At 70 sessions, removing the write buffer produced slightly higher throughput than the DRAM configuration. A second workload, the WEKA kvlab 40-day corpus, had a median prompt length of 165,000 tokens and placed NVMe within 0.6% of DRAM at the same capacity.
Queues hid the latency gap
- Cache-hit rate predicted throughput. Across 42 Kimi-K3 runs at 70 sessions, the team varied pool media, capacity, and configuration. KV cache hit rate explained 96% of the throughput variance. Equal-sized pools using the same eviction policy retained nearly identical blocks.
- Recomputation cost far exceeded SSD latency. For a 128,000-token prefix, MoRI measured time to first token, or TTFT, at 0.45 seconds after a DRAM hit, 0.84 seconds after an NVMe hit, and 7.7 seconds after recomputation.
- Asynchronous reads overlapped scheduler waits. vLLM began loading cached KV data while each request waited for a prefill slot. With DeepSeek-V4-Pro at 64 sessions, loading took 0.80 seconds from DRAM and 0.85 seconds from NVMe. Both completed about two seconds before prefill began.
Busy inference engines therefore absorbed most of the SSD read penalty inside existing queue time. Capacity produced the larger effect because a bigger pool preserved more prefixes and avoided expensive recomputation.
Long retention favors flash economics
The report models DRAM as an upfront capacity expense and NVMe as consumed write endurance. Its estimate prices DRAM at about $42,000 per terabyte held. An SSD rated for one drive write per day can accept 1,825 full-capacity writes over five years, yielding an estimated media cost of about $0.36 per terabyte written.
Kimi-K3 generated roughly 83 TB of writes per day while serving 96 concurrent sessions. Under the report’s five-year model, a 1.8 TB NVMe pool replaced as its drives wear out costs about the same as an 83 TB pool that spreads the writes across enough drives to retain one day of data. Both cost approximately $59,000 in SSD media.
| Pool | Approximate retention | Estimated cost |
|---|---|---|
| 1.8 TB NVMe | About 36 minutes | $59,000 with replacements |
| 83 TB NVMe | About one day | $59,000 |
| 1.8 TB DRAM | About 36 minutes | $76,000 |
| 83 TB DRAM | About one day | $3.5 million |
Session pauses make retention consequential. Compared with a pool that never evicts, a 36-minute retention window increased prompt-token misses by about one percentage point. The difference fell to 0.7 points at one hour and 0.3 points at three hours. With GPU memory alone, rising concurrency exposed a sharper capacity limit: the KV hit rate dropped from 90% at 32 sessions to 41% at 48 sessions, while throughput fell by 80%.
Three changes closed the gap
- Shrink segment files. UMBP appends data to files and reclaims capacity by deleting complete files. Its default 4 GiB segments discarded too much live KV data during eviction. Changing only the segment size to 256 MiB raised Kimi-K3’s cache-hit rate at 70 sessions from 94.45% to 95.65%, reduced p90 TTFT from 63.0 to 21.3 seconds, and increased throughput by 15.6%, from 11,672 to 13,492 tokens per second per GPU.
- Forward GPU hits as touch events. Prefixes served from GPU memory generated no read event in the external pool, causing the eviction policy to classify active entries as cold. Sending touch hints for those hits added 2% to 4% throughput.
- Checkpoint hybrid-model state more often. Kimi-K3’s KDA linear-attention layers can resume only from saved checkpoints. Setting
--prefix-cache-retention-interval 7168created a checkpoint every 7,168 tokens, raising the hit rate from 91.4% to 95.6%. Throughput increased by 33%, from 5,113 to 6,791 tokens per second per GPU.
From pull requests to a running pool
The UMBPStoreConnector landed in vLLM main through a ten-part series beginning with PR #61789. The tested deployment used MI355X accelerators, ROCm, local NVMe drives, and a UMBP server on each inference node.
- Build a compatible vLLM revision. Use a commit containing the complete connector series and the GPU-hit touch support.
- Start the local UMBP server. Its policy file identifies the SSDs, segment sizing, and DRAM write-buffer allocation.
- Configure KV transfer. Select
UMBPStoreConnectorfor the external cache. Disaggregated prefill and decode deployments can use MoRIIO for RDMA transfers between workers. - Tune hybrid checkpoints. Models with linear-attention state require an interval that balances reusable state against checkpoint overhead.
- Validate with production-shaped traces. Track cache-hit rate, p90 TTFT, throughput, queue delay, SSD bandwidth, and terabytes written per day.
Limits behind the 1% result
- The external pool served a minority of tokens. GPU memory handled most cache reads in the equal-capacity tests, leaving DRAM or NVMe to supply 1% to 16% of prompt tokens. A workload where the external pool serves most tokens remains untested.
- Queue depth masked read latency. Light traffic provides little scheduler wait to overlap with storage access. In that regime, the measured NVMe penalty of roughly 0.4 seconds for a 128,000-token prefix would add directly to TTFT.
- Writes consume SSD endurance quickly. Every newly computed block was written to the drives. At 96 sessions, the measured write rate would exhaust the two test SSDs’ rated endurance in about five and a half months.
- Large retention figures are extrapolated. The largest tested pool was 4.6 TB across two nodes. The proposed distributed pool would spread writes across more SSDs, but the 83 TB, one-day configuration was not benchmarked at full scale.
- The hardware scope is narrow. The reported implementation targets AMD MI355X systems running ROCm. The study provides no equivalent measurements for other accelerators, storage topologies, or inference engines.
- The cost comparison covers media. A production total-cost model also needs servers, power, networking, spare capacity, operational overhead, and failure replacement.
For coding agents and other session-heavy workloads, these results support using NVMe capacity to preserve long-lived prefixes while GPUs and small DRAM buffers handle active data. Capacity planning should combine prefix reuse, session-pause distribution, queue depth, cache-hit curves, and daily write volume. Those measurements determine whether scheduler waits can absorb SSD latency and how many drives the system needs for retention, bandwidth, and endurance.