# FlatCake: A Flat KVCache Storage Architecture for LLM Serving

DevFeed: [FlatCake: A Flat KVCache Storage Architecture for LLM Serving](<https://devfeed.tech/articles/flatcake-a-flat-kvcache-storage-architecture-for-llm-serving-107570.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.38355>)

Author: Xin Huang, Teng Ma, Zhuoran Li, Yibo Zhao, Zhaoshi Li, Qianchao Zhu, Wei Yang, Chenxi Wang, Tao Xie, Youwei Zhuo

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [gpu-initated](<https://devfeed.tech/topics/gpu-initated.md>), [GPUDirect](<https://devfeed.tech/topics/gpudirect.md>), [long-context](<https://devfeed.tech/topics/long-context.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [1-6](<https://devfeed.tech/tags/1-6.md>), [64-bit](<https://devfeed.tech/tags/64-bit.md>), [8k](<https://devfeed.tech/tags/8k.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [block](<https://devfeed.tech/tags/block.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [blocks](<https://devfeed.tech/tags/blocks.md>), [cache](<https://devfeed.tech/tags/cache.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-os](<https://devfeed.tech/tags/cs-os.md>), [deepseek](<https://devfeed.tech/tags/deepseek.md>), [dram](<https://devfeed.tech/tags/dram.md>), [flat](<https://devfeed.tech/tags/flat.md>), [kvcache](<https://devfeed.tech/tags/kvcache.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-serving](<https://devfeed.tech/tags/llm-serving.md>), [serving](<https://devfeed.tech/tags/serving.md>), [storage](<https://devfeed.tech/tags/storage.md>)

## AI overview

FlatCake treats host DRAM and NVMe SSD as peer storage for LLM KV caches, addressing workloads where reuse patterns and DRAM staging can make SSD restoration a bottleneck. Because cache blocks are write-once and reused at session scope, it places them directly on their target medium in session-contiguous, layer-major order and does not migrate them. It coalesces SSD reads into a bounded GPU window using GPUDirect Storage and separates DRAM and SSD request queues. On a production Claude Code trace with DeepSeek-V4-Flash, it reports a 94% cache hit rate under rising load versus 64% for Mooncake, eliminates Mooncake's 6.5x-6.7x SSD read amplification, and improves peak-load mean TTFT and total token throughput by 1.6x. On Llama-3.1-70B with 8K-128K contexts, mean TTFT is up to 2.4x lower than Mooncake and 1.8x lower than Mooncake-GDS.

## Source excerpt

arXiv:2610.38355v1 Announce Type: new 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 one-shot 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 in-flight 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 at session scope, 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. On a production Claude Code trace with DeepSeek-V4-Flash, FlatCake sustains a 94% cache hit rate as load increases (versus 64% for Mooncake), eliminates Mooncake's $6.5\times$--$6.7\times$ SSD read amplification, and reduces peak-load mean TTFT by $1.6\times$ while improving total token throughput by $1.6\times$. Across 8K--128K contexts on Llama-3.1-70B, FlatCake further reduces mean TTFT by up to $2.4\times$ over Mooncake and $1.8\times$ over Mooncake-GDS.