Repository navigation
Two serving gates deleted: the prefill throttle and the idle reserved lane - #5582
Conversation
…memory, and the gate serialized them One llama-server context reserves its worst-case compute graph once, at load, and packs every slot's tokens into each llama_decode, so concurrent prefills in one engine draw no transient memory beyond it. The throttle (#56) guarded that non-existent spike from live free GPU, which on unified memory is system RAM: on the M5 it held 1 permit 22.5% and 2 permits 49.4% of 87 minutes for four minds, and a mind that already held a lane waited a median 24.6 s (p90 83 s, 5,914 s in total over 161 acts) before her model call (2026-10-28, build 7ace740; delib.gate.lane_acquired -> delib.gate.prefill_acquired). The per-prefill bytes the plan publishes stay, as inference::prefill_spike, for grid placement (capacity::lease::decide_render_lane). Removed: the semaphore, its live reconcile on the serving tick, and the second permit in GenerationAdmission. 430 lines out, 25 in. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…g: no engine slot idles for a mention The loan required a work call to fit the interactive wait budget (60 s). A resident's model call has a median of 71 s, so the reserve was never lent: one of four engine slots sat idle while the fourth resident queued for a lane, a median 25.7 s and p90 131 s per model call (M5, 176 acts, 2026-10-28, build 7ace740; admission.lane.granted). A directed arrival now takes the next lane any call releases. The loan is still a try-acquire on a free lane, never a park, and a pending directed line still re-arms it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
PASS — source review of exact head 9c2403b against canary 3e54bfa. This serves resident pace (plan goal 2) by removing the extra prefill queue and lending otherwise-idle reserved capacity. No blocking finding in this isolated two-change scope. The physical serving-lane permit remains held through generation; remote admission still bypasses local resources; cancellation while waiting leaves the lane reusable. The reserve loan remains a try-acquire of an immediately free physical lane and is disabled when directed work is pending. Spike publication and placement consumption remain connected through prefill_spike. The behavior deliberately gives up the previous occupancy-based directed-wait bound: a later directed arrival can wait for running work to release a lane. This review does not assert a fixed interactive latency guarantee. The reported 155s→51s live result comes from the combined deployed stack and is not an isolated causal measurement of this PR. Verified completed checks at this head: selected crate library tests (including engine/cognition/serving), source hygiene, Windows MSVC lib+tests check, core tests and bindings all succeeded. Installed-release/lifecycle checks were skipped. No independent local rerun or Windows deployment was performed for this review. This PASS does not cover the additional commits in #5558 or the outstanding admission finding on #5540. |
Live on the M5 since 2026-10-28 (deploy branch fable/deploy-focus, core 6640431), never on a PR until now.
prefill_throttle.rs): one engine's prefills draw no extra memory, and the gate serialized them. The spike measurement it held moves toprefill_spike.rs.Measured live with the rest of the stack: 4 residents went from a 155 s to a 51 s median act on 10-28 (handoff a5f1f76); the floor/reserve fixes (#5579, plan-reserve PR) followed. Validation: the crate's admission and lane tests (
resource_admission/tests.rs,llm_deliberation_faculty/tests) updated in the same commits.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo