Back to articles

Skipping the DRAM Tier: vLLM Tests NVMe for Agent KV Caches

3 min read

Why cache retention matters

Agent conversations often send a long history with every new turn. When the corresponding KV cache is still available, a serving system can process only the new part of the prompt. If the cache has been evicted, it must recompute the prefix, using GPU time and delaying the first token. The vLLM blog cites AgentX session replays in which more than 96% of input tokens were prefixes the server had already encountered. That makes cache capacity and retention central to serving efficiency.

A same-capacity comparison

AMD and vLLM tested MoRI’s UMBP cache pool with Kimi-K3 on Instinct MI355X GPUs. The comparison paired a 1.8 TB DRAM pool with a 1.8 TB NVMe pool. In the reported results, throughput differed by less than 1% at 48, 70 and 96 concurrent sessions. A separate workload with longer prompts also came within 1% of the same-sized DRAM pool. The post further reports that, in its runs, raising the KV hit rate by one percentage point—for example, from 95% to 96%—was associated with roughly 10% more throughput. For these workloads, keeping useful KV available mattered more than simply choosing the faster storage medium.

The NVMe setup does not eliminate DRAM altogether; it removes DRAM as the large-capacity cache tier. In most runs, a 64 GB DRAM buffer accepted writes, while a 16 GiB staging area helped serve reads. The bulk of KV data lived on local NVMe drives. UMBP loads data asynchronously, and the blog’s explanation is that on a busy engine, some storage reads can complete while a request is waiting for prefill. The tests used local SSDs, not network-attached storage.

The economics—and the trade-off

The blog estimates that Kimi-K3 wrote roughly 2.3 to 4.6 TB of KV into the pool per hour, or about 83 TB per day in the cited configuration. At the prices it uses, a 1.8 TB DRAM pool costs around $76,000 and retains only about 23 to 47 minutes of KV. NVMe drives rated for the workload’s writes were estimated at about $59,000 and could hold a day’s KV. These are configuration-specific estimates, not universal prices or guarantees for other deployments.

What this could mean

For agent workloads, a larger, more affordable cache may reduce repeated prefix computation and leave more GPU capacity for new requests. The test challenges the assumption that large KV pools must sit in DRAM. But it is not proof that NVMe will match DRAM everywhere: the result covers particular GPUs, models, software settings and local SSDs. Writing every computed KV block also wears drives, and the authors identify spreading those writes across more SSDs as a next step. Operators will need to validate latency, endurance, topology and real session patterns before changing their cache design.

Source: vLLM Blog

Comments

Checking sign-in status...

Loading comments...

Related articles