计算机科学 > 分布式、并行与集群计算
[提交于 2026年11月18日 (v1),最后修订于 2026年11月21日 (此版本, v2)]
标题:TripleKV: Predict, Prefetch, Protect - KV Cache Management for AI Agents
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:LLM agents alternate between inference and tool execution, repeatedly reusing their growing context across calls. Under high concurrency, their combined key-value (KV) cache working set can reach hundreds of GiB, far exceeding GPU memory capacity. As idle KV cache blocks are evicted to slower storage tiers, returning agents incur expensive retrievals that stall inference. To address this problem, we present TripleKV, a three-tier KV cache management system that hides the delays of these retrievals. In agentic workloads, the KV blocks needed by the next inference request are known in advance; only the time of their reuse is uncertain. TripleKV uses a tool-aware latency predictor to estimate when each tool call will complete and prefetches the required KV blocks from SSD into host DRAM ahead of time. Unlike GPU prefetching, this avoids reserving scarce GPU memory and interfering with concurrent inference requests. To further improve DRAM utilization, TripleKV eliminates duplication of GPU-resident blocks in DRAM, and introduces a victim-cache mechanism that refills blocks from SSD upon their eviction from GPU memory. Across data, web, and coding agents, TripleKV reduces the fraction of requests requiring critical-path SSD reads from 45-76% to under 10%. It also reduces P95 time to first token (TTFT) by up to 49% compared with vLLM extended with DRAM and SSD KV-cache tiers, and achieves 1.5-7$\times$ lower P95 TTFT than recent agent-aware systems.
提交历史
来自:Shashwat Jaiswal[v1] 2026年11月18日 星期三 19:50:23 UTC (2,368 KB)
[v2] 2026年11月21日 星期六 05:20:30 UTC (2,368 KB)