You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build_pool_width ignores memory: 18 lanes in a 7.7 GiB VM OOM-kill tommycheck and the compiler (linux-aarch64 seed leg) #2603
build_pool_width (src/main.w) sizes the lane pool by WITH_BUILD_JOBS, else by the core count, capped at 32. Memory is not an input. In the linux-aarch64 seed container (Docker Desktop VM: 18 CPUs, 7.7 GiB, 1 GiB swap) every :release-checks leg ran up to 18 lanes and the kernel OOM-killed tommycheck and the compiler (dmesg: Out of memory: Killed process … (tommycheck) anon-rss:1419016kB, (with) anon-rss:715460kB), while selfcheck thrashed past its 300 s timeout. Sampled per-process peaks are ordinary: compiler 0.7 GiB (stage2 check src/main.w), build-runner 0.46 GiB, a corpus compile 0.6 GiB, tommycheck 1.5 GiB. Eighteen such lanes do not fit in 7.7 GiB.
Expected: the default width is bounded by memory as well as cores — physical memory divided by a per-lane budget (the battery's own measurements give it: the largest lane peak, or 2 GiB), whichever of cores and that is smaller — so a machine with many cores and little memory does not oversubscribe. WITH_BUILD_JOBS keeps overriding it. Note PARALLEL_JOBS is the SDK (ninja) knob only (sdk_jobs_arg); notes/seed-leg-aarch64-v3/v4.sh set it believing it bounded the graph.
Fixed (main 2083b59): build_graph_pool_width_for(cores, memory_total) — one lane per core, two gibibytes a lane, 1..32; test/internals/build_pool_width_test pins the container's case (18 cores, 7.7 GiB → 3).
Activity
Fix the four bugs filed today instead of fixed: closure linkage acros…
ehartford commentedon Oct 25, 2026
Fixed (main 2083b59): build_graph_pool_width_for(cores, memory_total) — one lane per core, two gibibytes a lane, 1..32; test/internals/build_pool_width_test pins the container's case (18 cores, 7.7 GiB → 3).