From 7e7f29543726305b71e774cfc91d9d98913dd0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 21 Oct 2026 04:16:27 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20declare=205g=20per=20job,?= =?UTF-8?q?=20jobs=20cannot=20swap=20so=20leave=20room=20above=20the=20rus?= =?UTF-8?q?tc=20peak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .forge/ci.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.forge/ci.toml b/.forge/ci.toml index dcc8cd4..eb85025 100644 --- a/.forge/ci.toml +++ b/.forge/ci.toml @@ -5,7 +5,7 @@ # (two runners, or one runner with concurrency = 2). Capacity includes memory: each job declares its # peak in `memory`, and a runner admits a job only while the declared memory of its running jobs # fits its budget. On the 7.6 GiB runner host the budget is about 6.5 GiB, and test plus build -# declare 4g each, so they do NOT run together there: one heavy job at a time is the point. An +# declare 5g each, so they do NOT run together there: one heavy job at a time is the point. An # earlier run with concurrency 4 hit a host-wide OOM and the kernel killed rustc mid-build. # The build job's artifacts are still only used # once the whole run is green: a tag push matching "v*" publishes a release with the build job's @@ -21,8 +21,8 @@ tags = ["v*"] [jobs.test] image = "docker.io/library/rust:1" # Runner has a few GB RAM and 2 CPUs: rustc runs one crate at a time because a single forge-web compile needs several GB. Also drops debuginfo. -# memory: rustc peaked at 3.1 to 3.6 GB RSS in the OOM data, so 4g is the expected peak, and the job's cgroup is capped at 4g plus slack. -memory = "4g" +# memory: rustc peaked at 3.1 to 3.6 GB RSS in the OOM data. Jobs cannot swap, so 5g leaves room for cargo and the linker on top; only one heavy job fits the budget either way. +memory = "5g" env = { CARGO_BUILD_JOBS = "1", CARGO_PROFILE_DEV_DEBUG = "0", CARGO_PROFILE_TEST_DEBUG = "0", CARGO_INCREMENTAL = "0" } run = """ cargo test --workspace @@ -33,8 +33,8 @@ timeout_minutes = 120 [jobs.build] image = "docker.io/library/rust:1" # Runner has a few GB RAM and 2 CPUs: rustc runs one crate at a time because a single forge-web compile needs several GB. -# memory: the dist profile uses thin LTO, whose link step peaks like the test build (3.1 to 3.6 GB RSS seen), so 4g. -memory = "4g" +# memory: the dist profile uses thin LTO, whose link step peaks like the test build (3.1 to 3.6 GB RSS seen). 5g for the same headroom reason. +memory = "5g" env = { CARGO_BUILD_JOBS = "1", CARGO_INCREMENTAL = "0" } run = """ cargo build --profile dist -p forge-web -p forge-runner