Conceptio › Archive › arXiv CS
arXiv CS open access

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

Hariraam Kethisvarasuthan et al. · arxiv_cs
arXiv CS · Papers
Open Source ↗Direct PDF ↓
kerneloperating-systemsvirtualization
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 wr
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

W RITE , R ETURN , R ESERVE : KV M EMORY FOR M ULTI -U SER CPU LLM S ERVERS UNDER A M EMORY B UDGET

arXiv:2612.02487v1 [cs.OS] 27 Nov 2026

Hariraam Kethisvarasuthan 1 Suresh Michael Peiris 1

A BSTRACT 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.26× 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. 1

I NTRODUCTION

CPU inference matters for small and mid-size language models deployed on edge devices and where cost limits accelerator use. Host memory also holds KV caches moved from GPUs when device memory becomes scarce (Jiang et al., 2025). For a CPU server handling several users, KV memory grows with both the number of concurrent requests and their allowed context length (Na et al., 2024). Reserving a long context for every user can therefore limit how many requests a machine can serve. On CPUs, reserving address space need not immediately consume physical RAM. Linux demand paging can supply memory when the model first writes to it. Yet the llama.cpp build we study commits its entire KV cache at start-up. Increasing context from 4,096 to 16,384 tokens adds 86,030 page faults against 86,016 predicted from the model header. With Qwen2.5-1.5B at 16k context, the model never writes to 99.4% of the cache during a generation of about 100 tokens. Wasted KV capacity is well established (Kwon et al., 2023), and earlier work observes this commitment as resident memory (Xiao et al., 2026). We measure the 1

Informatics Institute of Technology, Colombo, Sri Lanka. Correspondence to: Hariraam Kethisvarasuthan <hariraam.20231073@iit.ac.lk>, Suresh Michael Peiris <suresh.p@iit.ac.lk>. Preprint.

commitment from the kernel against a prediction from the model header, identify its causes, and test what changing it means for server capacity. This question matters to llama.cpp’s discussion of paged KV memory. The proposal motivating our study (matiaslin, 2026) presents GPU performance results but leaves CPU memory commitment unmeasured. Earlier proposals considered removing the zero-fill (Tunney, 2024; Nguyen, 2024), and a maintainer’s reply in issue #9671 raised concerns about NaNs in unused cache entries. Community forks already implement lazy mapping in single-process settings. PR #11580 (fairydreaming, 2025) mapped the KV buffer for NUMA placement, while PR #18747 (pestopoppa, 2026) retained the zero-fill after introducing the mapping. A maintainer’s reply in PR #13295 (J4e6eR, 2025), advising to “pre-allocate the worst-case amount of memory”, captures the reliability concern behind eager commitment. Simply delaying commitment can move memory exhaustion into an active request. Our question is whether a multi-user server can avoid paying for unused KV capacity while controlling that risk. Paging alone does not establish this: vLLM-CPU and the unmerged paged prototype proposed for llama.cpp (PR #22569) both commit their KV pools at start-up in our measurements. Lazy KV mapping, page release and worst-case admission have all been used before (Table 5). We combine them in a multi-user CPU server to control when KV pages consume

1. Measurement. We measure how the initial zero-fill and the server’s start-up wipe commit physical KV memory. We check kernel measurements against predictions from the model header. For short prompts, we also compare KV memory with the compute buffer in the same process. Sections 3 and 4 describe the method and results. 2. Design. We change llama.cpp’s multi-slot server to commit pages on first write, discard pages when wiping the cache, and return each finished request’s pages to the kernel. An external proxy starts a request only if its worst-case KV requirement, calculated from the model header, fits within a cgroup budget. Greedy output and perplexity match stock in the tested configurations. Section 5 explains the changes and the assumptions behind admission. 3. Evidence. We compare the changes with stock configurations tuned for the available memory and test when keeping finished KV is preferable to releasing it. On identical work, stock with 16k context per slot and prompt caching disabled uses 12.3× as much peak memory. Across three sessions, we detect no statistically significant throughput difference. A 14 GiB budget holds 12 servers with our changes, compared with 3 stock servers or 7 with smaller contexts. Stock’s unified KV cache, sized to the cap, reaches 0.60–0.65× our throughput in the same session. Stock can also queue users and run only as many slots as fit. Against that configuration, our extra concurrency raises throughput by 1.17–1.26× below CPU saturation. Once the CPU is saturated, throughput is similar, but the median wait for a first token falls from 362 to 2.6 seconds. Releasing finished KV means processing the history again on the next conversation turn. Keeping it until memory is needed avoids this cost when space allows. Of 199 serving outcomes predicted before testing, 179 matched. Section 6 reports results for 1–14B models on Intel and ARM; Figure 1 shows how many concurrent users are served at each cap.

2

BACKGROUND

The KV cache stores a key vector and a value vector for each token at every attention layer, allowing the model to reuse earlier computations when generating new tokens. For a model with uniform attention dimensions, its size is layers × 2 × KV heads × head dimension × bytes per element

concurrent users served

RAM, when finished requests return that RAM to the kernel, and which requests can start within a memory cap. This lets physical memory use follow the requests being served rather than the number of configured slots. We make three contributions:

32

commit-on-write + admission stock, unified KV sized to cap

16

stock, right-sized 4k

8 stock, 16k

0 2

3

4

memory cap (GiB) commit-on-write + admission stock, unified KV sized to cap stock, right-sized 4k (rejects long requests) stock, 16k hollow: server up, but some requests rejected or failed

Figure 1. Largest tested number of users served concurrently, one slot each, without an out-of-memory kill at each memory cap on c7i.2xlarge (8, 16 or 32). Commit-on-write with admission serves 32 at every cap; stock with 16k per slot cannot start; stock rightsized to 4k serves fewer and rejects longer requests; unified KV sized to the cap fits at 3–4 GiB but fails requests at 2 GiB. Hollow markers: the server stayed up but not every request completed. Stock with fewer slots and a queue also completes such workloads, with long waits (Section 6.6).

× context length. Qwen2.5-1.5B needs 28 KiB per token with 16-bit floating-point entries. In the per-slot llama.cpp configuration studied here, each slot reserves its configured context capacity, so total KV reservation grows with slots × context regardless of actual request lengths (Gerganov & llama.cpp contributors, 2023). Reserving this address space is different from committing physical RAM. Fresh anonymous memory, which has no backing file, reads as zero. Linux demand paging can satisfy an initial read through a shared zero page and provide a private physical page on the first write. glibc’s calloc uses this guarantee to avoid clearing freshly mapped memory (Free Software Foundation, 2026). For private anonymous mappings, MADV_DONTNEED releases physical pages while preserving the address range, and subsequent accesses receive zero-filled memory again (Linux man-pages project, 2026). Pages already present in RAM are called resident pages. Ordinary accesses to them generate no page faults unless permissions or mappings require kernel intervention. Linux also checks memory reservations through its overcommit policy. The default heuristic can reject excessively large reservations. MAP_NORESERVE bypasses that reservation check but does not itself make memory lazy.1 Strict overcommit mode ignores the flag 1 “We honor MAP_NORESERVE if allowed to overcommit”: https://github.com/torvalds/linux/blob/b6a 9fa34ce4187cb69d3c588a4bbffc31ce5db8f/mm/m map.c.

and enforces a system-wide limit that defaults to swap plus 50% of physical RAM (The kernel development community, 2026c). Conventional GPU allocations instead acquire physical device memory. Systems such as vAttention and vTensor separate virtual addresses from physical backing, although vAttention’s published design still preallocates physical pages at initialisation (Prabhu et al., 2025; Xu et al., 2024). On CPUs, demand paging already provides this separation, but llama.cpp clears the whole KV buffer and therefore loses demand paging’s memory-saving benefit.

3

M EASURING KV C OMMITMENT FROM THE K ERNEL

We measure physical memory use and writes after startup without modifying the runtime. For KV memory, we read /proc/<pid>/pagemap and count pages marked as present and exclusively mapped to the process. For footprint experiments, we use the cgroup’s memory.peak, which records its highest memory charge. Serving experiments instead sample memory.current every 0.2 seconds and report the largest sample. These serving peaks are lower bounds because brief peaks can occur between samples. The largest observed rise between consecutive samples after start-up was 119 MiB in runs with admission and 345 MiB across the 191 serving runs whose server started. These observed rises do not bound the size of peaks missed between samples. We identify out-of-memory kills from exit status and the cgroup’s oom_kill counter, so sampling does not affect the kill counts. All runs use a warm page cache. Shared file-backed model weights were already cached and were not charged to the measured cgroups. The figures therefore include KV memory, private repacked weights and compute buffers, but exclude those shared weights. To observe writes, we reset soft-dirty tracking through /proc/<pid>/clear_refs. This removes write permission from the process’s mapped pages, so the next write to each protected page causes a page fault. The kernel restores write permission, and the exceptions:page_fault_user tracepoint records the faulting address. This reveals first writes at page resolution, rather than every write or any reads (The kernel development community, 2026a). Trapping memory accesses through page-table entries is an established technique, both by write-protection (Appel & Li, 1991; Hetzelt & Buhren, 2017) and by setting a reserved bit so that every access faults (Agarwal & Wenisch, 2017; Ren et al., 2021). We apply write-protection to KV memory during inference on a stock kernel and an unmodified, optimised runtime. The observed fill rates agree closely with predictions from the model header: 7.07–7.23 pages per token for Qwen2.5-1.5B against 7 predicted, and 7.99–8.05 for Llama-3.2-1B against

8. We chose soft-dirty over UFFD_FEATURE_WP_ASYNC because it can be reset externally without arranging userfaultfd registration inside the target process (The kernel development community, 2026b). With workers on all eight virtual CPUs, the observer adds 6.1% to time per token, and write tracking adds another 3.8%. Observer wake-ups interrupt a worker, making others wait at thread barriers: a llama.cpp instance of the known OS-noise effect (Petrini et al., 2003). Leaving one virtual CPU free reduces both costs to about 0.5%, indistinguishable from noise in five runs, although seven workers are slower than eight. Resetting clear_refs takes about 28 ms for 1.7 GiB of writable anonymous mappings; Bitchebe & Tchana (2022) report 2.234 ms/GB elsewhere. ProfInfer’s probes slow decoding by 1.2–3.7% on Cortex-A76 Orange Pi 5 boards (Zou et al., 2026, Table 6), but the setups are not directly comparable. Graviton3’s arm64 kernel lacks soft-dirty support, so we use only memory accounting there.

4

W HAT A CPU S ERVER C OMMITS , AND W HY

Our measurements use the pinned llama.cpp commit c060ca97; a source check on 16 November (master a946eb5) confirmed that master retains the same KV zerofill. The related runtimes examined—Ollama, ik_llama.cpp, KoboldCpp and llamafile—inherit this behaviour. We also measure vLLM-CPU and the unmerged paged prototype proposed for llama.cpp. This behaviour is not universal among CPU servers: OpenVINO Model Server grows its cache on demand (OpenVINO Toolkit, 2026); in its source, the cache grows by copying existing contents into larger tensors, and the serving loop never clears it.2 In the pinned build, ggml_backend_buffer_clear at llama-kv-cache.cpp:291 writes zeros across the entire KV buffer and commits its pages. Increasing context from 4,096 to 16,384 tokens adds 86,030 page faults against 86,016 predicted from the model header, a difference of 0.016%. The same process provides a control: its compute buffer is reserved without an initial clear and is only 0.6% resident, while the KV buffer is fully resident. This comparison applies to short prompts. A long first prompt can write much of the compute buffer too, as measurements in a community fork show. That work also reports the resident2 https://github.com/openvinotoolkit/ope nvino.genai/blob/739b7463cf1b096f508b9a7fb d0eb4ca71fee6ff/src/cpp/src/continuous_bat ching/cache/kv_cache_manager.hpp and https: //github.com/openvinotoolkit/model_server/ blob/d39f7b83c4db46867b0aff72cf82104545b5f c52/src/llm/language_model/continuous_batc hing/llm_executor.hpp.

