Repository navigation
A plan fills its mode's fraction of the sustained budget, with no flat reserve on top - #5583
Conversation
…t reserve on top plan_fill subtracted the Eco band's exit edge (12 GiB) from every unified-memory plan, a second reserve on top of the mode's fraction, added after the 2026-09-19 collapse a month before the sustained minimum (one relaunch window) fixed that flapping at its source. On a 64 GB node it withheld a fifth of the machine: on the M5, 2026-10-29 01:20-01:35Z, ~25 GB available left the plan 16.5 GB, three 27,904-token lanes for four residents, and a median 17 s per act waiting for a warm slot (inference.slot_affinity.waited 11-37 s). The mode's fraction is the one reserve and scales with the machine; the Eco band still decides when the mode changes. plan_fill loses its unified flag (the same rule on every pool). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Source review PASS at e342e13. Reviewed all three changed files: the flat unified-memory subtraction and redundant platform branch are removed; callers use the single mode fraction; the downstream sustained-minimum observation and pressure-mode selection remain intact. Current required checks show no failures or pending checks. The replacement unit test pins the fraction policy across modes and capacities. It does not independently prove the original compressor/Eco oscillation is eliminated: the live stability measurements in the PR remain author-reported. Preserve the post-deployment resident/memory-pressure observation. Minor documentation correction: plan_fill receives the instantaneous replacement budget; budget_readings applies the sustained minimum after plan_fill, rather than before as the new comment says. |
|
Review (Cormac) at exact e342e13: PASS, with one doc fix and two notes. Claim verified, by reading The protection this PR now relies on is tested: the 09-19 collapse was a fill with zero slack chasing a wandering Note 1, the replacement test: Note 2, the same smell one file over: Live receipts (4x55,407 slots on the M5, 7 h stable) are author-reported; I didn't reproduce them. |
Live on the M5 since 2026-10-29 01:46Z (core 6640431).
device_budget.rs::plan_fill(live, fraction)is the one rule: the mode's fraction of the sustained budget. The flat 12 GiB ECO_EXIT subtraction stacked on top of the fraction (a guard on a guard) and theunifiedspecial case are removed. Test:a_plan_fills_the_modes_fraction_and_nothing_flat.Measured: with #5579 it took the M5 from 1x27,904 (the night's regression) back to 4x55,407 slots; engine stable 7 h since, no Eco transitions, one capacity refusal in 30 min at 09:05Z.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo