[KongchangAI]
· 2 min read· 1,346 words

Skipping the DRAM Layer: NVMe Directly Serving vLLM KV Cache Is Only 1% Behind

Skipping the DRAM Layer: NVMe Directly Serving vLLM KV Cache Is Only 1% Behind

vLLM KV cache offloading skips DRAM and uses an NVMe pool, with under 1% throughput gap at equal capacity and over 5× when capacity-constrained.

Tests by the WEKA team using the Kimi-K3 model, 16 AMD MI355X GPUs, and real SemiAnalysis AgentX workloads show that on vLLM's KV cache offloading path, skipping the DRAM layer and using an NVMe pool yields under 1% throughput gap in a 1.8TB vs. 1.8TB same-capacity comparison. The bottleneck is not single-read latency but concurrent scheduling, hit rate, and capacity supply: DRAM pool exhaustion raises the miss rate and drags down throughput, while the NVMe pool's scalable capacity maintains a high hit rate. In a 40-day trace test, a 4.6TB NVMe pool achieved 5.1× the throughput of a 1.0TB DRAM pool. The solution relies on the UMBP MoRI integration already merged into the vLLM mainline. The authors conclude that KV cache offloading should prioritize capacity planning over media speed, though generalizability still needs independent verification.

vLLM's KV cache offloading is typically designed around a layered "GPU→DRAM→NVMe" approach, but the WEKA team presents a counterintuitive conclusion in their latest blog post: skipping the DRAM layer entirely and using an NVMe pool to host the KV cache yields performance within 1% of a DRAM pool at equal capacity.

This result comes from real-workload testing with the Kimi-K3 model, 16 AMD MI355X GPUs, and SemiAnalysis AgentX at 48, 70, and 96 sessions. The solution is powered by the integration of UMBP MoRI with vLLM, and the relevant capabilities have already landed in the vLLM mainline.

Test Design: Same-Capacity Comparison Eliminates Media Interference

The core controlled variable of the experiment is clear: a 1.8 TB NVMe pool versus a 1.8 TB DRAM pool, compared on throughput under identical workloads.

Same-capacity comparison: 1.8TB NVMe pool vs. 1.8TB DRAM pool

Each server is configured with 70 KV cache slots. Lit slots in the figure represent KV cache hits, while dark ones represent misses. The test gradually fills these slots to observe how the two media differ under high pressure.

According to the blog author and EmbeddedLLM's analysis, the NVMe pool's throughput gap versus the DRAM pool is kept within 1%. This means that in this specific KV cache offloading scenario, the bandwidth difference of the media itself is effectively absorbed by the software stack.

KV Cache is a key data structure in large language model inference. During Transformer decoding, the Key and Value vectors of each token are cached for reuse in the attention computation of subsequent tokens, avoiding redundant computation. Its memory footprint grows linearly with context length and the number of concurrent sessions, and it can easily exhaust GPU memory in long-context and multi-turn Agent conversation scenarios. So-called KV Cache Offloading swaps temporarily inactive KV blocks out to a storage tier outside the GPU and swaps them back on a hit, thereby supporting more concurrent sessions without increasing GPU memory. vLLM's PagedAttention divides the KV cache into fixed-size blocks and maintains a block table—this is precisely the foundation that enables the offloading mechanism to schedule, migrate, and reclaim at block granularity, and it is also the premise for comparing hit rates across different media pools in this article.

Why NVMe Can Catch Up with DRAM

A single NVMe drive's read speed is indeed far below DRAM—that is a physical fact. But the bottleneck of KV cache offloading is often not the latency of a single read, but concurrent scheduling, hit-rate management, and capacity supply.

Hits and misses: only the NVMe pool can sustain capacity

The blog notes that as the number of sessions rises and cache slots fill up, only the NVMe pool can maintain throughput. The gap between the two comes mainly from capacity, not media speed. Once the DRAM pool runs out of capacity, the miss rate rises and overall throughput is dragged down; the NVMe pool, with its greater scalable capacity, keeps the hit rate at a higher level.

UMBP MoRI plays a key role at this layer. Its full name is MORI (U-M-B-P), and the relevant code has been merged into the vLLM mainline, meaning this offloading path is not a lab patch but a directly usable mainline capability.

UMBP MoRI has landed in the vLLM mainline

