gunk-dev/the-valley
the-valley:bd-c310622bugopen

an admitted evaluation used more memory than its budget and nothing stopped it

State
free to start
Created
2026-11-14 by contributor

Body

The worker admits evaluations against a memory budget (a share of the build slice's cap). On one host an admitted evaluation, budgeted within about 9.6 GB, reached 11.7 GB resident. It stayed under the slice's 16 GB cap, so nothing stopped it; the host itself ran out and the kernel killed an unrelated, larger-scored process.

Two things worth settling:

- The estimate an evaluation is admitted on was too low for this tree, or the evaluation was admitted without one. Telemetry records `eval_estimate_bytes` and `eval_budget_bytes` at `batch.start`; compare them with what the evaluation used (the worker could record the evaluation's peak from its cgroup or `rusage`).
- The budget bounds admission, not use. An evaluation that passes its estimate keeps growing until the slice's cap. A per-evaluation limit (its own scope with a memory cap at the budget) would fail that evaluation alone and early.

The module could also offer an OOM score adjustment for the build slice's units, so an operator can make builds the first thing a host-wide shortage kills.

Comments

No comments.