Skip to content

The no-movement window takes the SLOWER measured prefill rate, and names it (card e1a5a21a) - #5468

Merged
joelteply merged 2 commits into
canaryfrom
e1a5a21a/the-no-movement-window-takes-the-slower
Oct 26, 2026
Merged

joelteply merged 2 commits into
canaryfrom
e1a5a21a/the-no-movement-window-takes-the-slower

Conversation

@joelteply

@joelteply joelteply commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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)

  • 3 page-save quotes refused as "stopped progressing": 13:20:48, 13:29:42, 13:34:48, with unmoved_ms 23,571 / 59,427 / 64,419. The presence of unmoved_ms shows 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 a page_on_disk_unconfirmed cold turn.
  • The per-request prefill rate in the same hour: 9.7-16.2 tok/s (serving.prefill_rate.moved at 13:17, 13:28, 14:13), so one 2,048-token batch takes 125-210 s and two take 250-420 s.
  • The windows used imply 64-174 tok/s: unmoved_window preferred serving_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.
  • The two errors aren't symmetric. A window too long only delays declaring a truly stuck engine, and UNMOVED_CEILING still bounds it. A window too short refuses a working engine, and the evicted mind loses her page.
  • This reverses the server-total preference from fix(inference): a stalled stream on a lane working for others waits on, bounded; only a lane that did nothing fails it (card 115f9a14) #4506, which treated the long window as the costly error.
  • WaitBounds carries unmoved_rate and unmoved_rate_source. The kv_page.admission_refused and kv_page.busy_not_dead probes 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

…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
@joelteply
joelteply merged commit 4225f9b into canary Oct 26, 2026
24 checks passed
@joelteply
joelteply deleted the e1a5a21a/the-no-movement-window-takes-the-slower branch October 26, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant