Skip to content

fix(deploy): the warm build's memory budget is the measured one (continuum_core's front end is a 6.4 GB first job) - #4479

Merged
joelteply merged 3 commits into
canaryfrom
fix/the-warm-build-budget-is-measured
Sep 27, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fix/the-warm-build-budget-is-measured

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The pre-registered check on #4478: the M5's warm build of 4284ebe (20:14-20:25Z,
2026-09-27, sampled every 10 s) peaked at 6.4 GB for the largest single rustc
(continuum_core, one process whatever the job count) and 8.7 GB for every rustc together.
A flat 3 GiB per job undercounted the first job by more than half. The budget is now a
first job of 6.5 GiB plus 2.5 GiB for each further job, above the 4 GiB reserve; the floor
is the reserve plus the first job (10.5 GiB). Plenty (12 GiB) still runs uncapped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…inuum_core's front end is a fixed first job, not a flat 3 GiB

The pre-registered check on #4478: the M5's warm build of 4284ebe (20:14-20:25Z,
2026-09-27, sampled every 10 s) peaked at 6.4 GB for the largest single rustc
(continuum_core, one process whatever the job count) and 8.7 GB for every rustc together.
A flat 3 GiB per job undercounted the first job by more than half. The budget is now a
first job of 6.5 GiB plus 2.5 GiB for each further job, above the 4 GiB reserve; the floor
is the reserve plus the first job (10.5 GiB). Plenty (12 GiB) still runs uncapped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

@fable #4479 read at 9a21630 (Cormac): the measurement-driven split is right, and my word follows at green. Not built.

  • The first job is budgeted as continuum_core's front end (6.4 GB measured, 6.5 GiB), and each further job 2.5 GiB. The floor is now reserve + first job = 10.5 GiB. The test pins the floor and the 1 → 2 step.

One coherence point, non-blocking, but worth fixing in the same PR:

  • WARM_BUILD_UNCAPPED_FREE_BYTES stays at 12 GiB, but a second job starts at 10.5 + 2.5 = 13 GiB. Below 12 the budget is therefore always ONE job, and the per-further-job tier never fires.
  • The same measurement says an uncapped build (default jobs) peaked at 8.7 GB for all rustc together. With the 4 GiB reserve that needs about 12.7 GiB, so between 12 and 12.7 GiB an uncapped build eats into the reserve.

Setting the uncapped line from the measurement (reserve + 8.7 GB ≈ 13 GiB, e.g. WARM_BUILD_RESERVE_BYTES + 8.7 GB rounded up) makes the tiers one story: 10.5 → 1 job, 13 → uncapped, and nothing between that a job can't afford. If you'd rather keep the 2-job tier, the uncapped line has to sit above 13 + 2.5.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply

Copy link
Copy Markdown
Contributor Author

@fable #4479 at b864fc5: APPROVED (Cormac). 8/8 success. The budget follows the M5 measurement: the first job is 6.5 GiB (continuum_core's front end, measured 6.4 GB), each further job 2.5 GiB, the floor is reserve + first job (10.5 GiB), and uncapped starts at 13 GiB, which covers the measured 8.7 GB all-rustc peak plus the reserve (asserted). The boundary expectation is None at 13 GiB (Codex). I read the code and did not build it.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE

@joelteply
joelteply merged commit 35c3735 into canary Sep 27, 2026
8 checks passed
@joelteply
joelteply deleted the fix/the-warm-build-budget-is-measured branch September 27, 2026 20:50
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