Skip the DRAM Tier: MoRI UMBP Runs the Agentic KV Cache on NVMe
Overview
Agentic AI workloads frequently rely on multi-turn sessions that resend long prefixes, making efficient KV cache management critical for performance. Recent benchmarks show that a 1.8 TB NVMe-based KV pool matches the throughput of a 1.8 TB DRAM pool within 1% while offering vastly superior retention capabilities. By skipping the DRAM tier and utilizing the MoRI library's UMBP (Unified Memory and Bandwidth Pool) on AMD Instinct™ MI355X GPUs, infrastructure operators can store significantly more KV cache data without the high cost of massive DRAM deployments.
Technical Implementation
The NVMe pool architecture replaces the traditional DRAM-heavy approach with a tiered storage model. In this setup, new KV data lands in a small 64 GB DRAM write buffer before being flushed to local NVMe drives.
- Data Path: The vLLM prefill engine saves and loads KV blocks via the
UMBPStoreConnector. - Storage: The system utilizes local Micron 7450 PRO NVMe drives. Direct I/O via
io_uringensures that the Linux page cache does not interfere with read performance. - Asynchronous Loading: Because vLLM loads KV asynchronously, the latency penalty of reading from NVMe is effectively hidden behind the prefill queue wait time on busy engines.
Performance and Throughput
Testing on the AgentX benchmark with the Kimi-K3 model confirmed that NVMe pools perform on par with DRAM at identical capacities. Across multiple load levels (48, 70, and 96 concurrent sessions), throughput variance remained within 1%.
Key takeaways from the performance analysis include:
- Hit Rate Dependency: Throughput is primarily driven by the KV cache hit rate. Since both DRAM and NVMe pools utilize the same least-recently-used (LRU) eviction policies, they maintain nearly identical hit rates.
- Write Buffer Necessity: At moderate loads (70 sessions), the system performed effectively even without the 64 GB DRAM write buffer. Under heavier loads (96 sessions), the buffer became necessary to maintain throughput parity.
- Optimized Eviction: Using smaller 256 MiB segment files (down from the 4 GiB default) was essential to prevent the premature eviction of active KV data, resulting in a 15.6% throughput improvement in testing.
Economic Implications
Moving to NVMe changes the cost model for AI infrastructure from "cost per TB held" to "cost per TB written."
- Retention: A $76,000 DRAM pool holds approximately 31 minutes of Kimi-K3 KV cache. An NVMe-based pool of the same cost can hold a full day of KV data, as NVMe costs are driven by drive wear (writes) rather than static capacity.
- Scalability: While DRAM costs scale linearly and prohibitively for long-term retention, NVMe allows for massive capacity expansion at a fraction of the price, enabling longer session retention which directly improves the KV cache hit rate and overall system efficiency.
Limitations and Future Work
While the results are promising, the team identified several areas for ongoing development:
- Write Wear: Every computed KV block is written to the drives. Future iterations will implement a distributed version of the pool to spread writes across more SSDs, extending hardware lifespan.
- Heavy Read Loads: The current study focused on scenarios where the pool served up to 16% of prompt tokens. Further research is required to evaluate performance in scenarios with significantly higher read-from-pool ratios.
- Upstream Integration: Several optimizations, including specific eviction classes and connector improvements, are currently in the process of being merged into the upstream vLLM and MoRI repositories.