mirror of
https://github.com/systemd/systemd
synced 2024-11-05 18:25:39 +00:00
oom: update extended test to remove swap gating
This commit is contained in:
parent
924c89e9fe
commit
2e744a2cd8
1 changed files with 1 additions and 2 deletions
|
@ -6,7 +6,6 @@ systemd-analyze log-level debug
|
|||
systemd-analyze log-target console
|
||||
|
||||
# Loose checks to ensure the environment has the necessary features for systemd-oomd
|
||||
[[ "$( awk '/SwapTotal/ { print $2 }' /proc/meminfo )" != "0" ]] || echo "no swap" >> /skipped
|
||||
[[ -e /proc/pressure ]] || echo "no PSI" >> /skipped
|
||||
cgroup_type=$(stat -fc %T /sys/fs/cgroup/)
|
||||
if [[ "$cgroup_type" != *"cgroup2"* ]] && [[ "$cgroup_type" != *"0x63677270"* ]]; then
|
||||
|
@ -16,8 +15,8 @@ fi
|
|||
|
||||
echo "DefaultMemoryPressureDurationSec=5s" >> /etc/systemd/oomd.conf
|
||||
|
||||
systemctl start testsuite-56-testbloat.service
|
||||
systemctl start testsuite-56-testchill.service
|
||||
systemctl start testsuite-56-testbloat.service
|
||||
|
||||
# Verify systemd-oomd is monitoring the expected units
|
||||
oomctl | grep "/testsuite-56-workload.slice"
|
||||
|
|
Loading…
Reference in a new issue