NVMe is a non-volatile memory host controller interface specification for solid-state storage. It connects directly to the CPU via PCIe and supports high-concurrency I/O through multi-queue and deep-queue mechanisms. A single drive can reach several GB/s in sequential reads, with random read latency on the order of tens to hundreds of microseconds—still one to two orders of magnitude higher than DRAM's hundred-nanosecond latency. KV cache offloading can close this gap because swaps are mostly performed in larger blocks, can be prefetched asynchronously in batches, and GPU-side computation can overlap with I/O, so single-read latency is hidden by the pipeline; what really determines throughput is the number of blocks that can be successfully hit per unit time. As concurrent sessions increase, I/O queue depth brings near-linear throughput scaling—this is the technical origin of the article's claim that "concurrent scheduling absorbs media differences."

Capacity-Constrained Scenarios: NVMe Overtakes DRAM

If matching at equal capacity is merely "not losing," then when capacity becomes the constraint, NVMe's advantage becomes overwhelming.

In WEKA kvlab's 40-day trace test, at 70 sessions, a 4.6 TB NVMe pool achieved 5.1× the throughput of a 1.0 TB DRAM pool. This number needs careful interpretation: it is not a victory of media speed but a victory of capacity supply. The DRAM pool is limited to 1.0 TB, so a large number of requests miss; the NVMe pool restores the hit rate with 4.6 TB of capacity.

Throughput gap within 1%, 70 slots per server

According to the trace characteristics from SemiAnalysis AgentX, real Agent workloads vary widely in session length and cache reuse patterns, and insufficient capacity directly amplifies the cost of misses. This is also why the NVMe solution performs more stably on long traces.

Trace testing refers to replaying workloads using timing records collected from real production systems, such as request arrival times, session lengths, and cache reuse distances; compared with synthetic workloads, it better reflects long-tail sessions and bursty concurrency in Agent scenarios. Hit Rate refers to the proportion of KV block requests that are found directly in the offloading pool; a miss requires falling back to recomputation or loading from a slower tier, which is costly. Under a fixed-slot model, pool capacity determines how many active blocks can reside simultaneously: when capacity is insufficient, new blocks evict old blocks that have not yet been reused, the hit rate drops sharply as the number of sessions rises, and throughput declines non-linearly. This explains why scaling to a 4.6 TB NVMe pool can achieve several times the throughput of a 1.0 TB DRAM pool—the gain comes from the capacity dimension, not from media bandwidth itself.

Implications for Inference Deployment

These results have several practical implications for vLLM deployers:

  • Dropping the DRAM layer is not a compromise: on the KV cache offloading path, the marginal benefit of the DRAM layer is lower than expected, and using NVMe directly simplifies memory planning.
  • Capacity matters more than media: as session counts grow, reserving sufficient NVMe capacity preserves throughput better than pursuing faster media.
  • The software stack is the key variable: the integration of UMBP MoRI with vLLM unleashes NVMe's concurrency, and looking only at hardware specs would underestimate this solution.

It should be noted that the test environment is a specific configuration of 16 MI355X GPUs, and the generalizability of the conclusions to other GPU models and models still needs more independent verification. But at least under the strictest condition—same-capacity comparison—NVMe did not lose.

For teams planning capacity for long-context and Agent workloads, this signal deserves serious attention: the bottleneck of KV cache offloading may never have been media speed in the first place.

One-line Summary

vLLM KV cache offloading skips DRAM and uses an NVMe pool, with a throughput gap of less than 1% at equal capacity and over 5× when capacity-constrained.

Paragraph Summary

Based on tests with the Kimi-K3 model, 16 AMD MI355X GPUs, and real SemiAnalysis AgentX workloads, the WEKA team shows that on vLLM's KV cache offloading path, skipping the DRAM layer and using an NVMe pool instead yields a throughput gap of less than 1% in a 1.8TB vs. 1.8TB same-capacity comparison. The reason is that the bottleneck in this scenario is not single-read latency but concurrent scheduling, hit rate, and capacity supply: once the DRAM pool runs out of capacity, the rising miss rate drags down throughput, while the NVMe pool maintains a high hit rate thanks to its scalable capacity. In a 40-day trace test, a 4.6TB NVMe pool achieved 5.1× the throughput of a 1.0TB DRAM pool. The solution is supported by the UMBP MoRI integration already merged into the vLLM mainline. The authors therefore argue that KV cache offloading should prioritize capacity planning rather than media speed, though the generalizability of the conclusions still requires more independent verification.

#vLLM#KV cache offloading#NVMe#DRAM#UMBP MoRI#PagedAttention#LLM inference#capacity planning
Share:

Related articles