Hi.
On Sun, 12 Mar 2023 17:33:42 +0000 "Andre Robatino" wrote:
I just tried removing systemd-oomd-defaults and it's still possible to run systemd-oomd so I was wrong in thinking that would prevent it.
Right: systemd-oomd-defaults only configures systemd-oomd.
rpm -ql --scripts systemd-oomd-defaults /usr/lib/systemd/oomd.conf.d /usr/lib/systemd/oomd.conf.d/10-oomd-defaults.conf /usr/lib/systemd/system/system.slice.d/10-oomd-per-slice-defaults.conf /usr/lib/systemd/system/user-.slice.d/10-oomd-per-slice-defaults.conf /usr/lib/systemd/user/slice.d/10-oomd-per-slice-defaults.conf
I checked on a small VM.
With it installed, oomctl shows some CGroups monitored
root# oomctl Dry Run: no Swap Used Limit: 90.00% Default Memory Pressure Limit: 60.00% Default Memory Pressure Duration: 30s System Context: Memory: Used: 349.5M Total: 1.9G Swap: Used: 0B Total: 0B Swap Monitored CGroups: Memory Pressure Monitored CGroups: Path: /user.slice/user-0.slice Memory Pressure Limit: 50.00% <snip> Path: /user.slice/user-0.slice/user@0.service <snip> root#
With it removes. and after a reboot (needed), no CGroups monitored
root# oomctl Dry Run: no Swap Used Limit: 90.00% Default Memory Pressure Limit: 60.00% Default Memory Pressure Duration: 30s System Context: Memory: Used: 457.5M Total: 1.9G Swap: Used: 0B Total: 0B Swap Monitored CGroups: Memory Pressure Monitored CGroups: root#