From 2d41dac57d3afdd5fe3d03be08ff0a24833f61dd Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 17 Apr 2023 10:38:27 -0700 Subject: [PATCH] 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). --- ci/x86_64-linux-debug.sh | 1 + ci/x86_64-linux-release.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/ci/x86_64-linux-debug.sh b/ci/x86_64-linux-debug.sh index 3ae72f7ef512545300ba1d28a10d7b6aae99b627..b72e72ae2463274d669253bcb1c03b058c8a9710 100755 --- a/ci/x86_64-linux-debug.sh +++ b/ci/x86_64-linux-debug.sh @@ -58,6 +58,7 @@ stage3-debug/bin/zig fmt --check .. \ stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf stage3-debug/bin/zig build test docs \ + --maxrss 21000000000 \ -fqemu \ -fwasmtime \ -Dstatic-llvm \ diff --git a/ci/x86_64-linux-release.sh b/ci/x86_64-linux-release.sh index f8b94addcc97f88c401c69878e8ac799a91b87f2..4351707864080ea932605c5c16b2a159d7e0c0ea 100755 --- a/ci/x86_64-linux-release.sh +++ b/ci/x86_64-linux-release.sh @@ -59,6 +59,7 @@ stage3-release/bin/zig fmt --check .. \ stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf stage3-release/bin/zig build test docs \ + --maxrss 21000000000 \ -fqemu \ -fwasmtime \ -Dstatic-llvm \ -- 2.54.0