KV committed (MiB)

103 zero-fill 102 commit-on-write

101 100 100

200

300

400

500

tokens in the cache Figure 2. KV memory committed as Qwen2.5-1.5B fills a 16k context on c7i.2xlarge. Zero-filling commits all 448 MiB before generation. Commit-on-write grows with the tokens stored and closely follows the model-header prediction shown by the dashed line. Token counts include the prompt and generated tokens. The vertical axis is logarithmic.

memory increase caused by clearing KV. Our contribution here is the kernel-side fault count against the header’s prediction. The server’s start-up self-test can subsequently wipe and recommit the cache, which is why Section 5 addresses every wipe. Figure 2 shows how little of the reserved capacity inference uses. With Qwen2.5-1.5B and a 16k context, the model leaves 99.4% unwritten after about 100 tokens and 96.7% after 537 tokens, counting prompt and generated tokens together. Zero-filling commits all 448 MiB before generation. Without it, commitment closely follows T × ⌈n/p⌉ pages, where T is the number of key and value tensors, n is the number of tokens stored, and p is the number of tokens each tensor holds per page. Physical memory therefore grows with the tokens written rather than the configured context capacity. The paged implementations we measured also commit memory before requests use it. vLLM-CPU uses 8,856 MiB while idle with a 4 GiB KV pool, compared with 5,549 MiB with a 1 GiB pool. In a batch benchmark, the paged prototype proposed for llama.cpp uses 1,993 MiB with 1,024 blocks and 4,686 MiB with 4,096 blocks. The 2,693 MiB increase is approximately twice the added blocks’ KV capacity; the remaining increase is unexplained. These implementations share committed pool memory between sequences rather than deferring its commitment. On Sapphire Rapids with a 4,096-token context, copying weights into an AMX-specific layout accounts for 84% of start-up faults. These copies occupy 950.71 MiB of private memory per process. Total memory per process is about 1,460 MiB, compared with 507 MiB when repacking is disabled with --no-repack and file-backed weights are shared through the page cache. llama.cpp issues already report this duplication (bartowski1182, 2025; rhjdvsgsgks, 2025), as does a post on TFLite’s XNNPack backend

for its own repacked weights (Khan & Chen, 2024); we measure its size on AMX. llama.cpp maps the model with MAP_POPULATE, so file-backed weights do not appear in the page-fault tracepoint (we observe almost none) or in perf fault events (Zijlstra, 2013). They still count in min_flt and memory-cgroup accounting.3 For this 1.5B dense model, huge pages reduce page faults by 96% and dTLB misses by 95%. Decode time changes by only −0.35% (t = −1.15, n = 5). This result does not apply to all models or CPUs: a large mixture-of-experts model on Neoverse-N2 slowed by 20% with THP always enabled (jaholmesuk, 2026). In our tested workload, reducing physical commitment lets more work fit in memory but does not speed up decode.

5

C OMMIT- ON -W RITE KV C ACHE

5.1

Three changes

Earlier systems use lazy KV mapping, page release and worst-case admission (Table 5). llama.cpp issue #16694 requested release after each server request, but it was not implemented (sxch775-work, 2025). We combine these mechanisms in a multi-slot CPU server and test them under memory caps: pages are committed on first write, wipes discard pages, finished requests return pages to the kernel, and an external proxy controls admission. The patch changes about 230 lines across three files. The evaluated configuration uses LLAMA_KV_LAZY=2 and LLAMA_KV_RELEASE=1 and is disabled by default. It makes three changes. First, the CPU KV buffer uses a private anonymous mmap mapping with MAP_NORESERVE and no initial zero-fill. Fresh anonymous memory already reads as zero, so unused cells cannot contain the uninitialised values behind the NaN objection. Physical pages are committed on first write. MAP_NORESERVE serves a separate purpose: it allows large virtual reservations under Linux’s default overcommit heuristic. A 32-slot Llama-3.2-1B server reserves 16 GiB for KV and failed to start on the nominally 16 GiB machine. A separate 16.3 GiB mapping test on that machine, which had 15.3 GiB of RAM and no swap, failed without the flag and succeeded with it. With the flag, the server completed all 96 requests at both the 2 GiB and 4 GiB caps. Second, operations that clear the KV buffer use MADV_DONTNEED to discard whole pages, which then read as zero again. Partial pages at the buffer boundaries are cleared explicitly. If discarding pages fails, the operation falls back to zero-filling. This change is necessary because 3 mm_account_fault() in https://github.com/t orvalds/linux/blob/b6a9fa34ce4187cb69d3c58 8a4bbffc31ce5db8f/mm/memory.c.

the server’s start-up self-test wipes the whole cache. Changing allocation alone therefore leaves the server committing the buffer during that test. Third, removing cells releases whole pages beyond each affected stream’s last live cell in every K and V tensor. Transposed V tensors require handling each row separately. Restricting release to whole pages inside the unused region protects neighbouring live data. The server also clears a slot when its request finishes. Without release, each slot retains pages touched by its longest request. Completing a 1,574-token request returned 43.1 MiB, matching 1,574 times 28 KiB per token. Release is a separate policy from commitment on first write. It sacrifices prefix reuse when a client resends conversation history, so the server repeats computation without losing the conversation. Without release, commit-on-write retains and reuses finished KV as stock does. Section 6.11 measures this trade-off. 5.2

Correctness

Correctness rests on preserving the buffer’s zero semantics. Fresh pages and pages discarded with MADV_DONTNEED read as zero, so masked reads of these unused cells cannot introduce NaNs from uninitialised data. Greedy output matched stock in all eight tests covering two models, flash attention on and off, and two context lengths. Tests with q8_0 KV also matched. Perplexity was identical at 5.1304 ± 0.44352 for the 1.5B model and 4.5338 for 7B. All seven Intel server checks matched, including requests that reused released slots. On Graviton3, all four completion checks matched and perplexity was identical at 5.1368. The initial server gate failed because some outputs differed. Follow-up tests found identical stock and commit-on-write text in all 24 requests with the same arrival gap, which determined whether requests shared their first batch. The concurrent x86 conversation experiment showed similar variation: repeated runs of the same configuration diverged from the first turn in both stock and commit-on-write. Differences between configurations were no greater than differences between repeats. The supported server claim is therefore identical output when batch composition is the same. 5.3

The trade-off and admission

With delayed commitment, the server can run out of memory during generation instead of at start-up. Our external proxy controls this risk by reserving memory before forwarding each request (Algorithm 1). It counts the prompt tokens and the maximum allowed output tokens, then calculates the pages they would occupy in each KV tensor. It rounds up to whole pages and adds one page per tensor to allow for a slice starting partway through a page. The proxy returns this reservation when the response relay ends.

Algorithm 1 Admission in the proxy. B = cgroup cap − server memory at ready − margin; R = bytes reserved; C = context per slot; bt = bytes per token of KV tensor t, from the model header. 1: np ← tokens in the prompt + 1; no ← n_predict (or C if unbounded)  P 2: r ← 4 KiB · t ⌈min(np + no , C) bt /4 KiB⌉ + 1 3: if r > B then 4: refuse the request (HTTP 507) 5: end if 6: wait in arrival order until R + r ≤ B; R ← R + r 7: forward the request and relay the response 8: when the relay ends (completion, error or client disconnect): R ← R − r

This rule has four assumptions. The server must release a finished request’s pages (Section 5.1). Flash attention must be enabled so that K and V are stored position-major; without it, transposed V commits one page per row, adding 25.1 MiB in our test. All generation requests must pass through the proxy, which refuses routes it cannot reserve for. Memory growth outside KV must stay within the margin. If a client disconnects, the proxy closes its connection to llama-server, which cancels the request. The proxy returns the reservation when the relay ends, potentially about one decode step before the server releases the pages. Worst-case reservation is already used by Orca, TensorRTLLM’s GUARANTEED_NO_EVICT policy4 and ExLlamaV2. SLINFER also admits requests according to available memory (Yu et al., 2022; NVIDIA, 2026; turboderp, 2024; Xu et al., 2026). We apply the rule through an external proxy, using a cgroup cap together with commit-on-write, without changing the CPU server’s interface. The reservation is an upper bound on the request’s KV memory; the margin is a separate, empirical allowance for memory outside the KV cache. The 320 MiB margin covers estimated additional growth of 110–290 MiB as concurrency rises from eight to 64 users. Across 41 single-server runs with release and admission, none was killed. The smallest gap between the cap and the sampled peak was 218 MiB, although sampling can miss brief peaks. Stock’s unified KV configuration used the same margin rule but was killed in two of thirteen runs when growth exceeded the allowance. The margin is therefore an empirical allowance, not a guarantee against running out of memory. The proxy guards completion endpoints and refuses generation routes it cannot reserve for. Growing KV demand complicates 4

getRemainingBlocksToCompletion reserves prompt plus maximum new tokens: https://github.com /NVIDIA/TensorRT-LLM/blob/233fa339a3888882 cda1cbec627b05284aaa8a27/cpp/tensorrt_llm/ batch_manager/kvCacheManager.cpp.

admission (Ao et al., 2026), and FIFO ordering can leave short requests waiting behind long ones.

6

E VALUATION

6.1

Setup and pre-registration

We evaluate the system on three AWS machines and report their results separately. The c7i.2xlarge has an Intel Xeon Platinum 8488C processor with four physical cores, eight hardware threads and 16 GiB of RAM. The larger c7i.8xlarge has 16 physical cores, 32 hardware threads and about 61 GiB of usable RAM. On that machine, the server uses 15 cores and the load generator uses the remaining core. The c7g.2xlarge has eight Graviton3 cores, 16 GiB of RAM and no AMX support. The experiments use Linux 7.0 and the pinned llama.cpp commit c060ca97 as the stock baseline. We test Qwen2.5-1.5B, Llama-3.2-1B, Qwen2.57B and Qwen2.5-14B, using their Instruct versions with Q4_K_M weights. We compare stock with 16k context per slot (C1) and stock with a smaller 4k context per slot (C2). We then test lazy commitment alone (C4), lazy commitment with memory release after each request (C5), and both changes with admission control (C6). Our strongest stock baseline uses one unified KV buffer shared by all slots and sized to the memory cap, with prompt caching disabled (C8). We also compare against vLLM-CPU (V). Users operate in a closed loop: each sends another request after the previous one finishes. The synthetic workload uses repeatable random lengths, with 10% of requests containing documents of 4k– 12k prompt tokens. These longer requests matter because reducing stock’s context would sacrifice little if every request were short. We also replay request lengths from the conversation and code workloads in the Azure LLM inference trace from 2023 (Patel et al., 2024). Each server runs inside a Linux cgroup whose MemoryMax setting enforces the memory cap. The project contains 510 run directories with commands and environment records. Main timing comparisons use runs from the same session because differences between sessions can distort performance comparisons (Mytkowicz et al., 2009; Kalibera & Jones, 2013; Hoefler & Belli, 2015). We identify the cross-session comparison separately below. Before running each experiment grid, we recorded which configurations we expected to finish and how much memory they would use. To make these predictions, we combined KV requirements from the model header with measured server base memory and replayed the workload one decode step at a time. We committed the prediction files before testing and checked the results against those files. Of 199 serving outcomes, 179 matched. Later tests covered co-location, shared budgets, conversations, release under pressure, tuned

stock and CPU saturation. These matched 48 of 54 further predictions. The last four sets of tests ran after the data freeze, between 25 and 28 October; their predictions were still recorded before testing. The 20 misses in the main serving experiments include seven stock or ablation runs killed near the cap, four ARM ablation runs stopped by a time limit, two commit-on-write reservations refused before MAP_NORESERVE was added, two stock runs killed by prompt-cache growth, three vLLM-CPU outcomes and two unified-stock runs whose non-KV growth exceeded the sizing margin. None was a mid-generation kill of commit-on-write with release and admission. The appendix reports every grid and miss. Recording predictions before experiments has precedents, including Lingala et al. (2026) and Yuan & Zhao (2026), and is not itself our contribution. 6.2

