]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/unit.c
core: add a new setting DefaultOOMScoreAdjust= and set it to 100 above service manage...
authorLennart Poettering <lennart@poettering.net>
Thu, 30 Sep 2021 09:21:18 +0000 (11:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 4 Oct 2021 14:27:10 +0000 (16:27 +0200)
commitd4a402e4f6935cd7fa9ae8ea01b30944d9fcb3d0
treeb0ee82844d5cf531cab860a1945b55a9c95a353e
parentbb2d1d8ea40a2330c5f0a9245c32e5a05829bbf2
core: add a new setting DefaultOOMScoreAdjust= and set it to 100 above service manager's by default

Let's make our service managers slightly less likely to be killed by the
OOM killer by adjusting our services' OOM score adjustment to 100 above
ours. Do this conservatively, i.e. only for regular user sessions.
man/org.freedesktop.systemd1.xml
src/core/dbus-manager.c
src/core/main.c
src/core/manager.h
src/core/unit.c