diff --git a/test/units/testsuite-56-testbloat.service b/test/units/testsuite-56-testbloat.service index 40cf5a9f36..6163aae1db 100644 --- a/test/units/testsuite-56-testbloat.service +++ b/test/units/testsuite-56-testbloat.service @@ -2,8 +2,8 @@ Description=Create a lot of memory pressure [Service] -# A very small memory.high will cause the script (trying to use a lot of memory) -# to throttle and be put under heavy pressure -MemoryHigh=2M +# A VERY small memory.high will cause the script (trying to use a lot of memory) +# to throttle and be put under heavy pressure. +MemoryHigh=1M Slice=testsuite-56-workload.slice ExecStart=/usr/lib/systemd/tests/testdata/units/testsuite-56-slowgrowth.sh diff --git a/test/units/testsuite-56-workload.slice b/test/units/testsuite-56-workload.slice index 3d542ec2ba..45b04914c6 100644 --- a/test/units/testsuite-56-workload.slice +++ b/test/units/testsuite-56-workload.slice @@ -7,4 +7,4 @@ MemoryAccounting=true IOAccounting=true TasksAccounting=true ManagedOOMMemoryPressure=kill -ManagedOOMMemoryPressureLimitPercent=50% +ManagedOOMMemoryPressureLimitPercent=1% diff --git a/test/units/testsuite-56.sh b/test/units/testsuite-56.sh index 37d62d943c..1846248855 100755 --- a/test/units/testsuite-56.sh +++ b/test/units/testsuite-56.sh @@ -19,7 +19,7 @@ systemctl start testsuite-56-testchill.service # Verify systemd-oomd is monitoring the expected units oomctl | grep "/testsuite-56-workload.slice" -oomctl | grep "50%" +oomctl | grep "1%" # systemd-oomd watches for elevated pressure for 30 seconds before acting. # It can take time to build up pressure so either wait 5 minutes or for the service to fail.