Footprint

Table 20 shows that lazy commitment reduces peak memory by 30% for a single process. For a server, the reductions are 63% with four users, 76% with eight users and 78% with eight idle slots. Using q8_0 KV entries alone reduces memory by 14% for a process and 36% for an eight-user server. Quantisation reduces the size of stored entries, while lazy commitment avoids backing unused entries with RAM, so the two can be combined. Disabling flash attention adds 25.1 MiB to the lazy configuration in the tested case. Startup becomes 234 ms faster. Decode time increases by 0.26%, which is not statistically significant. 6.3

Same work: no detectable slowdown in a fraction of the memory

Table 1 compares the configurations on identical requests with ample memory. The measured request rates are similar at 1.5B, 7B and 14B parameters. With its default prompt cache enabled and 16k context per slot, stock uses 13.0, 5.9 and 3.6 times as much peak memory as commit-on-write. All memory figures count the anonymous memory charged to each server’s cgroup; shared file-backed weights already in the page cache are not charged (Section 3). These ratios include stock’s prompt-cache memory. The smaller relative saving for larger models reflects the larger share of memory occupied by weights. At 1.5B, the commit-on-write-to-stock throughput ratios across three sessions are 1.013, 1.017 and 0.958. Their mean is 0.996, with a 95% confidence interval of 0.915–1.077. These three sessions therefore do not rule out differences of roughly 8%. We also test a latency target of at most 10 seconds to the first token and at most one second per generated token. Commit-on-write meets both limits for 81% of requests, compared with 82% for stock. Its prefill time per prompt token is 0.88–1.05 times stock’s, with no measurable extra cost from committing pages during

prefill.

no release: killed

cap 2 GiB

Stock’s memory also grows after start-up because llamaserver retains a host prompt cache. In the measured comparison, growth falls from 2,006 MiB to 227 MiB when this cache is disabled with --cache-ram 0. The mechanism is already reported upstream in issue #22629 and discussion #18488 (futrueiot-cpu, 2026; tarruda, 2025); we measure its size in these workloads. Our release configuration clears finished slots and does not retain this state. The original same-work comparison gives a 13.0× ratio in total peak memory and 13.6× when counting the non-KV base plus KV while excluding additional growth under load. The fairer comparison disables stock’s prompt cache. All six of those runs finish without a kill, as predicted, although requests can still be truncated or rejected where the configured context is too short. For Qwen2.5-1.5B on identical work with the same 16k context per slot, stock uses 12.3 times as much peak memory as commit-on-write (Table 16). We did not repeat this comparison with prompt caching disabled for the 7B and 14B models. 6.4

Serving under a memory cap

On the c7i.2xlarge, we test memory caps of 2, 3 and 4 GiB with 8, 16 and 32 users. Stock with 16k context per slot cannot start in any of these capped configurations. Stock reduced to 4k serves 0, 8 and 16 users at the three caps, while rejecting requests that exceed its context limit. Commit-onwrite with release and admission serves 32 users at every cap and finishes all ten tested runs, including the repeat, without a kill. Table 6 reports the individual outcomes. Table 21 shows why all three parts matter. Across nine combinations, lazy commitment alone finishes four and is killed in five because slots retain memory from earlier requests. Adding release increases completions to eight. Adding admission allows all nine to finish by preventing too many requests from growing their KV caches at once. The largest admission queue contains 23 requests against 22 predicted. Figure 3 shows how server memory changes during the 2 GiB experiment with 16 users. 6.5

Against the best-configured stock

The next comparison asks whether stock’s unified KV cache already solves the problem. We size that shared buffer to the memory cap and disable prompt caching. Before testing, we inspect the pinned source and record the expected failure behaviour. All nine outcomes on the smaller Intel machine match the predictions (Table 14). Unified stock completes the tested workloads at 3–4 GiB. At 2 GiB, overflowing the shared buffer fails every request then in flight, producing totals of 16 and 64 failed requests in the 16-user and 32user runs. Across both Intel machines, 11 of 13 outcomes match. The two misses occur on the larger machine, where

memory (MiB)

2,000 stock, unified KV 1,500 release + admission release

1,000 0

5

10

time since launch (min) no release stock, unified KV

release

release + admission

Figure 3. Server memory during a 16-user workload under a 2 GiB cap on c7i.2xlarge. Without release, retained KV pages accumulate until the kernel kills the server; both configurations with release finish within the cap. Stock with one unified buffer sized to the cap (E16, same workload, another session) holds its memory near the cap from start-up.

memory grows 320–350 MiB after the server becomes ready, exceeding the 320 MiB margin used to size the shared buffer (Table 15). Figure 4 compares throughput and peak memory in the same session. Unified stock fits, but it uses more memory and runs more slowly in the same-session comparisons. At a 4 GiB cap with 16 users, it serves 0.053 requests per second against 0.081 for commit-on-write. With 32 users, the rates are 0.044 and 0.073. Unified stock therefore achieves 0.65× and 0.60× commit-on-write’s throughput. Its peak memory is 3,923 and 3,970 MiB, compared with 1,933 and 2,677 MiB. At 64 users, unified stock is approximately 4.1–4.7× slower, but that comparison uses different sessions and is weaker evidence. The underlying mechanism is known upstream: attention for one sequence traverses cells used by other sequences even when those cells are masked out. Issues #19523 and #28495 discuss this cost, while LM Studio issue #1757 reports the shared-buffer overflow failure (smitranic, 2026; DanoPTT, 2026; TheElo, 2026). PR #29510, merged on 2 November 2026 after our measurements, lets attention over a unified cache skip other sequences’ cells and includes a CPU implementation (am17an, 2026). Our measurements, at the pinned commit, show the CPU consequences before that change. In these configurations, unified stock trades speed for fitting within the cap. Commit-on-write keeps per-slot attention while allowing unused physical memory to remain available elsewhere. 6.6

Against stock tuned to the cap

Under a 6 GiB cap, stock with 16k context can start 10 slots and queue the remaining users, although it cannot start all 64 slots. Table 2 compares this with stock using 42 slots at 4k context, unified KV with our admission proxy, and

Table 1. Goodput and peak memory on identical chat requests with ample memory on c7i.8xlarge. All requests complete in every configuration. Stock uses its default prompt cache in these runs. The final column divides stock’s peak memory at 16k context per slot by commit-on-write’s peak memory. Each cell represents one run. Goodput (requests/s) Peak memory (MiB) Model Qwen2.5-1.5B Qwen2.5-7B Qwen2.5-14B

Users

Cap (GiB)

stock 16k

right-sized

commit-on-write

stock 16k

right-sized

commit-on-write

Ratio

64 32 8

32 48 48

0.397 0.103 0.046

0.391 0.102 0.046

0.402 0.101 0.048

31,851 35,080 34,537

10,256 13,505 16,062

2,454 5,916 9,535

13.0× 5.9× 3.6×

Every request completed in full in all nine runs. One session per cell; the 1.5B ratio over three sessions is in the text.

commit-on-write. For unified KV, the proxy budget is the already committed pool. All configurations use the 64-user document workload, have prompt caching disabled, and have the same 30-minute deadline. Six of seven predictions held. Contrary to our prediction, stock with 10 slots completed all 192 requests at about the same throughput as commit-on-write: 0.144 versus 0.135 requests per second. It used 1.45× as much memory. The 15 cores are already saturated at about 10 concurrent sequences, so adding concurrency does not increase total throughput. It does change waiting and streaming times. Commit-on-write started 55% of requests within 10 s, with a median wait of 2.6 s, but took about 1.1 s per output token. Queued stock started 6% within 10 s, with a median wait of 362 s, then took 0.11 s per token. Stock with 4k context was fastest, but rejected all 21 documents. Unified KV with admission completed 54 of 192 requests before the deadline, took 3.5 s per token, and used memory up to the cap. Extra concurrency raises throughput when the CPU still has spare capacity. On the smaller machine, stock with 16k context fits one slot under 2 GiB and three under 3 GiB. With the other users queued, it completes all 96 requests from 32 users. Commit-on-write is 1.26× as fast at 2 GiB and 1.17× as fast at 3 GiB (Table 3); all five predictions held. At 3 GiB, commit-on-write starts 60% of requests within 10 s, and its median wait is 2 s versus 515 s for stock. At 2 GiB, documents consume most of its budget, so it also queues requests: the median wait is 271 s versus 746 s for stock. More memory available for concurrent requests improves throughput only while the CPU has spare capacity. 6.7

Real request lengths

Real request lengths show the limits of simply reducing context. In the Azure conversation workload, the median, 90thpercentile and 99th-percentile context lengths are 1,020, 2,734 and 4,142 tokens. A 4k context therefore covers approximately 99% of requests. Commit-on-write serves all 192 requests under a 6 GiB cap at 0.328 requests per second, with a peak of 3,949 MiB. Stock reduced to 4k cannot start at 6 GiB. At 32 GiB, it records 0.332 requests per second and peaks at 12,807 MiB, but truncates 12 re-

Table 2. Commit-on-write against stock tuned to a 6 GiB cap on c7i.8xlarge: 64 users, 10% documents, prompt cache off and one 30-minute deadline for every run; mean of two runs (one for 4k). Stock with the slots that fit serves everyone at the same throughput but makes most users wait minutes for their first token. Configuration

Done Req/s TTFT≤10 s TTFT p50 (s) s/token Peak (MiB)

Commit-on-write + admission, 64 x 16k 192 0.135 Stock 16k, 10 slots, rest queued 192 0.144 Stock 4k, 42 slots, rest queued 171+21r 0.415 Stock unified KV + admission 54 0.033

55% 6% 22% 7%

3 362 27 165

1.11 0.11 0.18 3.55

3,919 5,691 5,984 6,128

Done: requests completed in full of 192 within the deadline (r: rejected, prompt over 4k). Peak: kernel memory.peak. 6 of 7 predictions frozen before the runs held.

Table 3. Below CPU saturation on c7i.2xlarge: stock 16k can afford only one slot at 2 GiB and three at 3 GiB, and queues the other users; commit-on-write admits as many as their predicted KV allows. 32 users, 10% documents, prompt cache off, one 60-minute deadline; mean of two runs. Cap Configuration

Req/s TTFT≤10 s TTFT p50 (s) s/token Peak (MiB)

2 GiB Commit-on-write + admission, 32 slots 0.051 2 GiB Stock 16k, 1 slot, rest queued 0.041

1% 2%

271 746

0.48 0.04

1,821 1,577

3 GiB Commit-on-write + admission, 32 slots 0.064 3 GiB Stock 16k, 3 slots, rest queued 0.055

60% 3%

2 515

0.83 0.07

2,660 2,488

Every run completed all 96 requests within the deadline; none was killed. Peak: kernel memory.peak. 5 of 5 predictions frozen before the runs held.

quests and rejects five. We did not test intermediate caps, so this does not establish that it needs 32 GiB. Stock with 16k context and default prompt caching is killed even at 32 GiB. In the original conversation comparison, the memory ratio is approximately 3.3× on total peak and 2.3× on non-KV base plus KV. Commit-on-write at 6 GiB meets the latency target for 62% of requests, compared with 60% for reduced-context stock at 32 GiB (Table 8). The code workload contains more long requests: 14% exceed 4k context. Stock limited to 4k rejects 29 of 192 requests. Increasing stock’s context to 8k, enough for the longest request in this trace, allows every request to finish. Its rate is 0.195 requests per second against 0.194 for commit-on-write. With default prompt caching, stock peaks at 23,837 MiB compared with 2,898 MiB for commit-onwrite, an 8.2× ratio (Table 12). Disabling stock’s prompt cache reduces the ratio to 5.4×, which is the fairer figure

(Table 16). Commit-on-write completes the workload within a 6 GiB cap. 6.8

Context, models and CPUs

