]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: tweak parameters for TEST-55-OOMD
authorAnita Zhang <the.anitazha@gmail.com>
Sun, 12 Sep 2021 07:02:31 +0000 (00:02 -0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 12 Sep 2021 10:16:18 +0000 (19:16 +0900)
Pressure remains > 1% after a kill for some time and could cause
testchill to get killed. Bumping the limit from 1% to 20% should help
with this.

Fixes #20118

test/units/testsuite-55-workload.slice
test/units/testsuite-55.sh

index 8c32b28094f18b9977f8e43fce906e047362d693..a1accbc22f4021fdeda636be3be57f7fdb38a9fd 100644 (file)
@@ -7,4 +7,4 @@ MemoryAccounting=true
 IOAccounting=true
 TasksAccounting=true
 ManagedOOMMemoryPressure=kill
-ManagedOOMMemoryPressureLimit=1%
+ManagedOOMMemoryPressureLimit=20%
index 099ecc98fae838902e40547abbb131008ee41da3..e988dc587847ec3c07a0d3df23b00432978caf50 100755 (executable)
@@ -38,7 +38,7 @@ systemctl start testsuite-55-testbloat.service
 
 # Verify systemd-oomd is monitoring the expected units
 oomctl | grep "/testsuite-55-workload.slice"
-oomctl | grep "1.00%"
+oomctl | grep "20.00%"
 oomctl | grep "Default Memory Pressure Duration: 2s"
 
 systemctl status testsuite-55-testchill.service
@@ -75,7 +75,7 @@ if setfattr -n user.xattr_test -v 1 /sys/fs/cgroup/; then
         if ! systemctl status testsuite-55-testmunch.service; then
             break
         fi
-        sleep 5
+        sleep 2
     done
 
     # testmunch should be killed since testbloat had the avoid xattr on it