TEST-55-OOMD: Switch to stress-ng

stress-ng is available in OpenSUSE and in CentOS Stream without needing
EPEL so let's switch to it instead of stress.
This commit is contained in:
Daan De Meyer
2024-07-10 18:52:26 +02:00
parent d5c3868181
commit 3e3a15c06e
8 changed files with 8 additions and 15 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ Packages=
shadow
softhsm
squashfs-tools
stress
stress-ng
tgt
tpm2-tools
tpm2-tss
+1 -1
View File
@@ -62,7 +62,7 @@ Packages=
sbsigntools
softhsm
squashfs-tools
stress
stress-ng
tpm2-tools
util-linux
veritysetup
+1 -1
View File
@@ -78,7 +78,7 @@ Packages=
quota
softhsm2
squashfs-tools
stress
stress-ng
tgt
tpm2-tools
tzdata
+1
View File
@@ -79,6 +79,7 @@ Packages=
shadow
softhsm
squashfs
stress-ng
tgt
timezone
tpm2.0-tools
+1 -1
View File
@@ -14,7 +14,7 @@ TEST_NO_NSPAWN=1
test_append_files() {
local workspace="${1:?}"
image_install mkswap swapon swapoff stress
image_install mkswap swapon swapoff stress-ng
image_install -o btrfs
mkdir -p "${workspace:?}/etc/systemd/system/init.scope.d/"
+2 -2
View File
@@ -3,8 +3,8 @@
Description=Create a lot of memory pressure
[Service]
# A VERY small memory.high will cause the 'stress' (trying to use a lot of memory)
# A VERY small memory.high will cause the 'stress-ng' (trying to use a lot of memory)
# to throttle and be put under heavy pressure.
MemoryHigh=3M
Slice=TEST-55-OOMD-workload.slice
ExecStart=stress --timeout 3m --vm 10 --vm-bytes 200M --vm-keep --vm-stride 1
ExecStart=stress-ng --timeout 3m --vm 10 --vm-bytes 200M --vm-keep
+1 -1
View File
@@ -5,4 +5,4 @@ Description=Create some memory pressure
[Service]
MemoryHigh=12M
Slice=TEST-55-OOMD-workload.slice
ExecStart=stress --timeout 3m --vm 10 --vm-bytes 200M --vm-keep --vm-stride 1
ExecStart=stress-ng --timeout 3m --vm 10 --vm-bytes 200M --vm-keep
-8
View File
@@ -6,14 +6,6 @@ set -o pipefail
# shellcheck source=test/units/util.sh
. "$(dirname "$0")"/util.sh
. /etc/os-release
# OpenSUSE does not have the stress tool packaged. It does have stress-ng but the stress-ng does not support
# --vm-stride which this test uses.
if [[ "$ID" =~ "opensuse" ]]; then
echo "Skipping due to missing stress package in OpenSUSE" >>/skipped
exit 77
fi
systemd-analyze log-level debug
# Ensure that the init.scope.d drop-in is applied on boot