Figure 5 shows the context sweep. We keep the requests fixed while increasing each slot’s context limit from 4k to 8k, 16k and 32k. Stock’s peak memory rises from 2,191 to 3,108, 4,902 and 8,503 MiB. Commit-on-write uses 1,268, 1,419, 1,422 and 1,428 MiB. Increasing the allowed context therefore has little memory cost when requests do not use that extra space. The result also holds beyond the main model. At 7B under a 10 GiB cap, both stock configurations fail at start-up while commit-on-write serves all 96 requests (Table 9). At 14B under a 16 GiB cap, only commit-onwrite completes among the tested configurations (Table 13). Llama-3.2-1B behaves similarly at 16 users. At 32 users, its large virtual reservation requires MAP_NORESERVE; with that flag, all 96 requests finish at both the 2 and 4 GiB caps (Table 10). On Graviton3, commit-on-write finishes all six capped configurations without a kill, while stock with 16k context fails at start-up in each (Table 11). Long prompts remain slow on that machine: the 32-user commit-on-write runs needed a four-hour limit, while the ablation runs had 30 minutes, so the Graviton3 results show that commit-onwrite completes, not that the ablations fail within the same time. 6.9

What an operator gains

For an operator hosting several independent servers, the memory saving increases how many fit on one machine. Within a single 14 GiB cap, the smaller Intel machine holds three stock servers with 16k context, seven stock servers with 4k context, or twelve commit-on-write servers (Figure 6). Each server has eight slots. All six tested boundary outcomes match the predictions (Table 17). Adding one more server causes stock to fail at start-up or commit-onwrite without group admission to be killed under load. Several servers can share one admission budget. Without admission, all four co-located servers were killed after about six minutes. Fixed and shared budgets avoided kills but completed only 69 and 72 of 128 requests within 90 minutes because of CPU limits. For two servers under shifting load, sharing cut the mean per-run median first-token wait from 129.4 to 74.8 seconds (42%), with similar throughput (1.01×). Seven of ten predictions held (Table 18). When bursts happened to fit, running without admission was 1.5× as fast. 6.10

Against vLLM-CPU

Our memory comparison with vLLM-CPU shows that it commits its KV pool at start-up (Section 4). We also mea-

Table 4. Release under pressure on c7i.2xlarge: 16 users holding 8-turn conversations with think time. C9 keeps finished conversations and erases the least recently used idle slot only when a request would not fit; C6 releases every finished request; C4r keeps everything without admission; C8 is stock with one unified buffer sized to the cap. Cap (MiB) Reuse (C9) Turns/s, C9 vs C6 TTFT p50 C9 / C6 (s) C4r 1,792 2,048 2,304 3,072

0.11 0.28 0.64 0.86

0.085 0.101 0.143 0.181

0.083 0.088 0.091 0.092

123.7 / 112.4 50.3 / 38.7 2.4 / 18.1 2.0 / 19.5

killed killed killed ok

C8 16 failed 15 failed 16 failed ok

Reuse: share of prompt tokens served from kept KV (largest possible 0.86). TTFT: turns 4–8. C6 and C9 completed every turn, never killed; stock with 16 slots x 16k could not start at any of these caps. 8 of 9 E21 predictions held.

sure speed. With 64 users under 6 GiB, it served 0.049 requests per second, compared with 0.149 for commit-onwrite (Table 7). After tuning according to its CPU guide, its best rate was 0.19× commit-on-write’s in the same session. At most 3% of requests met the latency target. These results describe vLLM’s CPU implementation on this machine; they do not show that paging itself causes the slowdown. An independent study also reports limitations in its CPU performance (Poperszky, 2026). 6.11

Costs

A 10k-token document takes minutes to prefill on four cores in every configuration. First-in-first-out admission delays short requests behind long documents; in a pilot, median time to first token rose from 1.3 to 6.8 seconds. Extra concurrency also slows output tokens. Commit-on-write took 0.5–0.8 s per token on four cores versus 0.04–0.07 s for stock running only the slots that fit, and 1.1 versus 0.11 s on fifteen cores (Tables 2 and 3; medians). Fewer slots allow faster streaming. The measured admission margin cannot guarantee staying within the cap. Strict overcommit ignores MAP_NORESERVE and rejects reservations above its configured limit. Release preserves conversations but forces the server to reprocess history resent by clients. With eight users, six turns each and ample memory (Table 19), release increased prompt tokens processed from 7,464 to 50,966, matching stock with prefix reuse disabled. Over the last three turns, median time to first token rose from 1.1 to 6.2 s, and throughput fell by a factor of 1.71. Commit-on-write without release reused history like stock, peaking at 1,618 instead of 4,713 MiB. Release under pressure keeps finished conversations until a new request needs memory, then erases the least recently used idle slot through the server’s slot-erase endpoint, returning its pages to the kernel. With 16 users taking eight turns with think time (Table 4), eight of nine predictions

Table 5. Which systems provide each capability the design coordinates. Lazy: KV memory committed only as written; release: a finished request’s KV returned to the operating system; admit: worst-case KV reserved before a request starts; cap: admission enforced against a host memory limit; CPU: a multi-user CPU server. “pool”: memory stays in a pool committed at start-up; “opt.”: optional; “–”: not provided or not reported. System

Lazy

Release

vLLM-CPU (Kwon et al., 2023) noa pool vAttention (Prabhu et al., 2025) opt.c deferredd g TensorRT-LLM (NVIDIA, 2026; lowsfer, 2026) no pool llama.cpp, per-slot noa no a llama.cpp, unified (-kvu) no poole llama.cpp paged prototype (matiaslin, 2026) noa pool #18747 (pestopoppa, 2026) nof no community forks yes single process this work yes yes

Admit

Cap

CPU

nob – yes no no – – – yes

pool – – – – – – – cgroup

yes no no yes yes yes yes no yes

a

