Files
pmaports-rtwo/extra-repos/systemd/postmarketos-base-systemd/rootfs-usr-lib-systemd-system--.slice.d-10-oomd-defaults.conf
T
Clayton Craft ed4088ae33 systemd/postmarketos-base-systemd: oomd: disable swap kill, raise app slice priority
This disables swap-based killing and sets a lower pressure threshold
for user apps in the app slice so they will get killed sooner than other
things (e..g the whole session slice).

Killing based on swap usage was resulting in some sudden kills from
oomd, and upon further investigation is seems like other distros
(ubuntu, fedora) either never enabled this or walked it back due to it
being confusing for users.

The override for app.slice and sets the pressure limit to a value less
than the other slices, in an attempt to fix situations where an app
(e.g. firefox) was creating a ton of pressure and systemd-oomd was
killing the entire UI/session.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7751>
2026-01-17 09:14:13 -08:00

4 lines
72 B
Plaintext

[Slice]
ManagedOOMMemoryPressure=kill
ManagedOOMMemoryPressureLimit=80%