From ac0cfa32deb3abdc5bb4f98222d6565dcdf70425 Mon Sep 17 00:00:00 2001 From: Andrea Righi Date: Tue, 3 Sep 2024 22:39:39 +0200 Subject: [PATCH] ci: bump up virtme-ng memory size from 1GB to 2GB Recently, we have triggered some OOM conditions during stress tests, particularly with the user-space schedulers. To avoid this issue and prevent false positives, increase the memory size of the virtme-ng instance from the default 1GB to 2GB. Signed-off-by: Andrea Righi --- meson-scripts/test_sched | 2 +- meson-scripts/veristat | 4 ++-- meson-scripts/veristat_diff | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/meson-scripts/test_sched b/meson-scripts/test_sched index a380514..1e39a77 100755 --- a/meson-scripts/test_sched +++ b/meson-scripts/test_sched @@ -48,7 +48,7 @@ for sched in ${!SCHEDS[@]}; do rm -f /tmp/output timeout --preserve-status ${GUEST_TIMEOUT} \ - vng --force-9p -v -r ${kernel} -- \ + vng -m 2G --force-9p -v -r ${kernel} -- \ "timeout --foreground --preserve-status ${TEST_TIMEOUT} ${sched_path} ${args}" \ 2> >(tee /tmp/output) "${DIFF_DIR}/${SCHED}_new.csv" \ || echo "failed to verify ${SCHED}: ${BPF_PATH}" if [ -n "${DIFF_DIR}" ]; then timeout --preserve-status ${GUEST_TIMEOUT} \ - vng --force-9p -v --rwdir "${DIFF_DIR}" --user root -r ${KERNEL} -- \ + vng -m 2G --force-9p -v --rwdir "${DIFF_DIR}" --user root -r ${KERNEL} -- \ veristat -C "${DIFF_DIR}/${SCHED}_new.csv" "${DIFF_DIR}/${SCHED}.csv" \ -e file,prog,verdict,insns \ || echo "failed to compare ${SCHED}: ${BPF_PATH}" @@ -47,12 +47,12 @@ for BPF_PATH in $(find ${BUILD_DIR} -type f -name bpf.bpf.o); do SCHED=$(echo "${BPF_PATH}" | sed 's/.*\/rust\///g' | sed 's/\/.*//g') if [ -n "${KERNEL}" ]; then timeout --preserve-status ${GUEST_TIMEOUT} \ - vng --force-9p -v --rwdir "${DIFF_DIR}" --user root -r ${KERNEL} -- \ + vng -m 2G --force-9p -v --rwdir "${DIFF_DIR}" --user root -r ${KERNEL} -- \ veristat ${BPF_PATH} -o csv > "${DIFF_DIR}/${SCHED}_new.csv" \ || echo "failed to verify ${SCHED}: ${BPF_PATH}" if [ -n "${DIFF_DIR}" ]; then timeout --preserve-status ${GUEST_TIMEOUT} \ - vng --force-9p -v --rwdir "${DIFF_DIR}" --user root -r ${KERNEL} -- \ + vng -m 2G --force-9p -v --rwdir "${DIFF_DIR}" --user root -r ${KERNEL} -- \ veristat -C "${SCHED}_new.csv" "${DIFF_DIR}/${SCHED}.csv" \ -e file,prog,verdict,insns \ || echo "failed to compare ${SCHED}: ${BPF_PATH}"