From 5b9e528bc550e7ea9e286fdd2324316f9895d5da Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 25 Apr 2023 12:46:39 -0700 Subject: [PATCH] CI: give aarch64-linux a maxrss parameter to avoid getting OOM killed. 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 (251G) divided by the number of runners we have active (11). See related commit 2d41dac57d3afdd5fe3d03be08ff0a24833f61dd which did the same but for our x86_64-linux machines. --- ci/aarch64-linux-debug.sh | 1 + ci/aarch64-linux-release.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/ci/aarch64-linux-debug.sh b/ci/aarch64-linux-debug.sh index 2fd831860ee2adeff9032606f4a3ce16336a8a06..30f99af0bf996b4025634a6449456427ef987f85 100644 --- a/ci/aarch64-linux-debug.sh +++ b/ci/aarch64-linux-debug.sh @@ -60,6 +60,7 @@ stage3-debug/bin/zig build -Dtarget=arm-linux-musleabihf # TODO: add -fqemu back to this line stage3-debug/bin/zig build test docs \ + --maxrss 24696061952 \ -fwasmtime \ -Dstatic-llvm \ -Dtarget=native-native-musl \ diff --git a/ci/aarch64-linux-release.sh b/ci/aarch64-linux-release.sh index 8eb9ed25236709abf607fff81c6467d44122f547..0f5b23dea5bd3561cdd4a353bdafe588a7814f62 100644 --- a/ci/aarch64-linux-release.sh +++ b/ci/aarch64-linux-release.sh @@ -60,6 +60,7 @@ stage3-release/bin/zig build -Dtarget=arm-linux-musleabihf # TODO: add -fqemu back to this line stage3-release/bin/zig build test docs \ + --maxrss 24696061952 \ -fwasmtime \ -Dstatic-llvm \ -Dtarget=native-native-musl \ -- 2.54.0