File and Object Storage

File and Object Storage

Software-defined storage for building a global AI, HPC and analytics data platform 

 View Only

To Cut Infrastructure Costs, Put AI Context on Storage

By Vincent Hsu posted 24 days ago

  
image


The AI industry has been engaged in an endless race for bigger models, larger GPU clusters, and ever-expanding context windows. The focus has been on more compute, more memory, and more performance. Yet as enterprises begin deploying AI at scale, a different challenge is emerging – how to cost-effectively deploy those GPUs to drive maximum business value.


The problem comes down to cost. Every extra terabyte of memory adds expense and power consumption. Every time an AI chatbot must rebuild its understanding of a conversation from scratch because nothing was saved, organizations burn GPU time and energy recreating work they already paid for. As AI tasks get more complex and conversational, running them efficiently matters just as much as raw performance.


What if you could reduce the memory your AI inference system needs by 80% without measurably slowing it down? A recent benchmark that IBM ran with NVIDIA, Supermicro, and Tensormesh suggests you can, by storing AI context on fast storage instead of RAM. Here's what we found and why it matters.


The Memory Assumption

Today's inference systems rely heavily on key-value cache (KV cache), a memory structure that stores previously computed attention keys and values so the model can reuse prior context instead of recomputing it for every new token.


Until now, the assumption has been that the best way to maximize cache effectiveness is to keep as much KV cache in memory as possible. That assumption made sense when context windows were smaller and workloads were less complex. Agentic AI, long-context reasoning, and multi-turn conversations are beginning to challenge that assumption.


The new benchmark test evaluated the NVIDIA GLM-5.2-NVFP4 model (available from Hugging Face) running on eight NVIDIA B300 Blackwell architecture GPUs. It simulated a workload that generated a 1,018 GB KV working set, requiring approximately 1.5 TB of host memory if the entire cache was to remain resident in CPU memory. This configuration provides fast cache retrieval to the GPUs because the entire KV cache fits in memory and nothing needs to be retrieved from storage.


But from an economic perspective, this configuration doesn’t make sense – dedicating 1.5 TB of system memory solely to preserving KV cache is prohibitively expensive with current RAM prices. As models become larger, agents proliferate, and context windows continue to expand, memory requirements would grow ever more expensive.


An Experiment in Context Economics

To explore alternatives, the team compared this all-memory configuration against a system using only 256 GB of host memory but with IBM Storage Scale software providing the remaining KV cache storage as an external cache tier. Two members of my team, Khanh Ngo and Anthony Hsu, collaborated to develop a Storage Scale plug-in for the NVIDIA Inference Transfer Library (NIXL), an open-source, high-performance data movement library designed for distributed AI inference workloads.


To ensure the benchmark reflected realistic enterprise AI workloads, Kartik Hans and his colleagues at Tensormesh used the Tensormesh Platform to orchestrate the KV cache environment and validate results across multiple caching scenarios. These included traditional prefix caching, which reuses KV cache associated with shared prompt prefixes, as well as Tensormesh CacheBlend technology, which can reuse portions of previously computed KV cache even when requests do not begin with the same prompt structure. 


This approach helped model the types of multi-turn, RAG, and agentic AI workloads enterprises are beginning to deploy at scale. More importantly, it demonstrated that IBM Storage Scale could function as an effective external KV cache tier, maintaining near-identical cache effectiveness and user-visible performance while dramatically reducing host memory requirements.

The all-memory configuration delivered an 80.3% KV cache hit rate, but the storage-backed configuration (with one sixth the RAM capacity) achieved essentially the same result. Average prefill time was 0.77 seconds in the all-memory environment and 0.73 seconds in the IBM Storage Scale-backed environment. Median time-to-first-token differed by less than half a second, with both configurations producing virtually identical user-visible performance. Even throughput remained remarkably close, with the storage-backed system delivering close to 94% of the throughput of the all-memory design.

image

Figure 1 – Extending KV cache to IBM Storage Scale reduced host memory requirements by 82% while preserving near-identical Prefill Time and Time to First Token performance.


This benchmark shows that IBM Storage Scale can provide a high-performance cost-effective KV cache tier replacement for CPU RAM.


An Optimal KV Cache Architecture 

