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:
@@ -54,7 +54,7 @@ Packages=
|
||||
shadow
|
||||
softhsm
|
||||
squashfs-tools
|
||||
stress
|
||||
stress-ng
|
||||
tgt
|
||||
tpm2-tools
|
||||
tpm2-tss
|
||||
|
||||
@@ -62,7 +62,7 @@ Packages=
|
||||
sbsigntools
|
||||
softhsm
|
||||
squashfs-tools
|
||||
stress
|
||||
stress-ng
|
||||
tpm2-tools
|
||||
util-linux
|
||||
veritysetup
|
||||
|
||||
@@ -78,7 +78,7 @@ Packages=
|
||||
quota
|
||||
softhsm2
|
||||
squashfs-tools
|
||||
stress
|
||||
stress-ng
|
||||
tgt
|
||||
tpm2-tools
|
||||
tzdata
|
||||
|
||||
@@ -79,6 +79,7 @@ Packages=
|
||||
shadow
|
||||
softhsm
|
||||
squashfs
|
||||
stress-ng
|
||||
tgt
|
||||
timezone
|
||||
tpm2.0-tools
|
||||
|
||||
@@ -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/"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user