Measured here (Section 4). b Admits while free blocks exist and preempts on shortage. c The published design pre-allocates physical pages at initialisation; the open-source release (https://github.com/microsoft/vattention) makes this optional. d Freed per request, reclaimed when memory runs low. e Idle slots are purged inside the committed buffer when it fills. f Lazy mapping, but the zero-fill commits every page. g The host tier is reserved with MAP_NORESERVE, then committed in full by a background thread from start-up, not on write.

held; no run of this policy was killed. At 3 GiB, all conversations fit, so release under pressure matched keeping everything: 1.96× the throughput of immediate release and a 2.0 instead of 19.5 s median wait for a first token. At 2.3 GiB, the throughput ratio was 1.56×. At the two lowest caps, evicting conversations just before their next turn caused slightly longer waits than immediate release, the failed prediction. Keeping everything without admission caused kills at every cap below 3 GiB. Stock’s unified buffer purges idle slots in slot order; it failed 15–16 requests per run below 3 GiB and ran at 0.55× the speed at 3 GiB. Retention policies are established (Abhyankar et al., 2024; Yu et al., 2025). These conversations are synthetic, and batch timing affects outputs in both configurations.

7

R ELATED W ORK

llama.cpp issue #7474 proposed removing the zero-fill (Tunney, 2024). In #9671, a maintainer opposed this because operations reading padded, uninitialised cells could produce NaNs (Nguyen, 2024). PR #11580 used an mmapbacked buffer for NUMA placement, but was closed without merging (fairydreaming, 2025). PR #21757 and OpenVINO Model Server grow their caches by copying existing contents and do not release unused memory (rockyRunnr, 2026a; OpenVINO Toolkit, 2026; Section 4). In a single process, llm_rs2 releases KV pages with madvise (hedone21, 2026). rockyRunnr found that their demand-paging change saved no memory for a 27B model on Apple Silicon (rockyRunnr, 2026b). MemVanta, a separate single-process runtime, completes under memory caps at which llama.cpp is killed, and without a cap runs about four times slower than llama.cpp (Singla, 2026). Among the systems compared in Table 5, none combines commitment on first write,

release to the kernel and admission under a memory cap in a multi-user CPU server. Worst-case KV reservation is established in Orca, TensorRTLLM’s GUARANTEED_NO_EVICT policy and ExLlamaV2 (Yu et al., 2022; NVIDIA, 2026; turboderp, 2024). Ao et al. (2026) study cascading problems from growing KV demand. SLINFER controls CPU and GPU admission using available memory (Xu et al., 2026). MuxServe, SeaLLM, CrossPool and kvcached/Prism share GPU memory budgets across models (Duan et al., 2024; Zhao et al., 2025; Ye et al., 2026; ovg-project, 2025; Yu et al., 2026b). Our external proxy admits requests against a cgroup cap without adding admission logic to the server. Linux supplies and reclaims physical pages across independent CPU server processes. PagedAttention manages blocks within a committed pool (Kwon et al., 2023). vAttention and vTensor use GPU virtual memory mechanisms; vAttention maps physical pages to each request on demand and unmaps or reuses them when the request completes (Prabhu et al., 2025; Xu et al., 2024), while Mamo et al. (2026) compare KV management approaches. mzCache works inside llama.cpp to evict KV into compressed memory or storage under Android memory pressure and reports poor results from ordinary kernel paging (Yu et al., 2026a). It manages memory after commitment. We avoid committing unused pages and measure commitment in paged CPU designs, including the unmerged llama.cpp prototype, in Section 4. Outside ML, the cost of zeroing has been measured (Yang et al., 2011), and Squeezy skips unnecessary zeroing for serverless virtual machines (Lagkas Nikolos et al., 2026). Our server must keep unused cells logically zero so masked reads cannot produce NaNs, while making every KV wipe lazy. ProfInfer profiles llama.cpp operators, phases and threads using eBPF probes and hardware counters (Zou et al., 2026). It counts faults and memory events but does not account for KV allocation or residency. FetchBPF, eBPF-mm, bpf_fault and TierBPF introduce kernel support for memory policies (Cao et al., 2024; Mores et al., 2024; Zussman et al., 2026; Wang et al., 2026). We use stock kernel interfaces to measure KV commitment and guide server memory policy.

8

L IMITATIONS AND C ONCLUSION

Our llama.cpp tests check greedy output and perplexity at 1–7B and serving up to 14B on Sapphire Rapids and Graviton3. Timing differences below about 8% cannot be ruled out. Strict overcommit rejects the reservation even with MAP_NORESERVE. Admission handles only completion endpoints, relies on a measured margin, and can delay short requests behind long ones. Commit-on-write’s additional 250–290 MiB at 64 users remains unexplained.

The main results use flash attention. Against stock running only the slots that fit, throughput improves by 1.17– 1.26× on four cores below saturation but is similar on fifteen cores under 6 GiB (Section 6.6). Extra concurrency makes each output token ten to twelve times slower in both tests. Least-recently-used release causes slightly longer waits than immediate release at the lowest caps. The 64-user unifiedcache comparison is cross-session, and the conversations are synthetic. Kernel measurements show that llama.cpp’s zero-fill and wipes commit KV pages that inference may never write. Committing on first write, releasing to the kernel after each request, and admitting requests by header-predicted KV preserves tested greedy output and perplexity. On identical work, peak memory is about 8% of stock’s (12.3× ratio), with no statistically detectable throughput difference. More servers and requests fit: throughput rises below CPU saturation; above it, requests start sooner but tokens arrive more slowly. Much of this unused commitment can be avoided without runtime block paging, which still allows requests to share a committed pool.

R EFERENCES Abhyankar, R., He, Z., Srivatsa, V., Zhang, H., and Zhang, Y. InferCept: Efficient Intercept Support for Augmented Large Language Model Inference. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 81–95. PMLR, July 2024. URL https: //proceedings.mlr.press/v235/abhyank ar24a.html. Agarwal, N. and Wenisch, T. F. Thermostat: Applicationtransparent Page Management for Two-tiered Main Memory. In Proceedings of the Twenty-Second International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 631–644. ACM, April 2017. doi: 10.1145/3037697.3037706. URL http s://doi.org/10.1145/3037697.3037706. am17an. llama + CUDA: flash_attn_ext_rows (fix unified kv for multi-seq) by am17an (Pull Request #29510), September 2026. URL https://github.com/ggml-org /llama.cpp/pull/29510. Ao, R., Dong, J., Luo, G., and Simchi-Levi, D. ServiceInduced Congestion in Memory-Constrained LLM Serving, June 2026. URL https://arxiv.org/abs/ 2606.15555. Appel, A. W. and Li, K. Virtual Memory Primitives for User Programs. In Proceedings of the Fourth International Conference on Architectural Support for Programming

Languages and Operating Systems (ASPLOS IV), pp. 96– 107. ACM, April 1991. doi: 10.1145/106972.106984. URL https://doi.org/10.1145/106972.1 06984. bartowski1182. Misc. bug: Q4_0 repacking results in double RAM usage (Issue #12149), March 2025. URL https: //github.com/ggml-org/llama.cpp/issue s/12149. Bitchebe, S. and Tchana, A. Out of Hypervisor (OoH): Efficient Dirty Page Tracking in Userspace Using Hardware Virtualization Features. In SC22: International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1–14. IEEE, November 2022. doi: 10.1109/SC41404.2022.00092. URL https: //doi.org/10.1109/SC41404.2022.00092. Cao, X., Patel, S., Lim, S. Y., Han, X., and Pasquier, T. FetchBPF: Customizable Prefetching Policies in Linux with eBPF. In 2024 USENIX Annual Technical Conference (USENIX ATC 24), pp. 369–378, Santa Clara, CA, July 2024. USENIX Association. ISBN 978-1-93913341-0. URL https://www.usenix.org/confe rence/atc24/presentation/cao. DanoPTT. Eval bug: with -np 2 and --kv-unified, prompt processing drops 42-54% from the second long request onward (single GPU, sequential requests, no spill, no speculation) (Issue #28495), September 2026. URL ht tps://github.com/ggml-org/llama.cpp/i ssues/28495. Duan, J., Lu, R., Duanmu, H., Li, X., Zhang, X., Lin, D., Stoica, I., and Zhang, H. MuxServe: Flexible SpatialTemporal Multiplexing for Multiple LLM Serving. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 11905–11917. PMLR, July 2024. URL https://proceedings.mlr.press/v2 35/duan24a.html. fairydreaming. NUMA-aware KV cache buffer type (experimental) by fairydreaming (Pull Request #11580), February 2025. URL https://github.com/ggml-org /llama.cpp/pull/11580. Free Software Foundation. malloc/malloc.c. The GNU C Library (glibc), January 2026. URL https://sour ceware.org/git/?p=glibc.git;a=blob;f =malloc/malloc.c;hb=glibc-2.43. futrueiot-cpu. server: --cache-ram limit ineffective on Linux due to overcommit, causes OOM kill when caching multimodal (image) prompts (Issue #22629), May 2026. URL https://github.com/ggml-org/llama.cpp /issues/22629.

Gerganov, G. and llama.cpp contributors. llama.cpp, March 2023. URL https://github.com/ggml-org/l lama.cpp. hedone21. llm_rs2 (GitHub repository), 2026. URL http s://github.com/hedone21/llm_rs2. Hetzelt, F. and Buhren, R. Security Analysis of Encrypted Virtual Machines. In Proceedings of the 13th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments, pp. 129–142. ACM, April 2017. doi: 10.1145/3050748.3050763. URL https: //doi.org/10.1145/3050748.3050763. Hoefler, T. and Belli, R. Scientific benchmarking of parallel computing systems: Twelve ways to tell the masses when reporting performance results. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1–12. ACM, November 2015. doi: 10.1145/2807591.2807644. URL https://doi.org/10.1145/2807591.2807 644. J4e6eR. Added dynamic context size. This is perfect for servers running llama models as a service. by J4e6eR (Pull Request #13295), May 2025. URL https://gi thub.com/ggml-org/llama.cpp/pull/1329 5. jaholmesuk. Arm CPU backend: Quantized decode is compute-bound at ~55-60% of memory bandwidth (Neoverse-N2, SVE2+i8mm); perf profile included (Issue #25976), July 2026. URL https://github.com/g gml-org/llama.cpp/issues/25976. Jiang, X., Zhou, Y., Cao, S., Stoica, I., and Yu, M. NEO: Saving GPU Memory Crisis with CPU Offloading for Online LLM Inference. In Proceedings of Machine Learning and Systems, volume 7. MLSys, 2025. URL https:// proceedings.mlsys.org/paper_files/pa per/2025/hash/66a026c0d17040889b50f0 dfa650e5e0-Abstract-Conference.html. Kalibera, T. and Jones, R. Rigorous benchmarking in reasonable time. In Proceedings of the 2013 International Symposium on Memory Management, pp. 63–74. ACM, June 2013. doi: 10.1145/2464157.2464160. URL https: //doi.org/10.1145/2464157.2464160. Khan, Q. and Chen, L. Streamlining LLM Inference at the Edge with TFLite, August 2024. URL https://deve lopers.googleblog.com/en/streamlinin g-llm-inference-at-the-edge-with-tfl ite/. Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J. E., Zhang, H., and Stoica, I. Efficient memory management for large language model

serving with PagedAttention. In Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611–626, Koblenz, Germany, October 2023. ACM. doi: 10.1145/3600006.3613165. URL https://doi.or g/10.1145/3600006.3613165. Lagkas Nikolos, O., Alverti, C., Psomadakis, S., Goumas, G., and Koziris, N. Squeezy: Rapid VM Memory Reclamation for Serverless Functions. In Proceedings of the 21st European Conference on Computer Systems, pp. 1467–1482, New York, NY, USA, April 2026. ACM. doi: 10.1145/3767295.3769357. URL https: //doi.org/10.1145/3767295.3769357. Lingala, R. R., Rao, K. G., Srujan, P., Manocha, S., and Venkat, V. Benchmarking Post-Quantum Key Encapsulation in S3-Compatible Object Storage under Client Concurrency, October 2026. URL https://arxiv. org/abs/2610.21457. Linux man-pages project. madvise(2) - Linux manual page, February 2026. URL https://man7.org/linux /man-pages/man2/madvise.2.html. lowsfer. Fill the KVCM2 host tier progressively by lowsfer (Pull Request #19650), September 2026. URL https: //github.com/NVIDIA/TensorRT-LLM/pul l/19650. Mamo, O., Kogiou, O., Yi, H., and Yu, W. Comparative Characterization of KV Cache Management Strategies for LLM Inference, April 2026. URL https://arxi v.org/abs/2604.05012. matiaslin. Paged KV cache and scheduler: Phase 1 (design feedback requested) (Discussion #21961), April 2026. URL https://github.com/ggml-org/llama .cpp/discussions/21961. Mores, K., Psomadakis, S., and Goumas, G. eBPF-mm: Userspace-guided memory management in Linux with eBPF, September 2024. URL https://arxiv.org/ abs/2409.11220. Mytkowicz, T., Diwan, A., Hauswirth, M., and Sweeney, P. F. Producing wrong data without doing anything obviously wrong! In Proceedings of the 14th International Conference on Architectural Support for Programming Languages and Operating Systems, pp. 265–276. ACM, March 2009. doi: 10.1145/1508244.1508275. URL ht tps://doi.org/10.1145/1508244.1508275. Na, S., Jeong, G., Ahn, B. H., Young, J., Krishna, T., and Kim, H. Understanding Performance Implications of LLM Inference on CPUs. In 2024 IEEE International Symposium on Workload Characterization (IISWC), pp. 169–180, Vancouver, BC, Canada, September 2024. IEEE.

doi: 10.1109/IISWC63097.2024.00024. URL https: //ieeexplore.ieee.org/document/10763 564/. Nguyen, A. M. Bug: Initializing KV Cache Spikes Memory, Crashing on Android (Issue #9671), September 2024. URL https://github.com/ggml-org/llama .cpp/issues/9671. NVIDIA. Useful Runtime Options — TensorRT LLM, 2026. URL https://nvidia.github.io/Ten sorRT-LLM/latest/legacy/performance/p erformance-tuning-guide/useful-runti me-flags.html. OpenVINO Toolkit. OpenVINO Model Server documentation: docs/llm/reference.md, 2026. URL https: //github.com/openvinotoolkit/model_s erver/blob/d39f7b83c4db46867b0aff72c f82104545b5fc52/docs/llm/reference.md. ovg-project. kvcached: Virtualized Elastic KV Cache for Dynamic GPU Sharing and Beyond, 2025. URL https: //github.com/ovg-project/kvcached. Patel, P., Choukse, E., Zhang, C., Shah, A., Goiri, Í., Maleki, S., and Bianchini, R. Splitwise: Efficient generative LLM inference using phase splitting. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA), pp. 118–132. IEEE, June 2024. doi: 10.1109/ISCA59077.2024.00019. URL https://do i.org/10.1109/ISCA59077.2024.00019.

2025. doi: 10.1145/3669940.3707256. URL https: //doi.org/10.1145/3669940.3707256. Ren, J., Luo, J., Wu, K., Zhang, M., Jeon, H., and Li, D. Sentinel: Efficient Tensor Migration and Allocation on Heterogeneous Memory Systems for Deep Learning. In 2021 IEEE International Symposium on High-Performance Computer Architecture (HPCA), pp. 598–611. IEEE, February 2021. doi: 10.1109/hpca51647.2021.00057. URL https://doi.org/10.1109/hpca51647. 2021.00057. rhjdvsgsgks. Misc. bug: Memory usage increased when using repacking (Issue #16761), October 2025. URL https://github.com/ggml-org/llama.cpp /issues/16761. rockyRunnr. kv : add dynamic KV cache resize (--kvdynamic) by rockyRunnr (Pull Request #21757), April 2026a. URL https://github.com/ggml-org /llama.cpp/pull/21757. rockyRunnr. Why My Demand-Paging Approach Did Not Save KV Memory on Apple Silicon, March 2026b. URL https://rockyrunnr.github.io/posts/d emand-paging-fails-apple-silicon-gpu /. Singla, S. MemVanta: Low-memory C++20 LLM inference runtime for quantized GGUF models on CPU, 2026. URL https://github.com/sauravsingla/MemV anta.

pestopoppa. ggml, llama : add KV cache size limiting and block tracking infrastructure by pestopoppa (Pull Request #18747), January 2026. URL https://github.c om/ggml-org/llama.cpp/pull/18747.

smitranic. Misc. bug: llama-server with -kvu and --parallel 4 slows down tg with more inactive slots (Issue #19523), February 2026. URL https://github.com/ggm l-org/llama.cpp/issues/19523.

Petrini, F., Kerbyson, D. J., and Pakin, S. The Case of the Missing Supercomputer Performance: Achieving Optimal Performance on the 8,192 Processors of ASCI Q. In Proceedings of the 2003 ACM/IEEE Conference on Supercomputing. ACM, November 2003. doi: 10.1145/1048935.1050204. URL https://doi.or g/10.1145/1048935.1050204.

sxch775-work. Feature Request: Can the llama.cpp server set an independent length for each context? (Issue #16694), October 2025. URL https://github.c om/ggml-org/llama.cpp/issues/16694.

Poperszky, T. Pipeline-Native Transformers: Co-Designing Model Architecture and CPU Inference for BandwidthEfficient Autoregressive Decode, August 2026. URL https://arxiv.org/abs/2608.23841. Prabhu, R., Nayak, A., Mohan, J., Ramjee, R., and Panwar, A. vAttention: Dynamic Memory Management for Serving LLMs without PagedAttention. In Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 1, pp. 1133–1150. ACM, March

tarruda. I noticed that llama-server increases memory usage the more conversations are started (Discussion #18488), December 2025. URL https://github.com/ggm l-org/llama.cpp/discussions/18488. The kernel development community. Soft-Dirty PTEs — The Linux Kernel documentation, 2026a. URL https: //www.kernel.org/doc/html/latest/adm in-guide/mm/soft-dirty.html. The kernel development community. Userfaultfd — The Linux Kernel documentation, 2026b. URL https:// www.kernel.org/doc/html/latest/admin -guide/mm/userfaultfd.html.

The kernel development community. Overcommit Accounting — The Linux Kernel documentation, 2026c. URL https://www.kernel.org/doc/html/late st/mm/overcommit-accounting.html. TheElo. When running parallel inference and a instance is running into the "Context size has been exceeded." then all instances are aborted and return "Context size has been exceeded." instead of just the one impacted (Issue #1757), April 2026. URL https://github.com/l mstudio-ai/lmstudio-bug-tracker/issue s/1757. Tunney, J. ggml-backend should avoid memset’ing brand new memory (Issue #7474), May 2024. URL https: //github.com/ggml-org/llama.cpp/issue s/7474. turboderp. ExLlamaV2 dynamic generator: doc/dynamic.md and exllamav2/generator/dynamic.py, 2024. URL https://github.com/turboderp -org/exllamav2/blob/7dc12af3a81f34ac 3f27cd7602ed539b638933ca/exllamav2/g enerator/dynamic.py. Wang, X., Zussman, T., Ma, B., Cidon, A., and Li, D. TierBPF: Page Migration Admission Control for Tiered Memory via eBPF, April 2026. URL https://arxi v.org/abs/2604.12300. Xiao, J., Huang, Q., Chen, X., and Tian, C. Understanding Large Language Models in Your Pockets: Performance Study on COTS Mobile Devices. IEEE Transactions on Mobile Computing, 25(8):13077–13094, August 2026. doi: 10.1109/TMC.2026.3674827. URL https://do i.org/10.1109/TMC.2026.3674827. Xu, C., Li, Z., Chen, Q., Zhao, H., Tang, X., and Guo, M. Towards Resource-Efficient Serverless LLM Inference with SLINFER. In 2026 IEEE International Symposium on High Performance Computer Architecture (HPCA), pp. 1–18. IEEE, January 2026. doi: 10.1109/hpca68181. 2026.11408548. URL https://doi.org/10.110 9/hpca68181.2026.11408548. Xu, J., Zhang, R., Guo, C., Hu, W., Liu, Z., Wu, F., Feng, Y., Sun, S., Shao, C., Guo, Y., Zhao, J., Zhang, K., Guo, M., and Leng, J. vTensor: Flexible Virtual Tensor Management for Efficient LLM Serving, July 2024. URL https://arxiv.org/abs/2407.15309. Yang, X., Blackburn, S. M., Frampton, D., Sartor, J. B., and McKinley, K. S. Why Nothing Matters: The Impact of Zeroing. In Proceedings of the 2011 ACM International Conference on Object Oriented Programming Systems Languages and Applications (OOPSLA ’11), pp. 307– 324, Portland, Oregon, USA, October 2011. ACM. doi:

10.1145/2048066.2048092. URL https://doi.or g/10.1145/2048066.2048092. Ye, Z., Wo, T., Xue, D., Zhang, M., Teng, Y., Hu, C., and Yang, R. CrossPool: Efficient Multi-LLM Serving for Cold MoE Models through KV-Cache and Weight Disaggregation, June 2026. URL https://arxiv.org/ abs/2606.24506. Yu, G.-I., Jeong, J. S., Kim, G.-W., Kim, S., and Chun, B.G. Orca: A Distributed Serving System for TransformerBased Generative Models. In 16th USENIX Symposium on Operating Systems Design and Implementation (OSDI 22), pp. 521–538. USENIX Association, 2022. ISBN 978-1-939133-28-1. URL https://www.usenix.o rg/conference/osdi22/presentation/yu. Yu, H., Kim, M., Park, J., and Lee, K. mzCache: OnDevice LLM Memory Management under Multitasking. In Proceedings of the 32nd Annual International Conference on Mobile Computing and Networking, pp. 1494–1508, Austin, TX, USA, October 2026a. ACM. doi: 10.1145/3795866.3844495. URL https: //doi.org/10.1145/3795866.3844495. Yu, L., Lin, J., and Li, J. Stateful Large Language Model Serving with Pensieve. In Proceedings of the Twentieth European Conference on Computer Systems, pp. 144– 158. ACM, March 2025. doi: 10.1145/3689031.3696086. URL https://doi.org/10.1145/3689031. 3696086. Yu, S., Qiao, Y., Ma, M., Li, Y., Yang, S., Tong, X., Wang, Y., Xie, Z., An, Y., Cao, S., Bao, K., Vij, D., Ding, X., Wang, Y., Lu, Q., Wang, Z., Gao, G., Xu, H., Shu, J., Xing, J., and Sheng, Y. Prism: Cost-Efficient MultiLLM Serving via GPU Memory Ballooning. In 20th USENIX Symposium on Operating Systems Design and Implementation (OSDI 26), pp. 75–93, Seattle, WA, July 2026b. USENIX Association. URL https://www.us enix.org/conference/osdi26/presentat ion/yu-shan. Yuan, Q. and Zhao, J. Searching for Plans You Can Actually Build: A Realizability-Aware Full-Space Optimizer for MoE Training and Serving, July 2026. URL https: //arxiv.org/abs/2607.18631. Zhao, Y., Chen, J., Sun, P., Li, L., Liu, X., and Jin, X. SeaLLM: Service-Aware and Latency-Optimized Resource Sharing for Large Language Model Inference, April 2025. URL https://arxiv.org/abs/25 04.15720. Zijlstra, P. Re: [PATCH 4/5] perf record: mmap output file - v5, November 2013. URL https://lkml.iu.ed u/hypermail/linux/kernel/1311.2/01202. html.

Zou, B., Roy, D., Airao, D. Y., Xu, W., Sun, B., Liu, Y., and Chen, H. ProfInfer: An eBPF-based Fine-Grained LLM Inference Profiler. In Proceedings of Machine Learning and Systems (MLSys 2026), Industry Track, volume 8, pp. 437–450. MLSys, May 2026. URL https://procee dings.mlsys.org/paper_files/paper/20 26/file/03dbc11a22e79cd38bea53cf518c 2371-Paper-Conference.pdf. Zussman, T., Dey, R., Zengin, H., Fang, Y., Hildenbrand, D., and Cidon, A. It’s the Kernel’s Fault! Custom Page Fault Handling With bpf_fault. In Proceedings of the ACM SIGOPS 32nd Symposium on Operating Systems Principles, pp. 448–464. ACM, September 2026. doi: 10.1145/3830418.3843896. URL https://doi.or g/10.1145/3830418.3843896.

AI U SAGE D ISCLOSURE An AI coding assistant helped write the experiment and analysis scripts, generate figures, search the literature, and revise wording. The authors designed the study, ran every experiment, checked each reported number against the run data, and wrote or approved the final text. The authors take responsibility for the paper’s content and conclusions.

goodput (req/s)

16 users

0.08

32 users

0.06

16 users 32 users

0.04

commit-on-write unified KV (-kvu, sized to cap)

0.02 0

peak memory (GiB)

4 GiB cap 0.1

stock

8 6 4 2

commit-on-write

0 4k

0

1

2

3

4

peak memory (GiB) Figure 4. Goodput and peak memory for Qwen2.5-1.5B under a 4 GiB cap on c7i.2xlarge. Runs use the same session and complete every request. Stock’s unified KV cache is sized to the cap with prompt caching disabled. It fits the workload but uses more memory and achieves 0.65× and 0.60× commit-on-write’s goodput at 16 and 32 users.

8k

16k

32k

context per slot (k tokens) Figure 5. Peak memory as the configured context increases for the same 24 requests from eight users on c7i.2xlarge. Stock’s footprint grows with reserved context. Commit-on-write’s footprint changes little because the requests do not use the additional space. The memory cap is 13 GiB. stock, 16k

3

stock, right-sized 4k

A

P RE - REGISTRATION : EVERY SERVING GRID

We made predictions before each experiment grid using analysis/e1_predict.py. The model combines each request’s KV requirement from the model header with a base-memory estimate for the model and machine. It replays requests in decode steps, with each active request generating one token per step, and tracks memory as requests start and finish. The serving-grid prediction files and their commit records are listed in analysis/e1_frozen.tsv. Colocation, shared-admission and conversation experiments have separate prediction files. We score each outcome against its original committed prediction only. The scorer shows the frozen prediction, the corrected model and the measurement separately so later corrections cannot turn a miss into a successful prediction. Runs without a frozen prediction are reported but excluded from prediction-agreement counts. Every miss remains in the results. Tables 6–19 report the individual experiments. “Predicted (frozen)” means the outcome recorded before the run.

B

S UPPORTING FIGURES AND TABLES

The main text quotes the numbers behind these; they are collected here for space.

C

C ORRECTNESS GATES

The correctness gates test both initial allocation and later operations that clear or release KV memory. Where applicable, the tests compare the lazy configuration with eager runs before and after it, as well as the pinned stock binary. Differences between eager repeats are marked inconclusive rather than treated as evidence against the lazy configuration. The cases are:

7 12

commit-on-write 0

2

4

6

8

10 12 14

servers in one 14 GiB cap Figure 6. Independent Qwen2.5-1.5B servers fitting within one 14 GiB cap on c7i.2xlarge. Each server has eight slots. Stock fits three servers with 16k context per slot or seven with 4k context. Commit-on-write with release fits twelve. Adding one server causes start-up failure for stock or an out-of-memory kill for commit-on-write without group admission.

• Greedy completion. Eight cases cover Qwen2.5-1.5B and Llama-3.2-1B with flash attention on and off at context lengths of 4,096 and 16,384 tokens. All eight produce identical text. The checks also confirm that the lazy configuration skips the initial clear and that its fresh buffer contains only zeros. • Server release and reuse. Seven cases cover two concurrent requests, reuse of a finished slot, short and long requests written into released slots, and an unequallength pair in which one slot is released while the other continues decoding. All seven Intel cases produce identical text. • Perplexity across cache wipes. The test processes six chunks of 512 tokens and clears the cache between chunks. Eager and lazy configurations produce the same final estimate of 5.1304 ± 0.44352 for Qwen2.51.5B. • Quantised KV. Tests with q8_0 KV compare lazy and eager configurations using the same KV format. The tested outputs match. • Larger model. The Qwen2.5-7B correctness gates pass, with identical perplexity of 4.5338.

• Graviton3. All four completion cases match, and perplexity is identical at 5.1368. Four of the seven initial server cases fail the output comparison. Follow-up tests vary request arrival gaps and show that the differences depend on batch composition. Stock and commit-onwrite produce identical text for the same arrival gap in all 24 diagnostic requests. The original failed gate remains reported. • Concurrent conversations. E20 also finds output differences between repeated runs of the same configuration on Intel. Both stock and commit-on-write show this behaviour, so these experiments do not establish unconditional output identity under concurrent load. The completion, server, perplexity and release records use run-directory names beginning with T8B-correct. These include separate q8_0, release, 7B, Graviton3 and patch-v6 checks. The batch-composition diagnostic is recorded under T8D-batch-arm. Each directory retains the commands, outputs and recorded verdicts.

D

A RTIFACT

The artifact builder, scripts/make_artifact.py, assembles the llama.cpp patches, admission and workload tools, KV memory-accounting code, frozen predictions, scoring scripts and relevant run directories. It excludes repository history and research notes, removes specified identifying strings and checks the resulting files before creating the archive. The artifact contains the recorded data and scripts needed to recompute the scores and regenerate every table and figure. These analyses require only the Python 3 standard library. Regeneration from the unpacked artifact reproduces the table and figure source files byte for byte. Rerunning inference requires the models, runtime builds and machine setup described in the artifact README. The artifact (artifact.zip) is available as an ancillary file of this arXiv submission.

Table 6. Predicted and observed serving outcomes for Qwen2.5-1.5B on c7i.2xlarge in E1. The grid compares stock, quantised KV and successive changes to commitment, release and admission. Frozen outcome predictions match 65 of 70 runs, including the reference runs and repeated cases. Config C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C1 C2 C2 C2 C2 C2 C2 C2 C2 C2 C2 C3 C3 C3 C3 C3 C3 C3 C3 C3 C4 C4 C4 C4 C4 C4 C4 C4 C4 C4 C5 C5 C5 C5 C5 C5 C5 C5 C5 C5 C5 C6 C6 C6 C6 C6 C6 C6 C6 C6 C6 C7 C7 C7 C7 C7 C7 C7 C7 C7

Workload stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock + q8_0 stock + q8_0 stock + q8_0 stock + q8_0 stock + q8_0 stock + q8_0 stock + q8_0 stock + q8_0 stock + q8_0 lazy, no release lazy, no release lazy, no release lazy, no release lazy, no release lazy, no release lazy, no release lazy, no release lazy, no release lazy, no release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + q8_0 lazy + release + q8_0 lazy + release + q8_0 lazy + release + q8_0 lazy + release + q8_0 lazy + release + q8_0 lazy + release + q8_0 lazy + release + q8_0 lazy + release + q8_0

10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents

Cap (MiB) Users Predicted (frozen) Measured 13,312 2,048 2,048 2,048 2,048 3,072 3,072 3,072 4,096 4,096 4,096 2,048 2,048 2,048 2,048 3,072 3,072 3,072 4,096 4,096 4,096 2,048 2,048 2,048 3,072 3,072 3,072 4,096 4,096 4,096 2,048 2,048 2,048 2,048 3,072 3,072 3,072 4,096 4,096 4,096 13,312 2,048 2,048 2,048 2,048 3,072 3,072 3,072 4,096 4,096 4,096 2,048 2,048 2,048 2,048 3,072 3,072 3,072 4,096 4,096 4,096 2,048 2,048 2,048 3,072 3,072 3,072 4,096 4,096 4,096

16 16 16 32 8 16 32 8 16 32 8 16 16 32 8 16 32 8 16 32 8 16 32 8 16 32 8 16 32 8 16 16 32 8 16 32 8 16 32 8 16 16 16 32 8 16 32 8 16 32 8 16 16 32 8 16 32 8 16 32 8 16 32 8 16 32 8 16 32 8

completes dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start completes completes dies at start completes completes dies at start completes dies at start dies at start dies at start dies at start dies at start completes dies at start dies at start completes killed killed killed completes completes killed completes completes completes completes completes completes completes killed completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes

Full/trunc/failed Peak pred. Peak meas.

completes dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start killed ̸= killed ̸= dies at start completes completes dies at start completes dies at start dies at start dies at start dies at start dies at start killed ̸= dies at start dies at start completes killed killed killed completes killed ̸= killed completes completes killed ̸= completes completes completes completes killed completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes completes

Outcome as predicted (frozen before the run) in 65 of 70 runs.

48/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 5/0/19 14/0/34 0/0/0 23/0/1 44/0/4 0/0/0 23/0/1 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 8/0/16 0/0/0 0/0/0 24/0/0 21/0/27 21/0/27 6/0/90 24/0/0 32/0/16 24/0/72 24/0/0 48/0/0 35/0/61 24/0/0 48/0/0 48/0/0 48/0/0 6/0/90 24/0/0 48/0/0 96/0/0 24/0/0 48/0/0 96/0/0 24/0/0 48/0/0 48/0/0 96/0/0 24/0/0 48/0/0 96/0/0 24/0/0 48/0/0 96/0/0 24/0/0 48/0/0 96/0/0 24/0/0 48/0/0 96/0/0 24/0/0 48/0/0 96/0/0 24/0/0

8,185 8,185 8,185 15,353 4,601 8,185 15,353 4,601 8,185 15,353 4,601 2,809 2,809 4,601 1,913 2,809 4,601 1,913 2,809 4,601 1,913 4,825 8,633 2,921 4,825 8,633 2,921 4,825 8,633 2,921 2,083 2,083 3,348 1,374 2,083 3,348 1,374 2,083 3,348 1,374 1,781 1,781 1,781 2,448 1,310 1,781 2,448 1,310 1,781 2,448 1,310 1,594 1,594 1,625 1,310 1,781 2,438 1,310 1,781 2,448 1,310 1,424 1,779 1,173 1,424 1,779 1,173 1,424 1,779 1,173

9,280 1,746 1,723 1,755 1,780 3,072 3,072 3,072 3,935 3,953 3,952 1,786 1,755 1,768 2,046 3,072 3,069 2,196 3,242 3,957 2,192 1,735 1,745 1,767 3,051 3,072 3,071 3,951 3,947 3,132 2,040 2,041 2,048 1,669 3,066 2,956 1,669 3,175 4,063 1,669 1,931 1,927 1,930 2,048 1,419 1,927 2,667 1,419 1,930 2,667 1,416 1,735 1,731 1,813 1,416 1,932 2,663 1,422 1,932 2,675 1,419 1,566 1,996 1,282 1,571 1,996 1,277 1,567 1,995 1,282

Table 7. Predicted and observed outcomes for 64-user serving on c7i.8xlarge using 15 cores in E5. The comparison includes stock, commit-on-write and vLLM-CPU. Runs at 32 GiB use identical chat requests. The other runs include document requests. Frozen predictions match 17 of 19 scored runs. The additional post hoc run is shown but not scored. Config C1 C1 C1 C1 C1 C2 C2 C2 C2 C2 C6 C6 C6 C6 C6 V V V V V

Workload stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission vLLM-CPU (paged pool) vLLM-CPU (paged pool) vLLM-CPU (paged pool) vLLM-CPU (paged pool) vLLM-CPU (paged pool)

Cap (MiB) Users Predicted (frozen) Measured

10% documents chat only chat only chat only 10% documents 10% documents chat only chat only chat only 10% documents 10% documents chat only chat only chat only 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents

20,480 32,768 32,768 32,768 6,144 20,480 32,768 32,768 32,768 6,144 20,480 32,768 32,768 32,768 6,144 20,480 20,480 6,144 6,144 6,144

64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64

dies at start completes completes completes dies at start completes completes completes completes dies at start completes completes completes completes completes completes completes completes (post hoc) completes

dies at start completes completes completes dies at start completes completes completes completes dies at start completes completes completes completes completes dies at start ̸= completes timed out ̸= timed out completes

Full/trunc/failed Peak pred. Peak meas. 0/0/0 192/0/0 192/0/0 192/0/0 0/0/0 171/0/21 192/0/0 192/0/0 192/0/0 0/0/0 192/0/0 192/0/0 192/0/0 192/0/0 192/0/0 0/0/0 192/0/0 107/0/85 92/0/100 192/0/0

29,689 29,689 29,689 29,689 29,689 8,185 8,185 8,185 8,185 8,185 3,541 2,114 2,114 2,114 3,541 20,160 18,432 5,824 – 5,824

20,431 31,851 31,850 31,850 6,004 9,895 10,256 10,256 10,265 5,940 3,915 2,454 2,458 2,435 3,916 20,480 20,480 6,055 5,574 6,060

Outcome as predicted (frozen before the run) in 17 of 19 runs. Workload: 10% document requests, except the 32,768 MiB rows (chat-only, identical requests: the same-work cell). V at 20,480 MiB: first row with a 320 MiB margin (worker OOM-killed at start-up), second with 2 GiB. V at 6,144 MiB: pools 1,378 / 898 / 1,378 MiB; the first two stopped at a 30-minute limit, the third had 90 minutes.

Table 8. Serving results using request lengths from the conversation workload in the Azure LLM inference trace from 2023. E6 uses Qwen2.5-1.5B with 64 users on c7i.8xlarge. The table reports full completions, truncations and failures separately. Frozen outcome predictions match six of eight runs. Config C1 C1 C2 C2 C6 C6 V V

Workload stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) lazy + release + admission lazy + release + admission vLLM-CPU (paged pool) vLLM-CPU (paged pool)

conversation trace conversation trace conversation trace conversation trace conversation trace conversation trace conversation trace conversation trace

Cap (MiB) Users Predicted (frozen) Measured 32,768 6,144 32,768 6,144 32,768 6,144 20,480 6,144

64 64 64 64 64 64 64 64

completes dies at start completes dies at start completes completes completes completes

killed ̸= dies at start completes dies at start completes completes completes killed ̸=

Full/trunc/failed Peak pred. Peak meas. 79/0/113 0/0/0 175/12/5 0/0/0 192/0/0 192/0/0 192/0/0 0/0/192

29,689 29,689 8,185 8,185 3,580 3,580 18,432 5,824

32,768 5,818 12,807 5,849 3,927 3,949 20,480 6,144

Outcome as predicted (frozen before the run) in 6 of 8 runs.

Table 9. Qwen2.5-7B serving on c7i.8xlarge with 32 users in E8. The 48 GiB runs compare identical chat requests with ample memory. The 10 GiB runs include document requests and test constrained serving. All six outcomes match their frozen predictions. Config C1 C1 C2 C2 C6 C6

Workload stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) lazy + release + admission lazy + release + admission

10% documents chat only 10% documents chat only 10% documents chat only

Cap (MiB) Users Predicted (frozen) Measured 10,240 49,152 10,240 49,152 10,240 49,152

32 32 32 32 32 32

dies at start completes dies at start completes completes completes

dies at start completes dies at start completes completes completes

Full/trunc/failed Peak pred. Peak meas. 0/0/0 96/0/0 0/0/0 96/0/0 96/0/0 96/0/0

33,072 33,072 11,568 11,568 7,258 5,707

10,019 35,080 10,150 13,505 7,487 5,916

Outcome as predicted (frozen before the run) in 6 of 6 runs. Rows at 49,152 MiB: chat-only (same work); rows at 10,240 MiB: 10% document requests.

Table 10. Llama-3.2-1B serving on c7i.2xlarge in E9. Ten of twelve outcomes match their frozen predictions. The two commit-on-write failures at 32 users occur before generation because the virtual reservation is refused. Subsequent E9b runs with MAP_NORESERVE complete all 96 requests at both caps. Config C1 C1 C1 C1 C2 C2 C2 C2 C6 C6 C6 C6

Workload stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission

10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents

Cap (MiB) Users Predicted (frozen) Measured 2,048 2,048 4,096 4,096 2,048 2,048 4,096 4,096 2,048 2,048 4,096 4,096

16 32 16 32 16 32 16 32 16 32 16 32

dies at start dies at start dies at start dies at start dies at start dies at start completes dies at start completes completes completes completes

dies at start dies at start dies at start dies at start dies at start dies at start completes dies at start completes dies at start ̸= completes dies at start ̸=

Full/trunc/failed Peak pred. Peak meas. 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 44/0/4 0/0/0 48/0/0 0/0/0 48/0/0 0/0/0

9,042 17,234 9,042 17,234 2,898 4,946 2,898 4,946 1,523 1,575 1,722 2,483

1,909 246 3,765 213 1,887 2,048 3,362 3,791 1,672 254 1,865 313

Outcome as predicted (frozen before the run) in 10 of 12 runs. The two commit-on-write 32-user misses could not start with patch v5: a 16 GiB anonymous reservation exceeds RAM + swap under the default overcommit policy. With MAP_NORESERVE (patch v6) both cells completed 96/96 (E9b).

Table 11. Qwen2.5-1.5B serving on Graviton3 without AMX in E11. Frozen outcome predictions match 24 of 30 runs. Commit-on-write with release and admission completes all six capped configurations. Its 32-user reruns use a four-hour limit. The ablation runs marked as timed out use a 30-minute limit. Config C1 C1 C1 C1 C1 C1 C2 C2 C2 C2 C2 C2 C4 C4 C4 C4 C4 C4 C5 C5 C5 C5 C5 C5 C6 C6 C6 C6 C6 C6

Workload stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) lazy, no release lazy, no release lazy, no release lazy, no release lazy, no release lazy, no release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission lazy + release + admission

10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents

Cap (MiB) Users Predicted (frozen) Measured 2,048 2,048 3,072 3,072 4,096 4,096 2,048 2,048 3,072 3,072 4,096 4,096 2,048 2,048 3,072 3,072 4,096 4,096 2,048 2,048 3,072 3,072 4,096 4,096 2,048 2,048 3,072 3,072 4,096 4,096

16 32 16 32 16 32 16 32 16 32 16 32 16 32 16 32 16 32 16 32 16 32 16 32 16 32 16 32 16 32

dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start completes dies at start completes dies at start killed killed completes killed completes completes completes killed completes completes completes completes completes completes completes completes completes completes

dies at start dies at start dies at start dies at start dies at start dies at start dies at start dies at start killed ̸= dies at start completes dies at start killed killed killed ̸= timed out ̸= completes timed out ̸= completes killed completes timed out ̸= completes timed out ̸= completes completes completes completes completes completes

Full/trunc/failed Peak pred. Peak meas. 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 0/0/0 12/0/36 0/0/0 44/0/4 0/0/0 19/0/29 6/0/90 31/0/17 19/0/77 48/0/0 19/0/77 48/0/0 6/0/90 48/0/0 19/0/77 48/0/0 19/0/77 48/0/0 96/0/0 48/0/0 96/0/0 48/0/0 96/0/0

8,212 15,380 8,212 15,380 8,212 15,380 2,836 4,628 2,836 4,628 2,836 4,628 2,110 3,375 2,110 3,375 2,110 3,375 1,808 2,475 1,808 2,475 1,808 2,475 1,611 1,629 1,808 2,461 1,808 2,475

963 963 964 979 968 978 958 954 3,068 968 3,256 957 2,036 2,048 3,072 2,825 3,195 2,828 1,945 2,048 1,949 2,594 1,948 2,593 1,749 1,830 1,948 2,697 1,949 2,713

Outcome as predicted (frozen before the run) in 24 of 30 runs. The 32-user commit-on-write (C6) rows are reruns with a 4-hour limit; the C4/C5 32-user rows marked timed out were stopped by a 30-minute limit before finishing (no kill, peak below the cap).

Table 12. Serving results using request lengths from the Azure code workload on c7i.8xlarge in E14 and E14k. Fourteen percent of requests exceed 4k context. Stock is tested at 4k, 8k and 16k context per slot. The 8k configuration accommodates the longest request in this trace. Frozen outcome predictions match seven of eight runs. Config C1 C1 C2 C2 C6 C6 C1 C1

Workload stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) lazy + release + admission lazy + release + admission stock, 8k ctx/slot stock, 8k ctx/slot

Cap (MiB) Users Predicted (frozen) Measured

code trace code trace code trace code trace code trace code trace code trace code trace

32,768 6,144 32,768 6,144 32,768 6,144 32,768 6,144

64 64 64 64 64 64 64 64

Full/trunc/failed Peak pred. Peak meas.

killed ̸= dies at start completes dies at start completes completes completes dies at start

completes dies at start completes dies at start completes completes completes dies at start

31/0/161 0/0/0 161/2/29 0/0/0 192/0/0 192/0/0 192/0/0 0/0/0

29,689 29,689 8,185 8,185 5,400 5,400 15,353 15,353

32,747 6,085 13,284 6,144 2,945 2,898 23,837 6,143

Outcome as predicted (frozen before the run) in 7 of 8 runs. The C1 rows at 8,192 context per slot (stock right-sized to the trace maximum) are E14k.

Table 13. Qwen2.5-14B serving on c7i.8xlarge in E15. Runs at 48 GiB compare identical chat requests from eight users. Runs at 16 GiB use sixteen users and include document requests. Only commit-on-write completes the constrained workload among the tested configurations. All six outcomes match their frozen predictions. Config C1 C1 C2 C2 C6 C6

Workload stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) lazy + release + admission lazy + release + admission

