跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 操作系统

arXiv:2612.02487 (cs)
[提交于 2026年11月27日]

标题:Write, Return, Reserve: KV Memory for Multi-User CPU LLM Servers under a Memory Budget

作者:Hariraam Kethisvarasuthan, Suresh Michael Peiris
查看论文《Write, Return, Reserve: KV Memory for Multi-User CPU LLM Servers under a Memory Budget》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Memory limits how many requests a CPU language-model server can handle at once. llama.cpp commits its entire key-value (KV) cache before requests use it. Our kernel measurements identify start-up zero-filling and cache clearing as the cause. We adapt its multi-user server to commit pages on first write, return each finished request's pages to the kernel, and admit requests through an external proxy. The proxy reserves each request's maximum KV requirement, calculated from the model configuration, within a memory budget. In our tests, greedy output and perplexity match unmodified llama.cpp. For Qwen2.5-1.5B on identical requests with 16k context per slot and prompt caching disabled, unmodified llama.cpp uses 12.3 times as much peak memory. Across three sessions, we find no statistically detectable throughput difference (modified/unmodified ratio 0.996, 95% CI 0.92-1.08). Against unmodified llama.cpp running only the slots that fit and queueing other users, extra concurrency raises throughput 1.17-1.26x below CPU saturation. Once the CPU is saturated, throughput is similar. Requests start sooner, but each output token takes longer. We test 1-14B models on Intel and ARM. Of 199 outcomes predicted before testing, 179 match. We report every miss. Returning unused KV memory to the OS lets a CPU server handle more requests at once, but only improves throughput while the CPU has spare capacity.
评论: 23 pages, 6 figures, 21 tables. Code, data and scripts are included as an ancillary file (artifact.zip)
主题: 操作系统 (cs.OS); 分布式、并行与集群计算 (cs.DC); 机器学习 (cs.LG); 性能 (cs.PF)
引用方式: arXiv:2612.02487 [cs.OS]
  (或者 arXiv:2612.02487v1 [cs.OS] 对于此版本)
  https://doi.org/10.48550/arXiv.2612.02487

提交历史

来自:Hariraam Kethisvarasuthan
[v1] 2026年11月27日 星期五 10:42:06 UTC (19,903 KB)
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-12
切换浏览方式为:
cs
cs.OS
cs.DC
cs.PF

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站