Commits
Commits on
3d53dfd79c35bd64433757f7d43e1e649f438e7dFiltered to crates/forge-runner/src/memory.rsClear filter2026-10-20
✨ feat: memory-aware job admission so a runner never over-commits its RAMAhmet Kaan Gümüş · 69c5821
✨ feat: memory-aware job admission so a runner never over-commits its RAM A job can declare memory in ci.toml. A runner admits a job only when the reservations of its running jobs plus the new one fit its memory budget (MemTotal minus headroom by default, swap ignored), tells the forge how much it can admit on every claim, and the forge hands out the first queued job that fits. A job that waited 5 minutes and does not fit stops smaller jobs passing it. Each job's cgroup gets memory.max of its declared memory plus slack, with swap off. Budget and default reservation are live settings on the runner page, which also shows budget, reserved and free. Old runners and forges keep the old behaviour. forge's own ci.toml declares 4g for test and build.