There were four key elements that enabled these results:

  • IBM Storage Scale ECE (Erasure Code Edition) software;
  • Six Supermicro storage servers running IBM Storage Scale ECE and a Supermicro GPU server with eight NVIDIA HGX™ B300 GPUs;
  • NVIDIA Dynamo orchestrated serving GLM 5.2 through vLLM and KV-aware routing;
  • Tensormesh LMCache software managed and tiered the KV cache out of GPU memory onto IBM Storage Scale as well as its retrieval.


These components were connected over an NVIDIA Spectrum-X™ Ethernet spine-leaf fabric to maximize network throughput and minimize network congestion. The NVIDIA AIPerf benchmark tool was used to drive synthetic RAG and agentic multi-turn workloads.


The benchmark architecture shows that Storage Scale, in conjunction with the Tensormesh Platform, can provide a critical part of the inference pipeline, rather than introducing another specialized tier – the same storage infrastructure that enterprises already trust for critical workloads can now unify data, vector, and KV cache storage in a single platform, becoming an active participant in AI inference. The same capabilities also apply to the IBM Storage Scale System 6000 solution.


Where the Tokens Came From

Beyond the performance metrics, one of the most interesting outcomes of the benchmark was the source of the prompt tokens themselves. In the storage-backed configuration, approximately one-third of all prompt tokens were retrieved by the Tensormesh Platform directly from Storage Scale instead of memory, yet overall cache effectiveness remained virtually unchanged from the all-memory configuration.

image

Figure 2 – IBM Storage Scale serves 35% of prompt tokens directly from storage, yet delivers the same throughput as a 1.5 TB memory-only deployment while using only 256 GB of host memory.


That observation is easy to overlook, but it may be the most important finding in the entire study. If one-third of the prompt tokens can come from storage while maintaining nearly identical cache effectiveness, then storage is no longer simply supporting inference; it is participating in inference. This is about more than memory optimization; it’s really a major architectural shift.

“We replaced 1.5TB of host memory with 256GB of host memory attached to external high-performance storage, and the cache barely noticed.”

Our colleagues at Tensormesh report that in this collaboration with IBM Storage Scale, they observed something new: KV cache retrieval from storage maintained throughput, latency, and TTFT characteristics comparable to a memory-centric deployment while dramatically reducing host memory requirements.

Context Is Too Valuable to Waste

For years, the industry has largely treated KV cache as a temporary artifact to be generated, consumed, then discarded and regenerated when necessary. But context itself is not temporary.


A coding assistant may work on the same repository for months; a customer service agent may interact with the same account repeatedly over time; an enterprise workflow may revisit the same collection of documents, policies, and histories day after day. In each case, the context represents work that has already been completed. GPUs consumed cycles creating it, infrastructure consumed energy preserving it, and organizations paid real money to generate it.


When viewed through that lens, repeatedly recomputing context begins to look increasingly inefficient. Storage offers a different model. Instead of treating context as something that exists only for the lifespan of memory, organizations can preserve it, reuse it, and extend its useful life. The immediate benefit is better economics. The longer-term implication is that context starts becoming a managed infrastructure resource in its own right.


Improving Infrastructure Efficiency

The first benefit of storage-backed KV cache is that it improves infrastructure efficiency – by reducing memory requirements it helps organizations get more value from their GPU resources.


Once context transitions from a temporary memory artifact into a persistent storage asset on Storage Scale, additional capabilities naturally follow. Persistent context can be retained longer than memory allows. It can be protected using the same resiliency techniques applied to critical enterprise data. It can be governed, secured, shared, audited, and recovered. It can become part of a broader operational model that incorporates telemetry, automation, and policy-driven optimization.

“More than a third of the AI’s conversational context was delivered directly from external storage, not from RAM, and the user couldn’t tell the difference. Storage is no longer just supporting the inference pipeline; it now lives inside it.” 

But there’s more to the story than just tokenomics. Organizations adopt these architectures because they want to improve efficiency and lower costs. What is interesting is that once context moves into storage, a series of enterprise capabilities such as high availability, compliance, and security emerge naturally from that decision. Better economics becomes the doorway to better data infrastructure.


Those results make a compelling economic argument. But for me, the most important conclusion is broader than the benchmark itself. If storage can provide context quickly enough to keep GPUs productive, then memory is no longer the only place context can live. Once context moves into a shared storage tier, it becomes something enterprises can retain, manage, protect, optimize, and reuse.


To learn more, visit the IBM booth at NVIDIA GTC™ Berlin, October 20th through 22nd or visit us at IBM TechXchange in Atlanta the following week, October 26th through 29th.

0 comments
34 views

Permalink