Cap (MiB) Users Predicted (frozen) Measured

10% documents chat only 10% documents chat only 10% documents chat only

16,384 49,152 16,384 49,152 16,384 49,152

16 8 16 8 16 8

dies at start completes dies at start completes completes completes

Full/trunc/failed Peak pred. Peak meas.

dies at start completes dies at start completes completes completes

0/0/0 24/0/0 0/0/0 24/0/0 48/0/0 24/0/0

57,552 32,976 20,688 14,544 13,629 9,370

16,054 34,537 16,183 16,062 13,859 9,535

Outcome as predicted (frozen before the run) in 6 of 6 runs. Rows at 49,152 MiB: chat-only (same work); rows at 16,384 MiB: 10% document requests.

Table 14. Stock’s unified KV cache under memory caps on c7i.2xlarge in E16. The shared buffer is sized to the cap with prompt caching disabled. All nine outcomes match their frozen predictions. At 2 GiB, shared-buffer overflow fails requests without terminating the server. Those failures are reported separately from the run outcome. Config C8 C8 C8 C8 C8 C8 C8 C8 C8

Workload stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache

10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents 10% documents

Cap (MiB) Users Predicted (frozen) Measured 2,048 2,048 2,048 3,072 3,072 3,072 4,096 4,096 4,096

