Repository navigation
The no-movement window takes the SLOWER measured prefill rate, and names it (card e1a5a21a) - #5468
Merged
joelteply merged 2 commits intoOct 26, 2026
Conversation
…mes it (card e1a5a21a) #5462 follow-up, measured on enrico 2026-10-26 13:15-14:15Z (0eeceda): 3 page-save quotes were still refused as "stopped progressing", with unmoved_ms 23,571 / 59,427 / 64,419. The per-request prefill rate read 9.7-16.2 tok/s (serving.prefill_rate.moved at 13:17, 13:28 and 14:13), so two 2,048-token batches take 250-420 s; the windows used imply 64-174 tok/s, the server-total rate unmoved_window preferred. Each refusal cost a mind her page. The errors are not symmetric: a window too long only delays calling a stuck engine (capped by UNMOVED_CEILING); a window too short refuses a working engine. window_rate (pure) takes the slower usable measurement and says which. WaitBounds carries the rate and its source, and the kv_page admission_refused and busy_not_dead probes report them. This reverses #4506's server-total preference, which assumed a long window was the costly error. Test: the_window_is_sized_from_the_slower_measured_rate (enrico's numbers: 9.7 vs 68 tok/s gives a >400 s window; the old choice gave ~60 s). Not built locally: no cargo on enrico while residents serve; CI compiles and tests it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…16.2 tok/s (Codex on #5468) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
deleted the
e1a5a21a/the-no-movement-window-takes-the-slower
branch
October 26, 2026 14:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #5462: a mind's page must survive a switch, and on enrico it still didn't, three times in an hour.
Measured (enrico, 2026-10-26 13:15-14:15Z, running 0eeceda with #5462)
unmoved_ms23,571 / 59,427 / 64,419. The presence ofunmoved_msshows A page save behind another slot's prefill is not a stopped engine: one no-movement window for every engine wait (card 0b52b957) #5462's window ran. Each was followed by apage_on_disk_unconfirmedcold turn.serving.prefill_rate.movedat 13:17, 13:28, 14:13), so one 2,048-token batch takes 125-210 s and two take 250-420 s.unmoved_windowpreferredserving_rates' server-total rate, which here overstates fresh prefill 4-17x.Fix
window_rate(pure) sizes the window from the slower usable measurement and returns which one it used.UNMOVED_CEILINGstill bounds it. A window too short refuses a working engine, and the evicted mind loses her page.WaitBoundscarriesunmoved_rateandunmoved_rate_source. Thekv_page.admission_refusedandkv_page.busy_not_deadprobes report them, so the next refusal names the number behind its window.Tests
the_window_is_sized_from_the_slower_measured_rate, built from enrico's numbers: 9.7 vs 68 tok/s gives a window over 400 s, where the old choice gave about 60 s. Also covered: either order, one side missing, neither usable (the floor).Not built locally: no cargo on enrico while residents serve. CI compiles and tests it.
Live receipt (owner Cormac, 24 h after deploy): 'stopped progressing' refusals per hour at the same load, with
unmoved_rate_source. Target: 0, against 3 per hour before and after #5462.🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE