计算机科学 > 硬件体系结构
[提交于 2026年10月6日 (v1),最后修订于 2026年11月24日 (此版本, v2)]
标题:Lachesis: Lifetime-Aware KV Cache Placement for Agent Serving across HBM and High-Bandwidth Flash
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:In agent serving, agents and their sub-agents accumulate context as KV cache across many requests, far beyond HBM capacity. High-bandwidth flash (HBF) adds greater capacity at HBM-class read bandwidth, allowing a server to grow its batch and throughput under a relaxed SLO. We show that this gain meets an endurance wall as the batch growth wears HBF out within its warranty period. Prior work analyzes which KV should reach HBF assuming a request's KV remains readable until completion. However, an agent run is stateful, and by design, its harness discards parts of the context throughout the run. We find that the context divides into groups of KV that the harness discards together, so each group shares one lifetime that is known before the group is written. These lifetimes differ on three axes: reasoning stripped when the next user message ends a turn, a sub-agent's context discarded when it returns, and how long each sub-agent runs, which can be ranked when it starts. Guided by this characterization, we present Lachesis, a lifetime-aware KV cache placement layer that chooses HBM or HBF for each group when the group is written. In simulation of an eight-GPU B200 server on multi-agent traces, HBF with Lachesis serves 7.61-9.16$\times$ the throughput of the better of an HBM-only server and a DGX server with host DDR5. On the same traces, Lachesis extends HBF lifetime by 1.14-4.17$\times$ over HBM-first placement, which fills HBM before HBF. Since Lachesis keeps short-lived KV in HBM, a server running it can use more HBM stacks per GPU within the warranty. Our design-space exploration finds that Lachesis at 3/5 HBM/HBF stacks per GPU serves the highest throughput among the configurations that attach HBF directly to the GPU and outlast the warranty.
提交历史
来自:Jaehoon Yang[v1] 2026年10月6日 星期二 14:02:19 UTC (800 KB)
[v2] 2026年11月24日 星期二 10:16:39 UTC (915 KB)