aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/lib/vm-utils.sh
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-27 21:44:55 -0400
committerCraig Jennings <c@cjennings.net>2026-06-27 21:44:55 -0400
commit9bf0d2b469117b442c6aec03483dcd3fd2171393 (patch)
tree7bc65f3129bd67f3d23cd8817537c3036e2c8699 /scripts/testing/lib/vm-utils.sh
parent08b63f4ae4ac587bdef3a9ff996afe85a68c36ce (diff)
downloadarchsetup-9bf0d2b469117b442c6aec03483dcd3fd2171393.tar.gz
archsetup-9bf0d2b469117b442c6aec03483dcd3fd2171393.zip
fix(test): bump default VM RAM to 8 GiB to stop AUR-build OOM kills
The zfs green run OOM-killed cc1plus three times during AUR C++ builds: makepkg runs -j$VM_CPUS (4), and parallel compiles at ~700 MB each overran the 4 GiB default. The install still passed (yay retries), but the kills showed up as attributed issues. 8 GiB gives the four jobs headroom. Overridable via VM_RAM as before.
Diffstat (limited to 'scripts/testing/lib/vm-utils.sh')
-rwxr-xr-xscripts/testing/lib/vm-utils.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/testing/lib/vm-utils.sh b/scripts/testing/lib/vm-utils.sh
index 118d1be..b85e773 100755
--- a/scripts/testing/lib/vm-utils.sh
+++ b/scripts/testing/lib/vm-utils.sh
@@ -11,7 +11,9 @@
# VM configuration defaults
VM_CPUS="${VM_CPUS:-4}"
-VM_RAM="${VM_RAM:-4096}" # MB
+# 8 GiB headroom for AUR builds: makepkg runs -j$VM_CPUS, and parallel cc1plus
+# (~700 MB each on heavy C++ packages) OOM-killed under the old 4 GiB default.
+VM_RAM="${VM_RAM:-8192}" # MB
VM_DISK_SIZE="${VM_DISK_SIZE:-50}" # GB
# Filesystem profile: selects which base image + archangel config the harness