
HK
Hariraam Kethisvarasuthan, Suresh Michael Peiris
· 1 min read
ResearcharXiv cs.LG
Write, Return, Reserve: KV Memory for Multi-User CPU LLM Servers under a Memory Budget
arXiv:2612.02487v1 Announce Type: cross
Abstract: 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.
Original source
This story was published by arXiv cs.LG and written by Hariraam Kethisvarasuthan, Suresh Michael Peiris. SyncAI.news shows a preview; the complete article is on the publisher's site.
Read the full story on arxiv.org


