authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-17 10:38:27-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-04-17 10:38:27-07:00
log2d41dac57d3afdd5fe3d03be08ff0a24833f61dd
tree1322c3f1f410513afb93cb4c99ae0498fa208160
parent17af53554e1362f9632aff592afcba11190c94b1

CI: give x86_64-linux a maxrss parameter

to avoid getting OOM killed. It's been happening regularly recently. We need to have a high number of GitHub Actions runners simultaneously active, otherwise the hardware ends up underutilized. But with zig build running in parallel now, this sometimes results in memory usage spikes that have been causing the runner to get killed. This number is the total physical memory (126G) divided by the number of runners we have active (6).

2 files changed, 2 insertions(+), 0 deletions(-)

ci/x86_64-linux-debug.sh+1
......@@ -58,6 +58,7 @@ stage3-debug/bin/zig fmt --check .. \
5858stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf
5959
6060stage3-debug/bin/zig build test docs \
61 --maxrss 21000000000 \
6162 -fqemu \
6263 -fwasmtime \
6364 -Dstatic-llvm \
ci/x86_64-linux-release.sh+1
......@@ -59,6 +59,7 @@ stage3-release/bin/zig fmt --check .. \
5959stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf
6060
6161stage3-release/bin/zig build test docs \
62 --maxrss 21000000000 \
6263 -fqemu \
6364 -fwasmtime \
6465 -Dstatic-llvm \