summaryrefslogtreecommitdiffstats
path: root/units/systemd-udevd.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-08-22 10:02:28 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-08-22 10:02:28 +0200
commit2ec71e439f62603de29e68e48705c1f707b847db (patch)
treea51c35279bdfae87b6296fa659ade558dcf6a2fe /units/systemd-udevd.service.in
parentMerge pull request #13365 from keszybz/fix-commits-from-pr-13246 (diff)
downloadsystemd-2ec71e439f62603de29e68e48705c1f707b847db.tar.xz
systemd-2ec71e439f62603de29e68e48705c1f707b847db.zip
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)
Diffstat (limited to '')
-rw-r--r--units/systemd-udevd.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in
index e8a76cc018..dbb678ae69 100644
--- a/units/systemd-udevd.service.in
+++ b/units/systemd-udevd.service.in
@@ -17,6 +17,7 @@ ConditionPathIsReadWrite=/sys
[Service]
Type=notify
+# Note that udev also adjusts the OOM score internally and will reset the value internally for its workers
OOMScoreAdjust=-1000
Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
Restart=always