diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2021-01-24 00:16:19 -0800 |
---|---|---|
committer | Anita Zhang <the.anitazha@gmail.com> | 2021-01-24 01:59:03 -0800 |
commit | c20aa7b17166b9f331da33ad9288f9ede75c72db (patch) | |
tree | 8a9063977ace04e0d13d068faa15755063e27c2e /test | |
parent | 664e54b1bb3e7f945fd8d2b97d1c6f78f0ff5e53 (diff) | |
download | systemd-c20aa7b17166b9f331da33ad9288f9ede75c72db.tar.gz |
oom: make memory pressure duration configurable through oomd.conf
Diffstat (limited to 'test')
-rwxr-xr-x | test/units/testsuite-56.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/units/testsuite-56.sh b/test/units/testsuite-56.sh index 1846248855..6e7941a57f 100755 --- a/test/units/testsuite-56.sh +++ b/test/units/testsuite-56.sh @@ -14,12 +14,15 @@ if [[ "$cgroup_type" != *"cgroup2"* ]] && [[ "$cgroup_type" != *"0x63677270"* ]] fi [[ -e /skipped ]] && exit 0 || true +echo "DefaultMemoryPressureDurationSec=5s" >> /etc/systemd/oomd.conf + systemctl start testsuite-56-testbloat.service systemctl start testsuite-56-testchill.service # Verify systemd-oomd is monitoring the expected units oomctl | grep "/testsuite-56-workload.slice" oomctl | grep "1%" +oomctl | grep "Default Memory Pressure Duration: 5s" # 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. |