forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on cd4373f96c7c548bf0bb4337ae3278d75e30eecaFiltered to crates/forge-runner/src/memory.rsClear filter

Yesterday

♻️ refactor: runner memory is one box (RAM minus kept-for-host) shared by all jobs, swap left to the OS, concurrency the only gate; drops reservations, pressure parking and requeue. Fixes: log upload retries transient failures instead of dropping the rest of the log, running jobs spin and their live step pulses, wiki hides its empty page railAhmet Kaan Gümüş · d75b65d
♻️ refactor: runner memory is one box (RAM minus kept-for-host) shared by all jobs, swap left to the OS, concurrency the only gate; drops reservations, pressure parking and requeue. Fixes: log upload retries transient failures instead of dropping the rest of the log, running jobs spin and their live step pulses, wiki hides its empty page rail
♻️ refactor: forge-runner and forge-web-base drop dead code, duplicated parsing and stale comments; fixes: memory.high no longer drops to 0 on small boxes, log lines are cut at MAX_LINE exactly, a half-installed image rootfs is replaced on retry, register resolves local paths before using the one-time token, strip_ansi keeps the char after a lone ESCAhmet Kaan Gümüş · 68935b0
♻️ refactor: forge-runner and forge-web-base drop dead code, duplicated parsing and stale comments; fixes: memory.high no longer drops to 0 on small boxes, log lines are cut at MAX_LINE exactly, a half-installed image rootfs is replaced on retry, register resolves local paths before using the one-time token, strip_ansi keeps the char after a lone ESC

2026-11-30

2026-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.