16 32 8 16 32 8 16 32 8

completes completes completes completes completes completes completes completes completes

completes completes completes completes completes completes completes completes completes

Full/trunc/failed Peak pred. Peak meas. 32/0/16 32/0/64 24/0/0 48/0/0 96/0/0 24/0/0 48/0/0 96/0/0 24/0/0

1,722 1,725 1,724 2,751 2,747 2,746 3,773 3,769 3,775

1,862 1,887 1,832 2,899 2,944 2,857 3,923 3,970 3,899

Outcome as predicted (frozen before the run) in 9 of 9 runs. Budget = (cap − base − 320 MiB) / 28 KiB, rounded down to 256 tokens. Failures at 2 GiB are requests the server failed when the shared budget overflowed (“Context size has been exceeded”).

Table 15. Stock’s unified KV cache with 64 users on c7i.8xlarge in E16. Workloads include synthetic document requests and the Azure conversation and code traces. Two of four outcomes match their frozen predictions. In the two failed runs, memory growth after start-up exceeds the margin used to size the shared buffer. Config C8 C8 C8 C8

Workload stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache stock, unified KV sized to cap, no prompt cache

10% documents 10% documents code trace conversation trace

Cap (MiB) Users Predicted (frozen) Measured 20,480 6,144 6,144 6,144

