richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
5fc298
From c518597dddb9b8a0b8d895b28ebb4792c8a32c6e Mon Sep 17 00:00:00 2001
5fc298
From: Frantisek Sumsal <frantisek@sumsal.cz>
5fc298
Date: Thu, 25 Aug 2022 14:52:30 +0200
5fc298
Subject: [PATCH] test: bump the base VM memory to 768M
5fc298
5fc298
as with 512M some tests occasionally trip off OOM-killer (e.g.
5fc298
TEST-64 + multipath).
5fc298
5fc298
(cherry picked from commit 6a9c4977683a30fcd36baf64e35255e9846028c6)
5fc298
5fc298
Related: #2155516
5fc298
---
5fc298
 test/TEST-36-NUMAPOLICY/test.sh | 2 +-
5fc298
 test/test-functions             | 2 +-
5fc298
 2 files changed, 2 insertions(+), 2 deletions(-)
5fc298
5fc298
diff --git a/test/TEST-36-NUMAPOLICY/test.sh b/test/TEST-36-NUMAPOLICY/test.sh
5fc298
index 7909b1dce3..a0bfd4079a 100755
5fc298
--- a/test/TEST-36-NUMAPOLICY/test.sh
5fc298
+++ b/test/TEST-36-NUMAPOLICY/test.sh
5fc298
@@ -9,7 +9,7 @@ TEST_NO_NSPAWN=1
5fc298
 . "${TEST_BASE_DIR:?}/test-functions"
5fc298
 
5fc298
 if qemu_min_version "5.2.0"; then
5fc298
-    QEMU_OPTIONS="-object memory-backend-ram,id=mem0,size=${QEMU_MEM:-512M} -numa node,memdev=mem0,nodeid=0"
5fc298
+    QEMU_OPTIONS="-object memory-backend-ram,id=mem0,size=${QEMU_MEM:-768M} -numa node,memdev=mem0,nodeid=0"
5fc298
 else
5fc298
     QEMU_OPTIONS="-numa node,nodeid=0"
5fc298
 fi
5fc298
diff --git a/test/test-functions b/test/test-functions
5fc298
index 8ea2f97b71..f9a80884e8 100644
5fc298
--- a/test/test-functions
5fc298
+++ b/test/test-functions
5fc298
@@ -450,7 +450,7 @@ run_qemu() {
5fc298
     qemu_options+=(
5fc298
         -smp "$QEMU_SMP"
5fc298
         -net none
5fc298
-        -m "${QEMU_MEM:-512M}"
5fc298
+        -m "${QEMU_MEM:-768M}"
5fc298
         -nographic
5fc298
         -kernel "$KERNEL_BIN"
5fc298
         -drive "format=raw,cache=unsafe,file=$image"