arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2511.16138cs.DB
收藏

关于10倍更好可扩展性:KV存储扩展KV缓存

On 10x Better Scalability: KV Stores Scale Up KV Cache

Nanyang Technological University(南洋理工大学)

Weiping Yu, Ye Jiarui, He Mengke, Junfeng Liu, Siqiang Luo

AI总结:

SGLANG-LSM通过数据库存储架构提升大规模LLM缓存性能,实现缓存命中率提升143%和TTFT降低24%。

摘要:

大型语言模型(LLMs)依赖键值(KV)缓存来减少首次令牌时间(TTFT)延迟,但现有的基于磁盘的KV缓存系统使用按对象存储的布局,由于文件系统元数据开销、I/O效率低下和较差的空间局部性而面临严重的可扩展性瓶颈。本文提出了SGLANG-LSM,一个受数据库启发的系统,利用日志结构化合并树(LSM-tree)架构进行可扩展的KV缓存管理。SGLANG-LSM实现了一种分层系统设计,包含三个协调组件:(1)一个保留前缀的存储引擎,通过键值分离高效存储大型KV缓存张量,同时保持令牌序列局部性;(2)一个自适应控制器,根据工作负载特征动态优化LSM树配置;(3)运行时服务,包括批量操作和自动资源管理,用于生产部署。在大规模动态工作负载上的评估表明,SGLANG-LSM相比最先进的系统显著提高了缓存命中率,最高提升达143%,并将TTFT减少了最高24%,代表了数据库存储架构在大规模LLM缓存管理中的首次系统性应用。

英文摘要:

Large language models (LLMs) rely on Key-Value (KV) cache to reduce time-to-first-token (TTFT) latency, but existing disk-based KV cache systems using file-per-object layouts suffer from severe scalability bottlenecks due to file system metadata overhead, I/O inefficiency, and poor spatial locality. This paper presents SGLANG-LSM, a database-inspired system that leverages Log-Structured Merge-tree (LSM-tree) architectures for scalable KV cache management. SGLANG-LSM implements a layered system design with three coordinated components: (1) a prefix-preserving storage engine that maintains token sequence locality while efficiently storing large KV cache tensors through key-value separation, (2) an adaptive controller that dynamically optimizes LSM-tree configurations based on shifting workload characteristics, and (3) runtime services including batch operations and automatic resource management for production deployment. Evaluation on large-scale dynamic workloads demonstrates that SGLANG-LSM significantly improves cache hits by up to 143% and reduces TTFT by up to 24% compared to state-of-the-art systems, representing the first systematic application of database storage architectures to large-scale LLM cache management.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