A Flat KV Cache Storage Architecture for LLM Serving
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
A Flat KV Cache Storage Architecture for LLM Serving Xin Huang1,2 Teng Ma3 Zhuoran Li4 Wei Yang1,2 Chenxi Wang6,2 1 Fudan University, China 4 Peking University, China
Yibo Zhao4 Zhaoshi Li5 Qianchao Zhu3 Tao Xie4,1,2,* Youwei Zhuo4,2,*
2 Beijing Tongming Lake Center, China
5 MetaX Technology, China
3 Independent Researcher
6 Institute of Computing Technology, CAS, China
arXiv:2610.38355v2 [cs.DC] 18 Nov 2026
huangxin25@m.fudan.edu.cn stmatengss@gmail.com {zhuoranli, yibozhao}@stu.pku.edu.cn zhaoshi.li@metax-tech.com wangbo18@xiaohongshu.com yang_wei@fudan.edu.cn wangchenxi@ict.ac.cn {taoxie, youwei}@pku.edu.cn * Corresponding authors
Abstract KV cache reuse accelerates LLM serving, but existing systems manage host DRAM and NVMe SSD as a tiered hierarchy where DRAM acts as an intermediate cache. Production LLM workloads break both premises of this hierarchy. First, bimodal reuse defeats DRAM temporal filtering, since workloads are dominated either by oneshot blocks with long reuse distances or by multi-gigabyte agentic sessions that exceed DRAM capacity, putting SSD on the critical read path. Second, DRAM staging and eviction-ordered layout bottleneck SSD restoration. Holding host staging buffers for inflight prefixes causes contention under load that aborts prefetches, while incremental eviction scatters a session’s blocks across the SSD and prevents large sequential reads. We present FlatCake, a flat KV storage architecture that exposes host DRAM and NVMe SSD as peer media in a unified 64-bit address space. Exploiting the fact that KV blocks are write-once, immutable, and reused together within a prompt or session, FlatCake places each block directly onto its target medium in session-contiguous, layer-major order at creation time and never migrates it. FlatCake streams coalesced SSD reads directly into a bounded GPU window via GPUDirect Storage and decouples DRAM and SSD request queues to prevent head-of-line blocking. We implement FlatCake in SGLang and compare it against host-staged (Mooncake) and GDS-enabled (Mooncake-GDS) tiered storage, as well as SSD-direct storage (Tutti). Across three production agentic, coding, and conversational traces with DeepSeek-V4-Flash, FlatCake reduces mean TTFT near the baselines’ latency knees by 1.40×–2.42× over the fastest baseline. On the agentic Claude Code trace, FlatCake sustains a 91.6% cache hit rate under load (versus 71.1% for all three baselines) and delivers up to 2.16× higher token throughput.
L1
L2
(b) SSD-Direct Storage
(c) Flat Storage (ours)
Mooncake / HiCache LMCache / 3FS
Tutti
FlatCake
GPU HBM
GPU HBM
put
put
get
DRAM w/o GDS
evict L3
w/ GDS
get SSD
GPU HBM put
get
DRAM
put
get
SSD
Unified address space
SSD
Figure 1: KV cache storage organizations. (a) Tiered storage admits blocks into host DRAM first, evicts cold blocks to SSD, and restores SSD hits through host DRAM (w/o GDS) or a direct GDS bypass (w/ GDS). (b) SSD-direct storage transfers KV blocks directly between GPU HBM and SSD via GPU-executed I/O, leaving host DRAM unused. (c) Flat storage (FlatCake) exposes DRAM and SSD as peers in a unified address space and writes each block straight to its target medium without cross-media migration.
pushing active KV working sets to tens of gigabytes per session over multiple hours. Because concurrent working sets exceed GPU HBM and host DRAM capacity and recomputing evicted history consumes up to 93% of prefill compute [11], NVMe SSDs must serve KV cache hits on the critical path [25]. Existing systems such as Mooncake [24], LMCache [21], and SGLang HiCache [39] organize GPU HBM, host DRAM, and NVMe SSD as a tiered hierarchy (Figure 1(a)). By admitting newly generated KV blocks into host DRAM first and evicting cold blocks to SSD in the background, tiering absorbs prefill writes at memory bandwidth and serves recent hits without touching slower block storage. Borrowed from general-purpose memory and storage systems, this design rests on two premises. First, temporal filtering assumes that recency-based DRAM caching retains the active working set so NVMe SSD serves only cold misses off the critical path. Second, eviction-driven offloading assumes that populating SSD incrementally through DRAM eviction and staging restores through host DRAM buffers can sustain high read throughput whenever SSD hits occur. Characterizing eight production traces from Mooncake, Qwen Bailian, and Claude Code (§2.2) shows that LLM serving workloads break both premises.
Keywords LLM serving, KV cache management, memory tiering, flat KV storage, GPUDirect Storage
1
(a) Tiered Storage
Introduction
Prefix caching is now standard in large language model (LLM) serving, allowing requests that share a prefix to reuse previously computed key-value (KV) tensors and skip redundant prefill computation [15, 24, 43]. Early workloads mainly reused short, globally shared system prompts [35], whereas modern serving mixes multiturn conversations [11] with long-context agentic coding sessions that append tool outputs and retrieved files on every turn. In a production Claude Code trace, requests average 219K input tokens [30], 1
Xin Huang, Teng Ma, Zhuoran Li, Yibo Zhao, Zhaoshi Li, Qianchao Zhu, Wei Yang, Chenxi Wang, Tao Xie, and Youwei Zhuo
First, bimodal reuse defeats recency-based DRAM filtering and puts NVMe SSD on the critical read path. Across the eight traces, KV reuse splits into two regimes. In conversational and API workloads, 53–94% of KV blocks are accessed only once, whereas reusable prefixes span hundreds to thousands of intervening requests. Admitting every write into host DRAM pollutes it with one-shot blocks that evict compact, reusable prefixes to SSD before their next turn arrives. Conversely, in agentic coding (Claude Code), 83.4% of blocks are reused with immediate turn-to-turn locality, yet multi-gigabyte session histories quickly exceed host DRAM capacity across concurrent sessions. In both regimes, funneling all writes through an LRU DRAM tier fails to keep hot prefixes in memory and pushes most cached token volume onto NVMe SSD, turning DRAM–SSD migration into wasted data movement. Second, host DRAM staging and eviction-ordered layout turn SSD restoration into a concurrency and I/O bottleneck. Once SSD must serve the bulk of cached tokens, both tiered read paths in Figure 1(a) degrade under load. On the host-staged path, restoring a long prefix requires holding host DRAM buffers for the entire inflight hit until GPU transfers finish, so staging memory scales with context length and concurrency. Even when SSD-to-DRAM and DRAM-to-GPU copies are pipelined, concurrent restores contend for bounded staging buffers, delaying or aborting prefetches and forcing the GPU to recompute KV blocks already stored on SSD. Bypassing host DRAM with batched GPUDirect Storage (GDS) avoids staging contention but still reads an eviction-scrambled disk layout. Because tiered systems write blocks to SSD in DRAM eviction order and pack evicted blocks from different sessions into shared fixed-size FIFO buckets, each session’s prefix is scattered across noncontiguous SSD offsets. Restoring a prefix layer by layer therefore issues 𝑂 (layers × blocks) small reads that underutilize sequential NVMe bandwidth, while recycling an old bucket invalidates active prefixes across sessions. SSD-direct systems such as Tutti [25] avoid cross-tier migration and host staging contention by transferring KV blocks directly between GPU HBM and NVMe SSD via GPU-executed I/O queues (Figure 1(b)). However, bypassing host DRAM leaves hundreds of gigabytes to terabytes of server memory unused, even though it delivers 2.4–2.5× higher read bandwidth than local NVMe SSDs (Table 3) and can serve compact shared prompts and short initial turns without occupying GPU threads for I/O. Furthermore, Tutti packs all layers of each KV page together (page-major layout), so whole-page SSD reads on long-context sessions complete layer 0 only after the last page arrives and cannot overlap with layer-wise computation. Neither placing DRAM as a migratory filter above SSD nor discarding DRAM altogether matches how LLM KV caches are used. Why do existing designs face this trade-off? General-purpose tiering assumes mutable pages whose future reuse and spatial grouping are unknown when written, relying on dynamic migration through DRAM to discover locality. Our key insight is that LLM KV cache blocks are write-once, immutable, and reused together as a shared prompt or session prefix. Because blocks are never modified in place, they carry no dirty state to write back. Moreover, both a request’s prefix sharing and its write size are observable at creation time, and every subsequent turn restores a session’s blocks together layer by layer. Compact shared prompts and short writes
can therefore stay pinned in fast host DRAM without one-shot pollution, while large writes and multi-gigabyte sessions can be written straight to NVMe SSD in session-contiguous, layer-major order so restores stream sequentially and overlap computation without DRAM migration or reassembly. Based on this insight, we propose FlatCake, a flat KV storage architecture that unifies host DRAM and NVMe SSD as peer storage media (§3). As shown in Figure 1(c), FlatCake exposes both media at the same level behind a unified 64-bit Global Virtual Address (GVA) space, placing each KV block once at write time without cross-media migration. Managing peer media without an intermediate DRAM buffer raises challenges in initial placement, crossmedium scheduling, and direct SSD streaming, which FlatCake addresses through three components: • FC-GVA: Global Virtual Address Manager (§3.2). FCGVA binds each newly generated prefix or session (a reuse scope) directly to DRAM or SSD at creation using observable sharing and write-size signals, where any SSD-placed scope still reads sequentially rather than triggering migration. Encoding each block’s medium, node, and offset in an immutable 64-bit GVA enables 𝑂 (1) media-aware routing and zero-writeback, whole-session SSD reclamation. • FC-MAS: Medium-Aware Request Scheduler (§3.3). Without DRAM pre-staging, slow SSD restores can stall sub-millisecond DRAM hits in a shared queue, whereas strict DRAM priority can starve large SSD sessions. Using the medium bits in each GVA, FC-MAS separates DRAMready and SSD-preparing queues, prioritizes smaller SSD prefetches while aging waiting ones, and re-admits completed prefetches in original arrival order to prevent both head-of-line blocking and starvation. • FC-CIO: Coalescing Direct I/O Engine (§3.4). FC-CIO combines write-time layer-major layout within preallocated session files and read-time descriptor coalescing to collapse 𝑂 (layers × blocks) fragmented reads into 𝑂 (layers) sequential GDS transfers. Because paged KV slots in GPU HBM are non-contiguous, FC-CIO streams each layer extent into a bounded GPU staging window overlapped with layer-wise computation before scattering pages into KV slots, eliminating host staging contention. We implement FlatCake in SGLang and compare it against host-staged (Mooncake) and GDS-enabled (Mooncake-GDS) tiered storage, as well as SSD-direct storage (Tutti), across production trace replay and long-context workloads (§5). Replaying three production traces (Claude Code, Qwen Bailian Coder, and Mooncake Conversation) on DeepSeek-V4-Flash with NVIDIA B200 GPUs, FlatCake reduces mean TTFT near the baselines’ latency knees by 1.40×–2.42× over the fastest baseline. On Claude Code, where all three SSD-backed baselines drop to a 71.1% delivered cache hit rate under load, FlatCake sustains 91.6% and delivers up to 2.16× higher token throughput.
2 Background and Motivation 2.1 KV Cache Reuse and Tiered Storage Once generated during prefill, KV cache [34] blocks are writeonce and immutable, and their reuse across requests follows three 2
A Flat KV Cache Storage Architecture for LLM Serving
Table 1: KV cache reuse statistics across eight production LLM traces under an infinite-capacity cache.
Requests
Once-
blocks
access
Reuse dist Mean
P50 KV footprint (MiB/rank)
Workload
Unique
Mooncake
Hit
P99
rate
Mooncake Traces [24] Conversation 12,031 Synthetic 3,993 ToolAgent 23,608
182,790 43,924 183,300
75.8% 58.4% 78.5%
728 430 489
5,527 2,235 4,085
36.64% 63.96% 55.26%
Qwen Bailian Traces [35] to-C 43,058 to-B API 172,800 Thinking 10,812 Coder 43,011
2,530,337 3,830,390 1,735,015 5,202,517
53.2% 94.0% 85.7% 61.0%
1,450 2,550 155 1,095
13,973 54,728 2,357 16,224
59.4% 61.3% 46.2% 66.4%
SemiAnalysis Agentic Trace [30] Claude Code 98,827 5,717,185
16.6%
0.85
14
98.31%
Claude Code
P10–P90
1000
528
100
43.8
26.7
24.8
16.9
13.7
10
3.93
2.14
1
sa
r ve
n
Co
tio
n
t
tic
he
nt Sy
en
Ag
ol To
to
I
-C to
-B
AP
nk
i Th
g
in
r
de
de
Co
de
Co
au
Cl
Figure 2: Per-request FP8 KV cache footprint per GPU rank on DeepSeek-V4-Flash (TP8), derived from trace block counts across the eight workloads, with bars showing the median (P50) and whiskers spanning P10–P90 (log scale).
primary patterns determined by how the shared prefix is formed. Prefix caching [43] reuses KV blocks across requests that share a static prefix, such as a system prompt or few-shot template, so only the uncached suffix requires prefill computation. Multi-turn conversations reuse KV blocks within a user session, where each turn appends a new prompt and model response to the accumulated history of prior turns. Agentic workloads also accumulate state within a session, but append tool invocations, retrieved files, and command outputs on every turn while spawning sub-agents that replay the shared session prefix in parallel. As a result, per-turn context grows by tens of thousands of tokens, and a single session’s KV footprint can reach tens of gigabytes. To accommodate working sets that exceed GPU HBM, existing systems such as Mooncake [24], LMCache [21], and SGLang HiCache [39] organize GPU HBM, host DRAM, and NVMe SSD as a three-level tiered hierarchy (Figure 1(a)). Newly generated KV blocks enter host DRAM first to absorb prefill writes at memory speed, spill incrementally to NVMe SSD under LRU or FIFO eviction when DRAM fills, and return to the GPU either through host DRAM staging buffers or via a direct GPUDirect Storage (GDS) bypass. This hierarchy rests on two premises. First, recency-based temporal filtering in host DRAM keeps the active working set in memory so NVMe SSD serves only cold misses off the critical path. Second, eviction-driven offloading and host-staged or direct restoration sustain high read throughput whenever SSD hits occur.
2.2
Qwen Bailian
Across the seven prefix-caching and conversation traces, 53.2– 94.0% of blocks are accessed only once, peaking at 94.0% in Qwen to-B API and 78.5% in Mooncake ToolAgent. While the top 10% of blocks account for 34–65% of all accesses, reuse distances exhibit heavy tails, reaching a mean of 2,550 intervening requests and a P99 of 54,728 in Qwen to-B API (489 and 4,085 in Mooncake ToolAgent). When every newly generated block is admitted into host DRAM first, one-shot blocks continually flush reusable session prefixes to SSD before their next turn arrives. Replacing the DRAM eviction policy yields little benefit, as LRU, FIFO, and queue-enhanced policies all achieve DRAM hit rates near 20% even when the fast tier holds 40.1% of total blocks in multi-turn serving [11]. The agentic coding trace (Claude Code) exhibits the opposite reuse pattern but reaches the same storage outcome. Because each turn extends and replays the session prefix and sub-agent fan-out reuses prefixes almost immediately (mean reuse distance of 0.85 requests, P99 of 14), only 16.6% of blocks are one-shot and the infinite-capacity hit rate reaches 98.31%. However, each request spans an average of 3,421 blocks (218,922 tokens), compared with 23 blocks in Mooncake Conversation. On DeepSeek-V4-Flash under FP8 and TP8 (Figure 2), the median Claude Code request carries a KV footprint of 528 MiB per GPU rank (4.1 GiB across all eight ranks), 12.1× the largest median among the Mooncake and Qwen traces (43.8 MiB per rank), while the P90 reaches 2,043 MiB per rank (16.0 GiB total). Across concurrent multi-turn sessions, the active working set rapidly exceeds host DRAM capacity. Thus, whether reuse is sparse with long reuse distances or dense across multi-gigabyte contexts, NVMe SSD must serve the bulk of cache hits, so funneling all writes through DRAM adds migration without keeping hits in memory. Observation 2: DRAM staging and eviction-ordered layout bottleneck SSD restoration. With SSD on the critical read path, end-to-end prefill latency is governed by the restoration pipeline. Across low to high load, prefill compute stays constant at 2.0 s while non-compute restoration overhead (CPU control, queueing, SSD I/O, and H2D copies) grows to 10.3 s, or 84% of Mooncake’s 12.3 s high-load TTFT (Figure 3). Although storage I/O accounts for 51– 98% of TTFT [6], raw NVMe bandwidth is not the primary limit,
Why Tiered Storage Fails on LLM Workloads
We evaluate both premises across eight production traces from Mooncake, Qwen Bailian, and SemiAnalysis. Table 1 also reports the mean and P99 reuse distance across reuse events, defined as the number of intervening requests between consecutive accesses to the same block . Observation 1: Bimodal reuse defeats DRAM temporal filtering and puts SSD on the critical read path. Infinite-capacity hit rates span 36.6% to 98.3% across the eight traces, yet the workloads split into two reuse regimes that both defeat recency-based DRAM caching. Because an LRU or FIFO tier admits every newly generated block into DRAM, it retains a reused block only if all distinct blocks written across the intervening requests fit within DRAM capacity. 3
Xin Huang, Teng Ma, Zhuoran Li, Yibo Zhao, Zhaoshi Li, Qianchao Zhu, Wei Yang, Chenxi Wang, Tao Xie, and Youwei Zhuo
CPU ctrl
Queueing
SSD I/O
H2D / copy
H2D copy time from 0.8 s to 0.1 s (Figure 3). Yet Tutti spends longer in SSD I/O than Mooncake at high load (3.6 s vs. 3.0 s) and still incurs a 9.0 s TTFT. Omitting host DRAM forces every cache hit, including compact shared prefixes, onto slower NVMe SSD, while reading whole page objects that pack all transformer layers together (pagemajor layout) serializes SSD transfers before layer computation can begin. Takeaway. Existing designs face these trade-offs because generalpurpose tiering assumes mutable pages whose future reuse and spatial grouping are unknown when written, and therefore relies on DRAM migration and staging to manage locality. In contrast, LLM KV cache blocks are write-once, immutable, and reused together as a shared prompt or session prefix. Because blocks are never modified in place and both prefix sharing and write size are observable at creation time, write-time placement can keep compact shared prefixes in host DRAM and write large session histories sequentially to NVMe SSD in layer-major order, where each layer’s blocks occupy a contiguous on-disk range. Managing DRAM and SSD as peer media thus eliminates migratory DRAM filtering along with host staging and reassembly.
12.3
12
TTFT (s)
Compute
9
9
7.3
6
5.9
5
4.4
3 0
e ak
nc
o Mo
4.95
3.15
3.7
e tti ke ak Tu ca tC on o Fla M
e tti ke ak Tu ca tC on o Fla M
Low load
Medium load
e tti ak Tu tC Fla
High load
Figure 3: Measured TTFT breakdown of Mooncake, Tutti, and FlatCake under low, medium, and high load. Each bar separates TTFT into CPU control, queueing, SSD I/O, H2D/copy, and compute time, with the total TTFT (in seconds) shown above the bar. Results are measured using DeepSeek-V4Flash (TP4) on 4×B200 GPUs, replaying requests from the Claude Code trace, whose requests average 219K input tokens, at 0.3, 0.41, and 0.6 QPS.
3 The FlatCake Design 3.1 System Overview
since KV offloading achieves only 2.0 GiB/s even when the SSD is emulated in DRAM at 16.9 GiB/s [28]. Instead, existing SSD restore paths bottleneck on host staging contention, eviction-scrambled disk layout, or serialized SSD-only transfers. First, staging SSD restores through host DRAM creates a concurrency bottleneck. In a host-staged hierarchy (Figure 1(a)), restoring an SSD-resident prefix copies KV blocks from SSD into host staging buffers before transferring them layer by layer to GPU HBM, while background promotion separately populates the DRAM cache. Even when chunked pipelining overlaps the SSD → DRAM and DRAM → GPU hops to bound single-request transfer time near max(𝑇SSD→DRAM,𝑇DRAM→GPU ), the inference engine must hold host staging buffers for each in-flight prefix until H2D transfers complete. Staging memory demand therefore scales as 𝑂 (context × concurrency). Under concurrent load, competing writes and restores exhaust the bounded staging pool, which delays or aborts prefetches and forces recomputation of KV blocks already stored on SSD, as §5.2 shows. As a result, Mooncake’s queueing delay in Figure 3 rises from 0.2 s at low load to 5.0 s at high load, or 41% of its TTFT. Second, bypassing host DRAM via batched GDS [3, 4, 18, 21, 26, 27] within a tiered hierarchy (Figure 1(a), as in MooncakeGDS) avoids host staging contention, but still reads an evictionscrambled on-disk layout. Tiered systems write blocks to SSD in DRAM eviction order across shared fixed-size FIFO buckets, which scatters each session’s prefix across non-contiguous SSD offsets. Because each NVMe read command requires a contiguous LBA range on disk, restoring a scattered prefix issues 𝑂 (layers × blocks) small reads, consistent with a 3.3× increase in SSD bandwidth yielding only a 1.33× throughput gain [11]. Meanwhile, coarse FIFO bucket recycling evicts blocks from multiple sessions together and invalidates active prefixes across sessions. Finally, SSD-direct storage (Tutti [25], Figure 1(b)) eliminates both cross-tier migration and host staging, which cuts high-load
FlatCake exposes host DRAM and NVMe SSD as peer storage media behind a unified 64-bit Global Virtual Address (GVA) space (Figure 4). In a traditional tiered hierarchy, the intermediate DRAM layer implicitly handles three tasks: selecting what spills to SSD via eviction, hiding SSD latency via pre-staging, and reassembling scattered SSD blocks in host buffers. Eliminating this intermediate layer removes cross-tier migration and staging contention, but requires FlatCake to answer three design questions along the request lifecycle: Q1: How to bind blocks to peer media at creation time with 𝑂 (1) routing?. On the write path, FlatCake’s Global Virtual Address Manager (FC-GVA, ❶, §3.2) assigns each newly generated KV block directly to DRAM or SSD once at creation time and encodes its medium, node, and byte offset in an immutable 64-bit GVA. On the read path, FC-GVA resolves block keys to GVAs in 𝑂 (1) time without tier-by-tier lookup, while unreferenced scopes are reclaimed in place without writeback. Q2: How to schedule requests across heterogeneous media latencies without DRAM pre-staging?. On the read control path, FlatCake’s Medium-Aware Request Scheduler (FC-MAS, ❷, §3.3) inspects the media bits in each GVA to separate fast DRAMready requests from long-latency SSD-preparing requests. DRAMonly hits enter an arrival-ordered ready queue directly. Requests referencing SSD blocks prefetch asynchronously under a size-aware priority and then join the same ready queue ordered by their original arrival timestamps, so neither medium blocks or starves the other. Q3: How to coalesce and stream SSD reads directly into a bounded GPU window?. On the read data path, FlatCake’s Coalescing Direct I/O Engine (FC-CIO, ❸, §3.4) co-designs writetime layer-major scope layout with read-time sort-merge coalescing to turn block-level prefix requests into sequential GPUDirect Storage (GDS) transfers. It streams each layer extent directly into a 4
A Flat KV Cache Storage Architecture for LLM Serving
(a) Request control path
(b) Request data path
KV requests
SSD read requests
key → 64-bit address write once, no migration
medium-aware scheduling
DRAM-ready orig_arrival_ts
submit
NVMe SSD
cudaMemcpyAsync (H2D)
SSD-preparing size + wait
Ready Queue orig_arrival_ts
SSD I/O coalescing
Host DRAM (pinned)
FC-MAS
2
FC-CIO
3
FC-GVA
1
done
Table 2: FC-GVA write-time placement rules. SSD rules take precedence once session context reaches 𝐿agent or host DRAM is full.
GDS
Target (MediaType)
Prefix refcount > 1 Uncached tokens < 𝜏 Session context ≥ 𝐿agent Uncached tokens ≥ 𝜏 or DRAM full
DRAM (0) DRAM (0) SSD (1) SSD (1)
GPU HBM
KV
KV
scatter KV
and repeated reuse across requests or turns, keeping them in host DRAM preserves sub-millisecond access across long inter-request intervals without letting large one-shot writes flush them to disk. SSD-bound writes (MediaType=1) cover long writes adding at least 𝜏 uncached tokens, long-context or agentic sessions once accumulated session context reaches 𝐿agent , and capacity spills when host DRAM is full. We set 𝜏 = 8K and 𝐿agent = 64K tokens; when both rules apply, 𝐿agent takes precedence. Blocks placed in DRAM are never migrated or demoted to SSD. When host DRAM fills, new writes spill directly to SSD without generating DRAM-to-SSD eviction traffic, while unreferenced scopes in either medium can be reclaimed in place without writeback. Across turns of a multi-turn or agentic session, FC-GVA evaluates placement per turn while keeping SSD blocks grouped by session. If a session begins with a short DRAM-placed prompt and later appends a long turn (≥ 𝜏 uncached tokens) or reaches 𝐿agent , FCGVA directs the new turn’s blocks to the session’s SSD GPU File, forming a hybrid DRAM–SSD prefix handled by FC-MAS. All SSDbound turns of that session append contiguously to the same GPU File. Across nodes, a coordinator tracks aggregate DRAM and SSD capacity and assigns GVAs on writes. Because reads dominate KV traffic, capacity coordination stays off the critical read path. Unified 64-Bit Addressing and Routing. Because a block never migrates after creation, its physical location remains invariant throughout its lifetime and can be encoded directly in its address handle. FC-GVA translates each block key to a self-routing 64-bit address without tier-by-tier lookup (Figure 4(a)). At Level 1, a DRAMresident hash table maps each block key (session ID, layer, and token range) to an immutable 64-bit GVA in a single 𝑂 (1) lookup. To prevent read-after-write hazards without locking readers, FCGVA allocates a block’s GVA before asynchronous write submission but publishes the key-to-GVA entry into the Level 1 index only after the DMA or GDS write callback completes. At Level 2, the 64-bit GVA encodes three fixed bit fields: MediaType [63:60] (4 bits, with 0 for DRAM, 1 for SSD, and reserved values for future media), NodeID [59:48] (12 bits, up to 4,096 nodes), and Offset [47:0] (48-bit byte offset, up to 256 TiB per node). Extracting MediaType and NodeID via register-level bit masks routes each access directly to its transport backend without pertier page tables or lock-protected LRU chains: local DRAM via cudaMemcpyAsync, remote DRAM via RDMA, local SSD via GDS cuFile, and remote SSD via an owner-side SSD read followed by an RDMA transfer. Placing MediaType in the most significant bits also partitions DRAM and SSD addresses into disjoint numeric ranges (GVA < 260 for DRAM vs. GVA ≥ 260 for SSD), so FC-MAS can classify a request’s medium with a single integer comparison.
KV
Requests / completion
Figure 4: FlatCake architecture. (a) Control path: FC-GVA maps block keys to 64-bit GVAs with write-once placement (❶), and FC-MAS separates DRAM-ready and SSDpreparing paths into an arrival-ordered ready queue (❷). (b) Data path: DRAM hits use cudaMemcpyAsync, while FCCIO streams coalesced KV data from SSD layer by layer via GDS (❸) into an aligned GPU staging window. bounded GPU HBM window overlapped with layer-wise computation.
3.2
Write-Time Signal
Shared prompt Short write Agentic / Long Long write / Spill
Aligned GPU Staging
Dispatch to GPU KV data
Placement Case
FC-GVA: Global Virtual Address Manager
In a tiered hierarchy, the storage layer does not decide a block’s longterm home at write time because every block enters host DRAM first and LRU eviction later pushes cold blocks to SSD. However, as Observations 1 and 2 showed, this reactive path pollutes DRAM with one-shot blocks and scatters session prefixes on disk. Eliminating cross-tier migration therefore raises Q1: Without reactive LRU eviction, how can FlatCake permanently bind KV blocks to DRAM or SSD at creation time and route accesses in 𝑂 (1) time? FC-GVA answers this question by exploiting two properties of LLM KV serving. First, a request’s sharing and size signals are observable upon arrival, before its KV blocks are written, including whether its prefix is already shared, how many uncached tokens the turn adds, and how large the session context has grown. Second, flat peer storage bounds the cost of misplacement. Because both media are directly accessible and SSD scopes are laid out contiguously on disk, placing a reusable block on SSD causes neither a cache miss nor cross-tier migration, and instead serves later hits sequentially via GDS at SSD bandwidth rather than DRAM bandwidth. Write-Once Scope-Direct Placement. Rather than funneling all writes through DRAM, FC-GVA assigns newly generated KV blocks directly to DRAM or SSD at creation time using observable engine signals (Table 2). Placement splits writes into two media classes matching the bimodal reuse regimes in Observation 1. DRAM-bound writes (MediaType=0) cover globally shared system prompts (radix-tree prefix reference count > 1) and short writes adding fewer than 𝜏 uncached tokens [11], including compact initial turns that serve as the shared base prefix reread by subsequent turns of a session. Because these prefixes have small memory footprints 5
Xin Huang, Teng Ma, Zhuoran Li, Yibo Zhao, Zhaoshi Li, Qianchao Zhu, Wei Yang, Chenxi Wang, Tao Xie, and Youwei Zhuo
Zero-Writeback Scope Reclamation. Write-once scope placement also simplifies storage reclamation. Because KV blocks are never modified in place, freeing unreferenced scopes on either medium requires zero dirty-block writeback. On SSD, FC-GVA tracks active readers per session scope with an atomic reference count. When SSD utilization crosses a high watermark, FlatCake reclaims the oldest unreferenced session extents by returning their pre-allocated GPU Files to the free pool in 𝑂 (1) metadata operations. In contrast, tiered systems such as Mooncake allocate SSD pages incrementally across fixed-size buckets and recycle buckets in FIFO order, so evicting a single bucket slices across 𝑘 distinct sessions. If affected session 𝑖 has re-access probability 𝑝𝑖 , a bucket eviction invalidates at least one active session prefix with probability Î 1 − 𝑘𝑖=1 (1 − 𝑝𝑖 ), which approaches certainty as 𝑘 grows and forces recomputation whenever an invalidated prefix is requested again. Reclaiming whole session extents eliminates cross-session prefix invalidation and preserves the contiguous on-disk layout required by FC-CIO.
3.3
orders pending prefetches using a size-aware highest-responseratio-next (HRRN) [5] priority that substitutes SSD KV transfer volume for service time: wait_time𝑖 (1) Priority𝑖 = 1 + KV_size𝑖 Smaller SSD restores receive higher initial priority to reduce mean queuing delay, whereas linear aging via wait_time𝑖 guarantees eventual prefetch dispatch for multi-gigabyte restores. Second, once FC-CIO completes a request’s SSD prefetch, its KV blocks are resident in GPU HBM. Rather than appending the request to the tail of the Ready Queue, FC-MAS inserts it ordered by its original arrival timestamp (orig_arrival_ts, Figure 4(a)). Because the time spent in SSD prefetching already counts toward its timestamp seniority, the completed SSD request queues ahead of DRAM-ready requests that arrived during its prefetch, so DRAM bursts cannot starve SSD-backed sessions.
3.4
FC-CIO: Coalescing Direct I/O Engine
Removing host DRAM staging eliminates host memory contention, but also removes the host buffer that previously reassembled scattered SSD reads. This raises Q3: Without host DRAM buffers, how can FlatCake turn block-level prefix requests into sequential NVMe transfers and stream them into a bounded GPU HBM budget? Because NVMe DMA requires a contiguous source LBA range to coalesce a transfer (Observation 2), FC-CIO co-designs write-time disk layout, read-time descriptor merging, and layer-pipelined GPU streaming (Figures 5 and 6). Write-Time Layer-Major Scope Layout. During prefill, transformer layer 𝑙 consumes all cached prefix tokens for layer 𝑙 before execution advances to layer 𝑙+1. Page-major SSD layouts mismatch this consumption order under direct I/O. When tiered storage packs all-layer page objects from concurrent sessions into shared eviction buckets (Figure 5(a)), whole-page reads preserve large I/O sizes but stall layer 0 computation until the final page object arrives (Figure 6(a)). Per-layer range reads into those page objects restore compute overlap, but split each restore into 𝑂 (layers×blocks) small, non-coalescible reads across scattered offsets (Figure 6(b)). FC-CIO resolves both halves of this dilemma by mapping each SSD-bound session scope to a dedicated GPU File backed by a pre-allocated, single-extent file in an NVMe file pool (Figure 5(b)). Within a session’s GPU File, each SSD-bound turn appends a layer-major segment in which all token blocks of layer 𝑙 occupy one physically contiguous byte range before layer 𝑙+1. Restoring a prefix therefore issues 𝑂 (layers) contiguous reads per segment while overlapping layer 𝑙+1 GDS reads with layer 𝑙 computation (Figure 6(c)). Read-Time Sort-Merge Coalescing. Even when blocks are contiguous on disk, the inference engine’s radix tree queries prefixes at page granularity and hands the storage backend hundreds of thousands of block descriptors that may span multiple turns or scopes and arrive out of offset order. To recover contiguous LBA ranges before issuing GDS calls, FC-CIO performs a sort-merge pass at the submission layer (Figure 5(b)). It first sorts block descriptors by (gpu_file_id, offset) to place physically adjacent blocks next to one another, and then scans linearly to coalesce adjacent ranges into single large read descriptors. When partial prefix hits or sub-block alignments leave small unrequested gaps between
FC-MAS: Medium-Aware Request Scheduler
Tiered systems hide SSD latency from the inference scheduler by pre-staging every SSD hit into host DRAM before admission, which causes the 𝑂 (context×concurrency) host memory contention identified in Observation 2. Removing host DRAM pre-staging eliminates this memory bottleneck, but exposes a 2.4–2.5× bandwidth gap between local DRAM and NVMe SSD directly to the request scheduler (Table 3). This raises Q2: How can FlatCake prevent slow SSD restores from stalling fast DRAM hits without starving longcontext SSD sessions? Scheduling directly across peer media creates a two-sided dilemma. In a shared FCFS queue, a multi-gigabyte SSD restore blocks subsequent DRAM-ready requests that need only a submillisecond cudaMemcpyAsync. Conversely, strict DRAM-first priority scheduling can starve large SSD-backed agentic sessions under continuous DRAM arrivals. FC-MAS resolves both hazards through dual-queue separation, size-aware SSD prefetching, and arrivalordered re-admission into a unified ready queue. Dual-Queue Separation. When a request first arrives, FC-MAS records its original request-arrival timestamp (orig_arrival_ts), resolves its prefix block GVAs, and classifies the request by its slowest required medium (Figure 4(a)). Requests whose cached blocks reside entirely in DRAM (max 𝑗 GVA 𝑗 < 260 ) take the DRAM-ready path directly into the unified Ready Queue ordered by orig_arrival_ts, from which requests are dispatched to the GPU. Requests that reference any SSD-resident blocks (max 𝑗 GVA 𝑗 ≥ 260 ) enter the SSDPreparing Queue instead, including hybrid requests that combine a DRAM-placed prompt prefix with SSD-resident session turns. For each preparing request, FC-MAS pins any DRAM-resident prefix blocks in place while FC-CIO asynchronously prefetches the SSDresident blocks into GPU HBM, so SSD I/O overlaps with GPU execution on requests dispatched from the Ready Queue. Size-Aware Prefetching and Arrival-Ordered Re-Admission. FC-MAS enforces fairness both within the SSD-Preparing Queue and across media at the Ready Queue. First, to prevent large agentic restores from delaying smaller SSD requests on the NVMe array without starving long-context sessions, the SSD-Preparing Queue 6
A Flat KV Cache Storage Architecture for LLM Serving
(a) Tiered storage: SSD layout
(b) FlatCake (ours): SSD layout
(a) Page-major, whole-page reads
Bucket 0
GPU File: Session A
SSD read L0 L1 L2 L0 L1 L2 L0 L1 L2 all layers ready
L0
A: P0 L1
L2
L0
B: P1 L1
L2
L0
A: P2 L1
L2
Bucket 1
Segment 0 (turn 0) L0 L1 L2 P0 P1 P0 P1 P0 P1
B: P0 L1
L2
L0
A: P1 L1
L2
L0
B: P2 L1
L2
Restore A: page-major reads
A: P2 all layers
Session A
A: P1 all layers
Segment 1 (turn 1) L0 L1 L2 P2 P2 P2
L0
L1
✓ Large I/Os ✗ Overlap L2
(b) Page-major, per-layer reads L0
L1
L2
✗ Large I/Os ✓ Overlap
SSD read P0 P1 P2 P0 P1 P2 P0 P1 P2 Compute
Segment 0 (turn 0) L0 L1 L2 P0 P1 P0 P1 P0 P1
L0
L1
L2 time
(c) Layer-major, per-layer reads (FlatCake)
Segment 1 (turn 1) L0 L1 L2 P2 P2 P2
L0
L1
L2
✓ Large I/Os ✓ Overlap
SSD read P0 P1 P2 P0 P1 P2 P0 P1 P2 Compute
L0
L1
L2 time
Sort by (file, offset), then coalesce L0: P0, P1 segment 0
P2
time
Restore A: layer-major reads (L0 first)
Per-key lookup: key → (bucket, offset)
P1
Compute
GPU File: Session B
L0
A: P0 all layers
P0
One I/O
L0: P2 segment 1
Compute
P: token page L: model layer
Figure 6: Read granularity versus read/compute overlap for the same KV bytes (3 pages × 3 layers). (a) Page-major whole-page reads issue large I/Os, but every page object carries all layers, so computation waits for the last object. (b) Page-major per-layer range reads overlap computation, but issue one small, non-coalescible I/O per page per layer. (c) FlatCake’s layer-major layout issues one contiguous I/O per layer and reads layer 𝑙+1 while computing layer 𝑙.
Session B P: token page L: model layer
Figure 5: SSD layout and restore reads for the same KV data of two sessions. (a) Tiered storage packs all-layer page objects from different sessions into shared buckets, so restoring session A looks up and reads each page object separately (page-major). (b) FlatCake assigns each session its own GPU File where each turn appends a layer-major segment. Restoring session A sorts and coalesces block descriptors into one contiguous range per layer per segment, starting with layer 0 (layer-major).
4
Implementation
We implement FlatCake in approximately 14K lines of C++20/CUDA and 7K lines of Python, integrating it into SGLang [43] behind the standard HiCacheStorage interface (exists, get, put) without modifying model runner or attention kernels. Pinned DRAM pool and hugepage allocation. At engine initialization, the local DRAM backend pre-allocates the host KV pool using mmap with MAP_POPULATE and 2 MB hugepages (MAP_HUGETLB), and registers the arena once with cudaHostRegister. Pre-faulting and pinning hugepages at startup eliminates page-fault traps, TLB thrashing, and per-transfer pinning overhead on the cudaMemcpyAsync path. Pre-allocated NVMe file pool and GDS alignment. To prevent filesystem metadata allocation and extent fragmentation on the write path, FC-CIO pre-allocates a pool of fixed-size single-extent files on the XFS/RAID-0 array at startup using fallocate and opens each file with O_DIRECT and cuFileHandleRegister. All logical block offsets within a GPU File and all GPU staging buffer slices are aligned to 4 KiB boundaries, satisfying libcufile DMA alignment requirements and preventing driver-internal bounce buffering. Double-buffered GPU staging and page scatter. Because calling cuFileBufRegister dynamically on per-request GPU buffers incurs millisecond-scale BAR1 and IOMMU mapping overhead, FCCIO allocates and registers a fixed per-GPU HBM staging window once at initialization. Restores pipeline GDS reads across two pingpong layer buffers within this registered window; as soon as a
adjacent ranges, FC-CIO bridges gaps smaller than a configurable byte threshold (Δgap = 64 KiB), which trades a bounded amount of extra sequential I/O to avoid splitting NVMe commands. Merged descriptors are striped round-robin across worker threads, and each thread submits batches via a private cuFileHandle, CUDA stream, and cuFileBatchIOSubmit. Layer-Pipelined Direct GPU Streaming. Because SGLang’s paged KV cache allocates 256-token HBM pages non-contiguously, issuing direct GDS reads into individual KV page slots would split each layer extent back into per-page DMA transfers. Conversely, staging an entire multi-gigabyte prefix in host DRAM causes 𝑂 (context × concurrency) memory contention. FC-CIO avoids both pitfalls by streaming coalesced layer extents via GDS into a double-buffered GPU HBM staging window (sized to two transformer layers per active stream) before scattering blocks into paged HBM KV slots on the GPU (Figure 4(b)). While the compute stream executes attention and FFN kernels for layer 𝑙, the I/O stream asynchronously executes cuFileBatchIOSubmit and a GPU scatter kernel for layer 𝑙+1 (Figure 6(c)). This pipeline bounds staging memory to a constant 𝑂 (1) HBM window per GPU. When concurrent restores saturate the window under heavy load, incoming prefetches wait on CUDA stream events rather than revoking inflight prefetches and recomputing cached tokens. 7
Xin Huang, Teng Ma, Zhuoran Li, Yibo Zhao, Zhaoshi Li, Qianchao Zhu, Wei Yang, Chenxi Wang, Tao Xie, and Youwei Zhuo
Table 3: Hardware and measured GPU-path bandwidth.
20
1.89×
50 20
5 6 7 8 9 10 10 .5 11 11 .5 12
0.5
150 1.22× 100
(c) Mooncake Conversation
10
200
5 2
1.5
TTFT (s)
1.42×
Request rate (QPS)
Evaluation
5 6 7 8 9 10 10 .5 11 11 .5 12
1
0.2 0.3 0.3 3 0.3 6 0.3 9 0.4 2 0.4 5 0.4 8 0.5 4 0.6
(b) Qwen Bailian Coder
3 2
We evaluate FlatCake across a 284B-parameter hybrid MoE model on NVIDIA B200 GPUs and a 70B-parameter GQA model on NVIDIA A100 GPUs to answer three questions. (E1) Does replacing tiered DRAM staging with flat peer storage prevent cache hit-rate collapse under load, and how does this affect TTFT, TPOT, and total token throughput across different reuse regimes (§5.2)? (E2) How does FC-GVA distribute delivered hits across GPU HBM, host DRAM, and NVMe SSD while reducing SSD write traffic, how does FC-CIO improve SSD read bandwidth and read amplification, and how does FC-MAS coordinate mixed-medium reuse (§5.3)? (E3) Do FlatCake’s layout and streaming gains hold on standard groupedquery attention across context lengths up to 128K tokens, and can direct GDS transport alone match flat layer-major storage (§5.4)?
5.1
50
2
coalesced layer read completes on the I/O CUDA stream, a lightweight CUDA scatter kernel copies each 256-token page from the contiguous staging buffer into its non-contiguous destination slot in SGLang’s paged KV pool, synchronizing with the model compute stream via cudaEventRecord and cudaStreamWaitEvent. Lock-free Level-1 GVA index. The Level 1 block-key-to-GVA index is implemented as a concurrent open-addressed hash table using 64-bit atomic compare-and-swap (CAS) operations. Because GVAs are immutable once published and session reclamation frees entire scopes asynchronously, scheduler threads querying prefix hits execute wait-free reads without contending with background write-completion workers.
5
5
1.32×
100 50 20
2 2.5 3 3.2 5 3.5 3.7 5 4 4.2 5 4.5
32–34 21.3 28–30 7.8
10
150 2.65× 100
1.5
46–48 19.3 31–33 6.3
TPOT (ms)
cudaMemcpyAsync cuFile (GDS) GPUDirect RDMA owner read + RDMA
Write (GiB/s)
2.42×
TPOT (ms)
Local DRAM Local SSD Remote DRAM Remote SSD
Read (GiB/s)
Tutti FlatCake
(a) Claude Code
TPOT (ms)
Mechanism
Mooncake Mooncake-GDS
0.2 0.3 0.3 3 0.3 6 0.3 9 0.4 2 0.4 5 0.4 8 0.5 4 0.6
GPU path
30 20
2 2.5 3 3.2 5 3.5 3.7 5 4 4.2 5 4.5
8 × NVIDIA B200, 180 GB HBM3e each NVLink via NVSwitch (18 links/GPU), PCIe Gen5 2 × Xeon Platinum 8570 (112 cores, 4 NUMA nodes) 3 TB 8 × 3.84 TB Samsung PM9A3, RAID 0
TTFT (s)
Configuration
GPU Interconnect CPU Host DRAM NVMe SSD
TTFT (s)
Component
HBM-only +L2 Host DRAM
Request rate (QPS)
Figure 7: Mean TTFT (left) and TPOT (right) across request rates on (a) Claude Code, (b) Qwen Bailian Coder, and (c) Mooncake Conversation (log scale, clipped). Brackets show FlatCake’s speedup over Tutti at 0.39, 10.5, and 4.25 QPS.
traces from Table 1 that span both reuse regimes identified in Observation 1, covering multi-gigabyte agentic coding (claudecode-weka-0621 [30]) as well as code generation (Qwen Bailian Coder [35]) and multi-turn conversation (Mooncake Conversation [24]) with high once-access ratios and long reuse distances. Requests are replayed in recorded arrival order without cache warmup at 0.2–0.6 QPS (Claude Code), 5–12 QPS (Qwen Bailian), and 1.5– 4.5 QPS (Mooncake), following the SGLang HiCache benchmark methodology [39]. To evaluate generality across model architectures and context lengths, we also serve Llama-3.1-70B (dense GQA, TP4) with input lengths from 8K to 128K tokens (§5.4). Baselines and metrics. We compare FlatCake against five baselines on the same inference engine, hardware, and storage capacity budgets. HBM-only uses SGLang’s native GPU HBM KV cache without external storage, and +L2 Host DRAM [39] adds SGLang HiCache’s two-tier HBM–DRAM LRU cache without SSD offloading. Among the SSD-backed baselines, +L3 Mooncake [24] implements a three-tier HBM–DRAM–SSD hierarchy that stages SSD-resident blocks through host DRAM before H2D transfer and promotes them into DRAM, +L3 Mooncake-GDS replaces host-staged SSD reads in Mooncake with direct GDS transfers while retaining its migratory DRAM tier, and Tutti [25] transfers KV blocks directly
Experimental Setup
Testbed. Our primary evaluation runs on 4 GPUs of an 8-GPU NVIDIA B200 server with 3 TB of host DRAM and an 8-drive Samsung PM9A3 NVMe SSD RAID 0 array (Table 3). Systems with external KV caching share a capacity budget of up to 512 GiB host DRAM and 2 TiB NVMe SSD, each using only the media its architecture supports. We build on SGLang v0.5.19, Mooncake v0.3.13, CUDA 13.1, and NVIDIA GPUDirect Storage (GDS) 1.16.1 (libcufile). The cross-model scaling experiments in §5.4 run on 4 GPUs of an 8-GPU NVIDIA A100 server. Model and workload. We serve DeepSeek-V4-Flash-0731 [7] with TP4, a 284B-parameter MoE model with 43 hybrid multi-head latent attention (MLA) layers and a 1M-token context window. The model uses an fp8_e4m3 KV cache with 256-token pages and a per-rank footprint of 7.5 KiB/token. We replay three production KV cache 8
A Flat KV Cache Storage Architecture for LLM Serving
Mooncake Mooncake-GDS
Tutti FlatCake
100
91.6%
75
71.1%
HBM-only +L2 Host DRAM
50 25 0
8.6%
0.2
0.3 0.33 0.36 0.39 0.42 0.45 0.48 0.54 0.6
Request rate (QPS)
Tutti FlatCake
2.16×
125
1.56×
100 75 50 25 0
Figure 8: Delivered cache hit rate on Claude Code.
0.2
0.3
0.33 0.36 0.39 0.42 0.45 0.48 0.54
0.6
Request rate (QPS)
Figure 9: Total token throughput on Claude Code. Brackets show FlatCake’s speedup over Tutti at 0.42 QPS (past Tutti’s knee) and 0.6 QPS (maximum).
between GPU HBM and NVMe SSD via GPU-executed I/O queues while bypassing host DRAM.
5.2
Mooncake Mooncake-GDS
150
Total throughput (103 tokens/s)
Cache hit rate (%)
HBM-only +L2 Host DRAM
Overall Performance
To answer E1, Figures 7–9 evaluate end-to-end serving latency, delivered cache hit rate, and token throughput as request load scales across the three production traces. Time to First Token. FlatCake matches the fastest baseline at low load and reduces mean TTFT near the baselines’ latency knees by 1.40×–2.42× over the fastest baseline (1.42×–2.42× over Tutti, Figure 7, left). On the multi-gigabyte agentic workload (Claude Code, Figure 7(a)), all systems achieve similar TTFT at 0.2 QPS (2.70 s for FlatCake vs. 2.76 s for the fastest baseline) when active sessions fit in GPU HBM. As concurrency rises, multi-gigabyte session histories overflow HBM and the 512 GiB DRAM tier, causing HBM-only and +L2 Host DRAM to hit their latency knees first at 0.36 QPS (437.5 s). The SSD-backed baselines (Mooncake, Mooncake-GDS, and Tutti) hit their knees next at 0.39 QPS, where the fastest baseline (Tutti) reaches 11.60 s while FlatCake maintains 4.79 s (2.42× lower). On Qwen Bailian Coder and Mooncake Conversation (Figures 7(b)– (c)), where 61.0–75.8% of blocks are one-shot and reusable prefixes span hundreds of intervening requests (Table 1), FlatCake still delays the latency knee by avoiding one-shot DRAM migration and fragmented SSD reads. At 10.5 QPS on Qwen Bailian Coder, FlatCake achieves a 0.544 s mean TTFT, which is 1.76× lower than the fastest baseline (Mooncake at 0.956 s) and 1.89× lower than Tutti. At 4.25 QPS on Mooncake Conversation, FlatCake achieves 6.97 s, outperforming Mooncake-GDS (9.753 s) by 1.40× and Tutti by 1.42×. Why the Baselines Degrade: Delivered Cache Hit Rate Across Regimes. Comparing delivered cache hit rates across the two workload regimes explains why the baselines hit an early latency wall. On Claude Code, FlatCake sustains a 91.6% delivered hit rate from 0.2 to 0.6 QPS, whereas Mooncake, Mooncake-GDS, and Tutti drop to 71.1%, and HBM-only and +L2 Host DRAM fall to 8.6% (Figure 8). In Mooncake, concurrent multi-gigabyte restores contend for bounded host DRAM staging buffers (Observation 2), which delays or aborts prefetches and forces the engine to recompute KV blocks already stored on SSD. Although Tutti bypasses host DRAM, its page-major layout cannot overlap SSD reads with layer-wise computation (Figure 6(a)), so concurrent restores still miss their prefill deadlines and fall back to recomputation. Because every missed token must be recomputed on the GPU, this 20.5-point hit-rate loss inflates prefill execution time and compounds queuing delay across
waiting requests. In contrast, on the lighter Qwen Bailian Coder and Mooncake Conversation traces, delivered hit rates remain within 2–3 percentage points up to the latency knees, where FlatCake reaches 60.0% versus 57.3–57.7% for the SSD-backed baselines at 10.5 QPS on Qwen Bailian Coder and 33.5% versus 31.3–31.4% at 4.25 QPS on Mooncake Conversation, widening to at most 9.5 points beyond those rates. Where hit rates barely diverge before saturation, FlatCake’s TTFT reductions come directly from FC-GVA’s writeonce placement and FC-CIO’s sequential layer-major streaming rather than differences in cache retention. Time per Output Token. By preventing fallback recomputation and SSD restore stalls during prefill, FlatCake also keeps elongated prefill batches from delaying interleaved decode iterations under continuous batching (Figure 7, right). Below the latency knee, FlatCake matches the fastest baseline at 17.0 versus 16.9 ms on Claude Code at 0.2 QPS. Near the baselines’ latency knees, FlatCake reduces mean TPOT over the fastest baseline by 2.65× on Claude Code at 0.39 QPS (39.8 vs. 105.4 ms for Tutti), 1.20× on Qwen Bailian Coder at 10.5 QPS (79.9 vs. 95.6 ms for Mooncake, and 1.22× over Tutti), and 1.30× on Mooncake Conversation at 4.25 QPS (134.7 vs. 175.7 ms for Mooncake-GDS, and 1.32× over Tutti), before all systems saturate near 219 ms at 4.5 QPS on Mooncake Conversation. Total Token Throughput. Sustaining a 91.6% delivered hit rate on Claude Code allows FlatCake to scale total token throughput up to 2.16× beyond the SSD-backed baselines (Figure 9). All systems match the offered load up to 0.36 QPS, where HBM-only and +L2 Host DRAM collapse to 28K tokens/s. Past Tutti’s knee at 0.39 QPS, recomputation of missed prefixes caps Mooncake, Mooncake-GDS, and Tutti at 61–68K tokens/s. Because FlatCake streams SSD prefixes into a bounded GPU window without staging aborts or recomputation, it continues scaling to 133.1K tokens/s at 0.54 QPS, achieving 1.56× Tutti’s throughput at 0.42 QPS and 2.16× at 0.6 QPS.
5.3
Mechanism-Level Analysis
To answer E2, we analyze how FC-GVA, FC-CIO, and FC-MAS contribute to FlatCake’s performance through per-medium hit attribution (Figure 10), SSD read/write amplification (Figure 11), peak SSD bandwidth (Figure 12), and mixed-medium scheduling behavior. 9
Xin Huang, Teng Ma, Zhuoran Li, Yibo Zhao, Zhaoshi Li, Qianchao Zhu, Wei Yang, Chenxi Wang, Tao Xie, and Youwei Zhuo
34.4%
29.1%
20.3%
0.42
0.45
0.48
0.54
12.7%
15.1%
22.0%
(b) FlatCake
100 91.6% 75 91.6%
91.0%
89.6%
86.6%
82.6%
79.9%
72.2%
25 0
0.2
0.3
0.33
0.36
0.39
0.42
0.6 91.6%
14.5%
50
9.8%
0.45
68.0%
0.48
55.0%
0.54
27.6% 21.5% 42.5%
1.0
1.5 1.0
0.5
0.0
0.0
0.0
1.5
1.0
1.0
0.5
0.5
0.0
0.0
0.5
1.0 0.5 0.0
0.6
1.0
0.5
Request rate (QPS)
8
42.0%
26.6%
5.8 6.1 5 6.5 6.8 5 7.2
0.39
34.8%
(c) Qwen Coder
2
0.36
23.5%
1.8
0.33
30.0%
1.7
0.3
22.4%
1.6
0.2
24.4%
Request rate (QPS)
Figure 10: Delivered cache hit rate on Claude Code by serving medium for (a) Mooncake and (b) FlatCake.
Figure 11: SSD read amplification (top: KV tokens fetched from SSD per fetched token used) and write amplification (bottom: SSD bytes written, normalized to FlatCake = 1.0×) on (a) Claude Code, (b) Mooncake Conversation, and (c) Qwen Bailian Coder; lower is better.
FC-GVA: Per-medium hit retention and recovery. FC-GVA’s flat peer placement and FC-CIO’s direct restoration preserve GPU HBM locality under load while recovering all evicted HBM hits across host DRAM and NVMe SSD (Figure 10). At 0.2 QPS on Claude Code, both FlatCake and Mooncake achieve a 91.6% hit rate entirely from GPU HBM. As arrival rate increases to 0.6 QPS, Mooncake’s HBM hit contribution drops to 9.8%, whereas FlatCake still serves 42.5% of prompt tokens directly from HBM under the same HBM capacity. Because Claude Code exhibits immediate turn-to-turn reuse (mean reuse distance of 0.85 requests, Table 1), completing requests 2.42× faster in FlatCake allows active sessions to issue their next turn while their prefix remains resident in HBM, whereas stalled restores and recomputation in Mooncake accumulate in-flight requests that thrash HBM. For the 49.1 percentage points of hits that do spill out of HBM at 0.6 QPS, FlatCake recovers the entire difference through host DRAM (21.5%) and NVMe SSD (27.6%) to maintain a 91.6% delivered hit rate. In contrast, Mooncake recovers only 61.4 of its 81.8 lost HBM points across DRAM (26.6%) and SSD (34.8%) because host staging contention revokes or truncates in-flight restores under concurrency. FC-GVA: Write-once placement and SSD write reduction. By binding each block to DRAM or SSD once at creation time, FCGVA eliminates DRAM-to-SSD eviction traffic and reduces total SSD bytes written across all three traces (Figure 11, bottom row). Using FlatCake’s measured SSD write volume at each trace and request rate as the 1.0× reference (with no SSD capacity reclamation triggered), Mooncake writes 1.44×–1.55× as much SSD data on Claude Code, 1.10×–1.14× on Mooncake Conversation, and 1.08×– 1.10× on Qwen Bailian Coder because one-shot and short-lived blocks enter DRAM first and later spill to SSD. Tutti avoids crosstier migration by bypassing host DRAM, yet it still writes 1.18× as much data to SSD on Mooncake Conversation and 1.12×–1.16× on Qwen Bailian Coder because it sends every KV write to NVMe SSD, whereas FC-GVA absorbs shared prompts and short writes in host DRAM. FC-CIO: Layer-major SSD bandwidth and read amplification. FC-CIO’s session-contiguous, layer-major layout and readtime sort-merge coalescing sustain higher sequential SSD read
Mooncake
Tutti
FlatCake
Read (GB/s)
(a) Mooncake Conversation 20
Write (GB/s)
0
21.1%
FlatCake
(b) Mooncake Conv.
10
0
1.4 1.5 1.6 1.7 1.8
4 2 0
2
1.4 1.5 1.6 1.7 1.8
2
Read (GB/s)
(b) Qwen Bailian Coder Write (GB/s)
25
19.4% 70.1%
Tutti
1.5
2.0
1.5
86.1%
(a) Claude Code 71.1%
1.4
89.6%
21.7%
0.3 0.5 4 0.6 6 0.7 8 0.9
91.0%
17.7%
Read amp.
9.2%
Write amp.
Hit rate contribution (%)
75 91.6%
Mooncake
SSD
(a) Mooncake
100 91.6%
50
Host DRAM
1
GPU HBM
4 2 0
5.8 6.15 6.5 6.85 7.2
Request rate (QPS)
8
3 2 1 0
5.8 6.15 6.5 6.85 7.2
8
Request rate (QPS)
Figure 12: Peak SSD read (left) and write (right) bandwidth on (a) Mooncake Conversation and (b) Qwen Bailian Coder.
bandwidth while eliminating wasted SSD reads from dropped prefetches (Figures 11 and 12). On Mooncake Conversation (Figure 12(a)), FlatCake reaches 14.84–17.92 GB/s peak SSD read bandwidth, achieving 2.10×–3.49× Mooncake and 1.13×–1.29× Tutti at matching request rates because FC-CIO’s layer-major extents coalesce each restore into large sequential transfers, whereas Mooncake stages scattered reads through host buffers and Tutti issues pagemajor reads. On Qwen Bailian Coder (Figure 12(b)), whose shorter 5.7K-token prompts leave fewer blocks to coalesce, FlatCake reaches 3.51–4.57 GB/s, outperforming Mooncake by 1.35×–1.87× while matching Tutti (0.94×–1.22×). Because FlatCake writes only SSD-placed scopes to disk, it also incurs the lowest peak SSD write bandwidth across both traces at 1.83–1.87 GB/s on Mooncake Conversation and 1.61–1.80 GB/s on Qwen Bailian Coder (Figure 12, right). In the top row of Figure 11, read amplification measures KV tokens fetched from SSD per fetched token actually used. Because 10
A Flat KV Cache Storage Architecture for LLM Serving
Recompute-only +L2 Host DRAM
Mooncake Mooncake-GDS
FlatCake
throughput (8.0K vs. 6.4K tokens/s). Thus GDS alone recovers much of the transport cost, but an eviction-scrambled layout still leaves it behind FlatCake at mid-length contexts.
Throughput (tok/s)
TTFT (s)
60
40
20
0
8K
16K
32K
64K
128K
20K
6
15K 10K 5K 0K
8K
16K
32K
64K
Input length
Input length
(a) Mean TTFT
(b) Throughput
128K
Figure 13: Performance on Llama-3.1-70B (TP4 on 4×A100 GPUs) across input context lengths from 8K to 128K tokens: (a) mean TTFT and (b) token throughput. FC-CIO streams coalesced extents directly into a bounded GPU window and waits on CUDA stream events rather than revoking in-flight transfers, FlatCake never discards a fetched block (1.00×). In contrast, Mooncake fetches 1.24×–2.07× as many SSD tokens per used token on Claude Code, 1.02×–1.25× on Mooncake Conversation, and 1.22×–1.41× on Qwen Bailian Coder because host-staged prefetches are dropped when staging contention prevents them from being spliced onto the request prefix in time, while Tutti fetches 1.02× and 1.20×–1.23× on the latter two traces. FC-MAS: Scheduling implications of mixed-medium reuse. Figure 10(b) shows that flat peer storage serves a substantial share of hits from both media simultaneously under load, with host DRAM and NVMe SSD contributing 21.5% and 27.6% of prompt tokens at 0.6 QPS on Claude Code. Combined with the 2.4–2.5× local readbandwidth gap between DRAM and SSD (Table 3), this concurrent mix requires decoupling fast DRAM hits from long-latency SSD restores. As detailed in §3.3, FC-MAS dispatches DRAM-ready requests without waiting behind in-flight SSD restores in the SSDPreparing Queue, orders pending SSD prefetches by transfer size and wait time via Eq. 1, and re-admits completed prefetches using their original arrival timestamp (orig_arrival_ts) so DRAM bursts cannot starve SSD-backed sessions.
5.4
Related Work
Tiered KV Cache Storage and Offloading. Existing LLM serving systems extend HBM capacity by offloading KV blocks to host DRAM and NVMe SSD through a tiered hierarchy [10, 12, 13, 21, 24, 31, 39, 42], building on general-purpose tiered memory designs [1, 2, 8, 14, 16, 29, 32, 33, 36, 38, 40, 41]. Recent studies characterize production KV reuse [35] and improve tiered hierarchies via workload-aware eviction (Bidaw [11]), selective token or layer offloading [6, 17, 19, 45], joint compression and tier placement (AdaptCache [9]), or SSD-aware tier coordination (SolidAttention [44], KVDrive [20]). Despite these optimizations, all of these systems retain a migratory hierarchy in which blocks enter host DRAM first and reach SSD through incremental eviction or demotion. In contrast, FlatCake exploits the write-once, sessionscoped immutability of KV blocks to bind each block directly to DRAM or SSD at creation time (FC-GVA) and never migrate it thereafter. Direct Storage I/O and Request Scheduling. Several systems accelerate the SSD-to-GPU read path using GPUDirect Storage [3, 4, 18, 26, 27], pre-registered GPU buffers with parallel disk workers (LMCache [21]), GPU-initiated io_uring queues (Tutti [25]), or storage-near execution [22, 23]. However, optimizing the transport primitive alone does not resolve on-disk fragmentation: when SSD space is populated in LRU eviction order, a session’s prefix remains scattered across non-contiguous LBAs, preventing NVMe controllers from coalescing reads into single DMA transfers (Observation 2). FlatCake co-designs write-time layer-major scope layout within pre-allocated GPU Files and read-time sort-merge coalescing (FC-CIO) so that standard GDS transfers read sequential perlayer extents. Furthermore, unlike device-level I/O schedulers [37], FC-MAS uses the media identity encoded in each 64-bit GVA to decouple DRAM-ready and SSD-preparing queues while preserving arrival-order fairness across media.
7
Conclusion
For write-once, prefix-grouped LLM KV caches, placing host DRAM as a migratory cache and staging layer in front of NVMe SSD pollutes memory and fragments disk layout, whereas omitting DRAM leaves fast server memory idle. FlatCake instead organizes host DRAM and NVMe SSD as peer media behind a unified address space. By combining write-time placement (FC-GVA), mediumaware scheduling (FC-MAS), and layer-major direct streaming (FCCIO), FlatCake keeps compact prefixes in DRAM and streams large session histories sequentially from SSD into a bounded GPU window without cross-media migration. Across three production traces (DeepSeek-V4-Flash) and long-context workloads up to 128K tokens (Llama-3.1-70B), FlatCake prevents high-load hit-rate collapse, reduces mean TTFT by up to 2.4×, and delivers up to 2.16× higher token throughput over tiered and SSD-direct baselines. These results show that write-time peer placement and layer-major layout, rather than transport bypass alone, are key to SSD-backed KV caching.
Cross-Model and Context-Length Scaling
To answer E3, we evaluate whether FlatCake’s layout and streaming gains generalize from hybrid compressed attention (DeepSeekV4-Flash on B200) to standard grouped-query attention (GQA), and whether adding direct GDS transport to a tiered hierarchy is sufficient on long contexts. Because FC-CIO organizes KV blocks by session scope in layer-major order (§3.4), each layer’s prefix forms a contiguous SSD extent regardless of per-layer head dimensions. Figure 13 compares FlatCake against Recompute-only, +L2 Host DRAM, Mooncake, and Mooncake-GDS on Llama-3.1-70B (TP4 on four A100 GPUs) across input lengths from 8K to 128K tokens. FlatCake reduces mean TTFT by 1.5×–2.4× over Mooncake and by up to 2.3× over Mooncake-GDS. Mooncake-GDS ties FlatCake at 16K (2.31 vs. 2.32 s) but is 1.8× slower at 64K (6.60 vs. 3.74 s) with 1.6× lower throughput (8.6K vs. 14.0K tokens/s); at 128K the two converge (15.3 vs. 14.3 s) and Mooncake-GDS attains higher 11
Xin Huang, Teng Ma, Zhuoran Li, Yibo Zhao, Zhaoshi Li, Qianchao Zhu, Wei Yang, Chenxi Wang, Tao Xie, and Youwei Zhuo
References
[15] Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph E. Gonzalez, Hao Zhang, and Ion Stoica. 2023. Efficient Memory Management for Large Language Model Serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles (SOSP). ACM, Koblenz, Germany, 611–626. [16] Taehyung Lee, Sumit Kumar Monga, Changwoo Min, and Young Ik Eom. 2023. MEMTIS: Efficient Memory Tiering with Dynamic Page Classification and Page Size Determination. In Proceedings of the 29th Symposium on Operating Systems Principles. Association for Computing Machinery, Koblenz, Germany, 17–34. doi:10.1145/3600006.3613167 [17] Wonbeom Lee, Jungi Lee, Junghwan Seo, and Jaewoong Sim. 2024. InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Management. In Proceedings of the 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI). USENIX Association, Santa Clara, CA, USA, 155–172. https://www.usenix.org/conference/osdi24/presentation/lee [18] Shaobo Li, Yirui Eric Zhou, Yuqi Xue, Yuan Xu, and Jian Huang. 2025. Managing Scalable Direct Storage Accesses for GPUs with GoFS. In Proceedings of the 31st ACM SIGOPS Symposium on Operating Systems Principles (SOSP). ACM, Seoul, Republic of Korea, 979–995. [19] Yongkun Li, Zhen Liu, Patrick P. C. Lee, Jiayu Wu, Yinlong Xu, Yi Wu, Liu Tang, Qi Liu, and Qiu Cui. 2021. Differentiated Key-Value Storage Management for Balanced I/O Performance. In Proceedings of the 2021 USENIX Annual Technical Conference (ATC). USENIX Association, Virtual, 673–687. https://www.usenix. org/conference/atc21/presentation/li-yongkun [20] Jian Lin, Jiazhi Mi, Zicong Hong, Haodong Wang, Qianli Liu, Haodyue Zhang, Peng Li, and Song Guo. 2026. KVDrive: A Holistic Multi-Tier KV Cache Management System for Long-Context LLM Inference. arXiv preprint. arXiv:2605.18071 doi:10.48550/arXiv.2605.18071 [21] Yuhan Liu, Yihua Cheng, Jiayi Yao, Yuwei An, Xiaokun Chen, Shaoting Feng, Yuyang Huang, Samuel Shen, Rui Zhang, Kuntai Du, and Junchen Jiang. 2025. LMCache: An Efficient KV Cache Layer for Enterprise-Scale LLM Inference. arXiv preprint. arXiv:2510.09665 [22] Shutian Luo and Haiying Shen. 2026. No Buffer, No Bottleneck: Efficient ZeroCopy KV Cache Offloading for Long-Context LLMs. In 20th USENIX Symposium on Operating Systems Design and Implementation (OSDI 26). USENIX Association, Seattle, WA, USA, 39–54. https://www.usenix.org/conference/osdi26/ presentation/luo [23] Xiurui Pan, Endian Li, Qiao Li, Shengwen Liang, Yizhou Shan, Ke Zhou, Yingwei Luo, Xiaolin Wang, and Jie Zhang. 2025. InstAttention: In-Storage Attention Offloading for Cost-Effective Long-Context LLM Inference. In 2025 IEEE International Symposium on High Performance Computer Architecture (HPCA). IEEE, Las Vegas, NV, USA, 1510–1525. doi:10.1109/HPCA61900.2025.00113 [24] Ruoyu Qin, Zheming Li, Weiran He, Jialei Cui, Feng Ren, Mingxing Zhang, Yongwei Wu, Weimin Zheng, and Xinran Xu. 2025. Mooncake: Trading More Storage for Less Computation—A KVCache-centric Architecture for Serving LLM Chatbot. In Proceedings of the 23rd USENIX Conference on File and Storage Technologies (FAST). USENIX Association, Santa Clara, CA, USA, 155–170. https: //www.usenix.org/conference/fast25/presentation/qin [25] Shi Qiu, Yifan Hu, Xintao Wang, Wenhao Zhu, Jianqin Yan, Hao Chen, Kaiqiang Xu, Kai Chen, and Yiming Zhang. 2025. Tutti: Making SSD-Backed KV Cache Practical for Long-Context LLM Serving. arXiv preprint. arXiv:2605.03375 [26] Shi Qiu, Weinan Liu, Yifan Hu, Jianqin Yan, Zhirong Shen, Xin Yao, Renhai Chen, Gong Zhang, and Yiming Zhang. 2025. GeminiFS: A Companion File System for GPUs. In 23rd USENIX Conference on File and Storage Technologies (FAST 25). USENIX Association, Santa Clara, CA, USA, 221–236. https://www.usenix.org/ conference/fast25/presentation/qiu [27] Zaid Qureshi, Vikram Sharma Mailthody, Isaac Gelado, Seung Won Min, Amna Masood, Jeongmin Park, Jinjun Xiong, C. J. Newburn, Dmitri Vainbrand, I-Hsin Chung, Michael Garland, William J. Dally, and Wen-Mei W. Hwu. 2023. GPUInitiated On-Demand High-Throughput Storage Access in the BaM System Architecture. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2. Association for Computing Machinery, Vancouver, BC, Canada, 325–339. doi:10.1145/3575693.3575748 [28] Zebin Ren, Christian Pinto, Krijn Doekemeijer, Tiziano De Matteis, Radu Stoica, and Animesh Trivedi. 2025. An I/O Characterizing Study of Offloading LLM Models and KV Caches to NVMe SSD. In Proceedings of the 5th Workshop on Challenges and Opportunities of Efficient and Performant Storage Systems (CHEOPS). ACM, Rotterdam, Netherlands, 23–33. [29] Zhenyuan Ruan, Malte Schwarzkopf, Marcos K. Aguilera, and Adam Belay. 2020. AIFM: High-Performance, Application-Integrated Far Memory. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 20). USENIX Association, Virtual, 315–332. https://www.usenix.org/conference/ osdi20/presentation/ruan [30] SemiAnalysis. 2026. CC Traces — Weka, With Subagents (v7). https://huggingface. co/datasets/semianalysisai/cc-traces-weka-062126. Claude Code agentic coding traces; accessed 2026-07-28.
[1] Ahmed H. M. O. Abulila, Vikram Sharma Mailthody, Zaid Qureshi, Jian Huang, Nam Sung Kim, Jinjun Xiong, and Wen-Mei W. Hwu. 2019. FlatFlash: Exploiting the Byte-Accessibility of SSDs within a Unified Memory-Storage Hierarchy. In Proceedings of the 24th International Conference on Architectural Support for Programming Languages and Operating Systems. Association for Computing Machinery, Providence, RI, USA, 971–985. doi:10.1145/3297858.3304061 [2] Hasan Al Maruf, Hao Wang, Abhishek Dhanotia, Johannes Weiner, Niket Agarwal, Pallab Bhattacharya, Chris Petersen, Mosharaf Chowdhury, Shobhit O. Kanaujia, and Prakash Chauhan. 2023. TPP: Transparent Page Placement for CXLEnabled Tiered-Memory. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3. Association for Computing Machinery, Vancouver, BC, Canada, 742– 755. doi:10.1145/3582016.3582063 [3] Jonghyun Bae, Jongsung Lee, Yunho Jin, Sam Son, Shine Kim, Hakbeom Jang, Tae Jun Ham, and Jae W. Lee. 2021. FlashNeuron: SSD-Enabled Large-Batch Training of Very Deep Neural Networks. In 19th USENIX Conference on File and Storage Technologies (FAST 21). USENIX Association, Santa Clara, CA, USA, 387–401. https://www.usenix.org/conference/fast21/presentation/bae [4] Shai Bergman, Tanya Brokhman, Tzachi Cohen, and Mark Silberstein. 2017. SPIN: Seamless Operating System Integration of Peer-to-Peer DMA Between SSDs and GPUs. In 2017 USENIX Annual Technical Conference (USENIX ATC 17). USENIX Association, Santa Clara, CA, USA, 167–179. https://www.usenix.org/ conference/atc17/technical-sessions/presentation/bergman [5] Per Brinch Hansen. 1971. Short-term Scheduling in Multiprogramming Systems. In Proceedings of the 3rd ACM Symposium on Operating Systems Principles (SOSP ’71). Association for Computing Machinery, Palo Alto, CA, USA, 103–105. [6] Weijian Chen, Shuibing He, Haoyang Qu, Ruidong Zhang, Siling Yang, Ping Chen, Yi Zheng, Baoxing Huai, and Gang Chen. 2025. IMPRESS: An ImportanceInformed Multi-Tier Prefix KV Storage System for Large Language Model Inference. In Proceedings of the 23rd USENIX Conference on File and Storage Technologies (FAST). USENIX Association, Santa Clara, CA, USA, 187–201. https://www.usenix.org/conference/fast25/presentation/chen-weijian-impress [7] DeepSeek-AI. 2026. DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligence. arXiv preprint. §3.5.2 “On-Disk KV Cache Storage”. arXiv:2606.19348 [8] Padmapriya Duraisamy, Wei Xu, Scott Hare, Ravi Rajwar, David E. Culler, Zhiyi Xu, Jianing Fan, Christopher Kennelly, Bill McCloskey, Danijela Mijailovic, Brian Morris, Chiranjit Mukherjee, Jingliang Ren, Greg Thelen, Paul Turner, Carlos Villavieja, Parthasarathy Ranganathan, and Amin Vahdat. 2023. Towards an Adaptable Systems Architecture for Memory Tiering at Warehouse-Scale. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3. Association for Computing Machinery, Vancouver, BC, Canada, 727–741. doi:10.1145/3582016. 3582031 [9] Shaoting Feng, Hanchen Li, Kuntai Du, Zhuohan Gu, Yuhan Liu, Jiayi Yao, Siddhant Ray, Samuel Shen, Yihua Cheng, Ganesh Ananthanarayanan, and Junchen Jiang. 2025. AdaptCache: KV Cache Native Storage Hierarchy for Low-Delay and High-Quality Language Model Serving. ACM SOSP BigMem Workshop. Non-archival workshop paper. https://www.microsoft.com/enus/research/publication/adaptcache-kv-cache-native-storage-hierarchy-forlow-delay-and-high-quality-language-model-serving/ [10] Bin Gao, Zhuomin He, Puru Sharma, Qingxuan Kang, Djordje Jevdjic, Junbo Deng, Xingkun Yang, Zhou Yu, and Pengfei Zuo. 2024. Cost-Efficient Large Language Model Serving for Multi-turn Conversations with CachedAttention. In 2024 USENIX Annual Technical Conference (USENIX ATC 24). USENIX Association, Santa Clara, CA, USA, 111–126. https://www.usenix.org/conference/atc24/ presentation/gao-bin-cost [11] Shipeng Hu, Guangyan Zhang, Yuqi Zhou, Yaya Wei, Ziyan Zhong, and Jike Chen. 2026. Bidaw: Enhancing Key-Value Caching for Interactive LLM Serving via Bidirectional Computation–Storage Awareness. In Proceedings of the 24th USENIX Conference on File and Storage Technologies (FAST). USENIX Association, Santa Clara, CA, USA, 101–116. [12] Inho Jeong, Sunghyeon Woo, Sol Namkung, and Dongsuk Jeon. 2025. HiFC: High-efficiency Flash-based KV Cache Swapping for Scaling LLM Inference. In Advances in Neural Information Processing Systems, Vol. 38. Curran Associates, Inc., San Diego, CA, USA, 47561–47590. doi:10.52202/085713-1587 [13] Jinwoo Jeong and Jeongseob Ahn. 2025. Accelerating LLM Serving for Multi-turn Dialogues with Efficient Resource Management. In Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2. Association for Computing Machinery, Rotterdam, Netherlands, 1–15. doi:10.1145/3676641.3716245 [14] Jaehoon Jung, Jinpyo Kim, and Jaejin Lee. 2023. DeepUM: Tensor Migration and Prefetching in Unified Memory. In Proceedings of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2. Association for Computing Machinery, Vancouver, BC, Canada, 207–221. doi:10.1145/3575693.3575736 12
A Flat KV Cache Storage Architecture for LLM Serving
[31] Ying Sheng, Lianmin Zheng, Binhang Yuan, Zhuohan Li, Max Ryabinin, Beidi Chen, Percy Liang, Christopher Ré, Ion Stoica, and Ce Zhang. 2023. FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPU. In Proceedings of the 40th International Conference on Machine Learning (ICML). PMLR, Honolulu, HI, USA, 31094–31116. [32] Hyunkyun Shin, Seongtae Bang, Hyungwon Park, and Daehoon Kim. 2026. ARIADNE: Adaptive UVM Management for Efficient GPU Memory Oversubscription. In 2026 IEEE International Symposium on High Performance Computer Architecture (HPCA). IEEE, Sydney, Australia, 1–15. doi:10.1109/HPCA68181.2026.11408564 [33] Yan Sun, Jongyul Kim, Zeduo Yu, Jiyuan Zhang, Siyuan Chai, Michael Jaemin Kim, Hwayong Nam, Jaehyun Park, Eojin Na, Yifan Yuan, Ren Wang, Jung Ho Ahn, Tianyin Xu, and Nam Sung Kim. 2025. M5: Mastering Page Migration and Memory Management for CXL-based Tiered Memory Systems. In Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2. Association for Computing Machinery, Rotterdam, Netherlands, 604–621. doi:10.1145/3676641.3711999 [34] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention Is All You Need. In Advances in Neural Information Processing Systems 30 (NIPS 2017). Curran Associates, Inc., Long Beach, CA, USA, 5998–6008. [35] Jiahao Wang, Jinbo Han, Xingda Wei, Sijie Shen, Dingyan Zhang, Chenguang Fang, Rong Chen, Wenyuan Yu, and Haibo Chen. 2025. KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider. In Proceedings of the 2025 USENIX Annual Technical Conference (ATC). USENIX Association, Boston, MA, 465–482. [36] Johannes Weiner, Niket Agarwal, Dan Schatzberg, Leon Yang, Hao Wang, Blaise Sanouillet, Bikash Sharma, Tejun Heo, Mayank Jain, Chunqiang Tang, and Dimitrios Skarlatos. 2022. TMO: Transparent Memory Offloading in Datacenters. In Proceedings of the 27th ACM International Conference on Architectural Support for Programming Languages and Operating Systems. Association for Computing Machinery, Lausanne, Switzerland, 609–621. doi:10.1145/3503222.3507731 [37] Jiwon Woo, Minwoo Ahn, Gyusun Lee, and Jinkyu Jeong. 2021. D2FQ: DeviceDirect Fair Queueing for NVMe SSDs. In 19th USENIX Conference on File and Storage Technologies (FAST 21). USENIX Association, Santa Clara, CA, USA, 403– 415. https://www.usenix.org/conference/fast21/presentation/woo [38] Lingfeng Xiang, Zhen Lin, Weishu Deng, Hui Lu, Jia Rao, Yifan Yuan, and Ren Wang. 2024. NOMAD: Non-Exclusive Memory Tiering via Transactional Page Migration. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24). USENIX Association, Santa Clara, CA, USA, 19–35. https://www.usenix.org/conference/osdi24/presentation/xiang [39] Zhiqiang Xie and SGLang Team. 2025. SGLang HiCache: Fast Hierarchical KV Caching with Your Favorite Storage Backends. https://lmsys.org/blog/2025-0910-sglang-hicache/. [40] Zhe Yang, Qing Wang, Xiaojian Liao, Youyou Lu, Keji Huang, and Jiwu Shu. 2024. TeRM: Extending RDMA-Attached Memory with SSD. In 22nd USENIX Conference on File and Storage Technologies (FAST 24). USENIX Association, Santa Clara, CA, USA, 1–16. https://www.usenix.org/conference/fast24/presentation/yang-zhe [41] Haoyang Zhang, Yirui Eric Zhou, Yuqi Xue, Yiqi Liu, and Jian Huang. 2023. G10: Enabling an Efficient Unified GPU Memory and Storage Architecture with Smart Tensor Migrations. In Proceedings of the 56th Annual IEEE/ACM International Symposium on Microarchitecture. Association for Computing Machinery, Toronto, ON, Canada, 395–410. doi:10.1145/3613424.3614309 [42] Youpeng Zhao, Di Wu, and Jun Wang. 2024. ALISA: Accelerating Large Language Model Inference via Sparsity-Aware KV Caching. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA). IEEE, Buenos Aires, Argentina, 1005–1017. doi:10.1109/ISCA59077.2024.00077 [43] Lianmin Zheng, Liangsheng Yin, Zhiqiang Xie, Chuyue Sun, Jeff Huang, Cody Hao Yu, Shiyi Cao, Christos Kozyrakis, Ion Stoica, Joseph E. Gonzalez, Clark Barrett, and Ying Sheng. 2024. SGLang: Efficient Execution of Structured Language Model Programs. In Proceedings of the Annual Conference on Neural Information Processing Systems (NeurIPS). NeurIPS, Vancouver, Canada, 62557– 62583. [44] Xinrui Zheng, Dongliang Wei, Jianxiang Gao, Yixin Song, Zeyu Mi, and Haibo Chen. 2026. SolidAttention: Low-Latency SSD-based Serving on MemoryConstrained PCs. In 24th USENIX Conference on File and Storage Technologies (FAST 26). USENIX Association, Santa Clara, CA, USA, 67–82. https: //www.usenix.org/conference/fast26/presentation/zheng [45] Yuhong Zhong, Daniel S. Berger, Carl Waldspurger, Ryan Wee, Ishwar Agarwal, Rajat Agarwal, Frank Hady, Karthik Kumar, Mark D. Hill, Mosharaf Chowdhury, and Asaf Cidon. 2024. Managing Memory Tiers with CXL in Virtualized Environments. In Proceedings of the 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI). USENIX Association, Santa Clara, CA, USA, 37–56. https://www.usenix.org/conference/osdi24/presentation/zhong-yuhong
13
Related documents
- FlatCake: A Flat KVCache Storage Architecture for LLM Serving#1489147
- FlatCake: A Flat KVCache Storage Architecture for LLM Serving#1482975
- PagedMoE: Cross-Precision Expert Caching for Token-Level Dynamic Precision in SSD-Resident MoE Inference#1587181
- Who Should Own the Expert Cache? Kernel-Managed Tiering for Trillion-Parameter MoE Inference#1043174
- Who Should Own the Expert Cache? Kernel-Managed Tiering for Trillion-Parameter MoE Inference#793848
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive