Skip to content

Commit 501ddd9

Browse files
committed
qemu: use memory-safe V3 test defaults
1 parent ff4bfca commit 501ddd9

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

ci/qemu_linux_tests.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ Environment overrides:
2121
V_QEMU_GUEST_REPO Guest checkout (default: /home/v/v3)
2222
V_QEMU_CPUS Virtual CPUs (default: 4)
2323
V_QEMU_MEMORY_MB Guest memory in MiB (default: 16384)
24-
V_QEMU_JOBS V test jobs (default: virtual CPU count)
25-
V_QEMU_VFLAGS Flags inherited by V subprocesses (default: -cc clang)
24+
V_QEMU_JOBS V test jobs (default: 1)
25+
V_QEMU_VFLAGS Flags inherited by V subprocesses
26+
(default: -cc clang -no-memory-limit)
2627
V_QEMU_NO_FALLBACK Set V_MACOS_V3_NO_FALLBACK (default: 1)
2728
V_QEMU_TMPDIR Guest disk-backed V temporary root (default: /var/tmp/v-qemu-tests)
2829
V_QEMU_STOP_AFTER Power off the guest after the run when set to 1
@@ -69,8 +70,11 @@ guest=${V_QEMU_GUEST:-v@127.0.0.1}
6970
guest_repo=${V_QEMU_GUEST_REPO:-/home/v/v3}
7071
cpus=${V_QEMU_CPUS:-4}
7172
memory_mb=${V_QEMU_MEMORY_MB:-16384}
72-
jobs=${V_QEMU_JOBS:-$cpus}
73-
vflags=${V_QEMU_VFLAGS:--cc clang}
73+
# A V3 compiler-tree test can exceed 6 GiB RSS on ARM64. One unbounded worker is
74+
# reliable in the default 16 GiB guest; callers with larger guests can opt into
75+
# more parallelism explicitly.
76+
jobs=${V_QEMU_JOBS:-1}
77+
vflags=${V_QEMU_VFLAGS:--cc clang -no-memory-limit}
7478
no_fallback=${V_QEMU_NO_FALLBACK:-1}
7579
guest_tmp_root=${V_QEMU_TMPDIR:-/var/tmp/v-qemu-tests}
7680
stop_after=${V_QEMU_STOP_AFTER:-0}

0 commit comments

Comments
 (0)