]> git.ipfire.org Git - thirdparty/systemd.git/commit
journald: slightly bump OOM adjust for journald (#13366)
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Aug 2019 08:02:28 +0000 (10:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 22 Aug 2019 08:02:28 +0000 (10:02 +0200)
commit2ec71e439f62603de29e68e48705c1f707b847db
treea51c35279bdfae87b6296fa659ade558dcf6a2fe
parentd0696f3b7501744d91bcbef83478b9cd4a8160f4
journald: slightly bump OOM adjust for journald (#13366)

If logging disappears issues are hard to debug, hence let's give
journald a slight edge over other services when the OOM killer hits.

Here are the special adjustments we now make:

 systemd-coredump@.service.in OOMScoreAdjust=500
 systemd-journald.service.in  OOMScoreAdjust=-250
 systemd-udevd.service.in     OOMScoreAdjust=-1000

(i.e. the coredump processing is made more likely to be killed on OOM,
and udevd and journald are less likely to be killed)
TODO
src/shutdown/shutdown.c
units/systemd-journald.service.in
units/systemd-udevd.service.in