64 64 64 64

completes completes completes completes

killed ̸= completes killed ̸= completes

Full/trunc/failed Peak pred. Peak meas. 53/0/139 192/0/0 162/0/30 192/0/0

20,157 5,821 5,821 5,821

20,480 6,144 6,144 6,130

Outcome as predicted (frozen before the run) in 2 of 4 runs. Both kills followed non-KV growth of 320–350 MiB past ready, beyond the 320 MiB margin used to size the budget.

Table 16. Stock with separate per-slot KV buffers and prompt caching disabled in E17. The six runs use 64 users and a 32 GiB cap on c7i.8xlarge. All runs finish without a kill as predicted, although the 4k conversation configuration still truncates or rejects requests. Config C1 C1 C1 C2 C1 C2

Workload stock, 16k ctx/slot stock, 8k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 16k ctx/slot stock, 4k ctx/slot (right-sized)

Cap (MiB) Users Predicted (frozen) Measured

code trace code trace chat only chat only conversation trace conversation trace

32,768 32,768 32,768 32,768 32,768 32,768

64 64 64 64 64 64

completes completes completes completes completes completes

Full/trunc/failed Peak pred. Peak meas.

completes completes completes completes completes completes

192/0/0 192/0/0 192/0/0 192/0/0 192/0/0 175/12/5

29,689 15,353 29,689 8,185 29,689 8,185

30,099 15,706 30,071 8,477 30,092 8,499

Outcome as predicted (frozen before the run) in 6 of 6 runs. Rows: same work (chat-only), conversation trace, code trace (16k), code trace with stock right-sized to 8k.

Table 17. Predicted and observed capacity for independent Qwen2.5-1.5B servers sharing a 14 GiB cap on c7i.2xlarge in E13. Each server has eight slots. The tests check the largest successful server count and one additional server for each configuration. All six outcomes match their frozen predictions. Configuration

Servers

stock, 16k ctx/slot stock, 16k ctx/slot stock, 4k ctx/slot (right-sized) stock, 4k ctx/slot (right-sized) commit-on-write + release commit-on-write + release

3 4 7 8 12 13

Predicted

Measured

Peak MiB

fits dies at start fits dies at start fits killed

fits dies at start fits dies at start fits killed

14,146 14,106 14,094 14,283 13,383 14,336

Outcome as predicted (frozen before the run) in 6 of 6 runs.

Table 18. Admission across multiple commit-on-write servers sharing one memory cap on c7i.2xlarge in E18 and E18b. The policies use no admission, fixed budgets per server or one shared budget. Seven of ten outcomes match their frozen predictions. “Partial” means the run reaches its time limit before completing every request. The TTFT column averages the individual servers’ median times to first token within each run. Run Servers Cap (MiB) Predicted Measured Full Goodput (req/s) TTFT p50, mean (s) Peak (MiB) E18-none E18-static-r1 E18-shared-r1 E18b-none E18b-static-1 E18b-shared-1 E18b-shared-2 E18b-static-2 E18b-static-3 E18b-shared-3

4 4 4 2 2 2 2 2 2 2

6,144 6,144 6,144 2,560 2,560 2,560 2,560 2,560 2,560 2,560

killed fits fits killed fits fits fits fits fits fits

killed partial ̸= partial ̸= fits ̸= fits fits fits fits fits fits

7/128 69/128 72/128 64/64 64/64 64/64 64/64 64/64 64/64 64/64

0.0193 0.0120 0.0125 0.1496 0.0975 0.0984 0.0992 0.0992 0.0978 0.1003

43.1 317.1 905.9 2.6 130.0 74.6 72.4 125.5 132.6 77.4

6,093 5,729 5,836 2,528 2,431 2,448 2,439 2,423 2,420 2,441

Outcome as predicted (frozen before the runs) in 7 of 10 runs. E18 was CPU-bound (4 servers x 4 threads on 8 vCPUs): its admission runs hit the 90-minute limit; two further E18 runs were not run.

Table 19. Cost of releasing KV during continuing conversations on c7i.2xlarge in E20. Eight users each send six turns and resend their conversation history at every turn. Each configuration is run twice. Turn counts are totals across both runs. Other columns are means of the two run-level measurements, including median time to first token for the final three turns. Retaining KV preserves prefix reuse. Releasing it requires processing the history again. Configuration

Turns

Prompt tokens processed

TTFT p50, turns 3–5 (s)

Goodput (turns/s)

Peak (MiB)

Stock, prefix reuse (R1) Commit-on-write, no release (C4r) Stock, no reuse (R0) Commit-on-write + release + admission (C6)

96/96 96/96 96/96 96/96

7,464 7,464 50,966 50,966

1.08 1.11 6.23 6.23

0.220 0.220 0.129 0.129

4,713 1,618 4,716 1,535

Qwen2.5-1.5B, 16,384 context per slot, prompt cache off (--cache-ram 0), 13 GiB cap (ample); each conversation pinned to its own slot. From the seed: new messages 7,424 tokens, full prompts 50,966. 10 of 10 predictions frozen before the runs held.

Table 20. Peak memory in MiB for Qwen2.5-1.5B on c7i.2xlarge with 16k context per sequence and 200 generated tokens per request. Percentages show the change from stock with f16 KV in the same row. Lazy commitment and q8_0 quantisation reduce different sources of memory use. The q8_0 lazy results use the earlier diagnostic variant. Stock Setup

f16

Lazy q8_0

f16

q8_0

1 process 1,461 1,250 (-14%) 1,018 (-30%) 1,015 (-31%) Server, 4 users 2,821 – 1,048 (-63%) – Server, 8 users 4,635 2,959 (-36%) 1,090 (-76%) 1,069 (-77%)

Table 21. Contribution of lazy commitment, release and admission across nine combinations of memory cap and user count on c7i.2xlarge. Lazy commitment alone completes four runs. Adding release raises this to eight. Adding admission allows all nine to complete without a kill. Configuration stock, right-sized 4k lazy commitment only + release on completion + header-predicted admission

Completed

Killed mid-run

Died at start

3 4 8 9

2 5 1 0

4 0 0 0

Related documents

Record · ID 1836057 · SHA-256 258bdf56f08f800d
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive