From 3b18f3017c212c3e2a89e18c81bd75c8df3852d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 26 Apr 2022 22:05:41 +0200 Subject: [PATCH] man: direct users to systemd-oomd if they read about OOMPolicy OOMPolicy remains valid, but let's push users for the userspace solution. --- man/systemd.service.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/man/systemd.service.xml b/man/systemd.service.xml index ad303d440b3..fbb77d5e583 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -1123,8 +1123,14 @@ OOMPolicy= - Configure the Out-Of-Memory (OOM) killer policy. On Linux, when memory becomes scarce - the kernel might decide to kill a running process in order to free up memory and reduce memory + Configure the out-of-memory (OOM) kernel killer policy. Note that the userspace OOM + killer + systemd-oomd.service8 + is a more flexible solution that aims to prevent out-of-memory situations for the userspace, not just + the kernel. + + On Linux, when memory becomes scarce to the point that the kernel has trouble allocating memory + for itself, it might decide to kill a running process in order to free up memory and reduce memory pressure. This setting takes one of continue, stop or kill. If set to continue and a process of the service is killed by the kernel's OOM killer this is logged but the service continues running. If set to -- 2.47.3