From: Michal Hocko Date: Wed, 12 Aug 2020 01:31:28 +0000 (-0700) Subject: doc, mm: clarify /proc//oom_score value range X-Git-Tag: v5.10.7~1862^2~141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1aa7c9377bdff904efa0fbde1f96e1769730d8a;p=platform%2Fkernel%2Flinux-rpi.git doc, mm: clarify /proc//oom_score value range The exported value includes oom_score_adj so the range is no [0, 1000] as described in the previous section but rather [0, 2000]. Mention that fact explicitly. Signed-off-by: Michal Hocko Signed-off-by: Andrew Morton Cc: Jonathan Corbet Cc: David Rientjes Cc: Yafang Shao Link: http://lkml.kernel.org/r/20200709062603.18480-2-mhocko@kernel.org Signed-off-by: Linus Torvalds --- diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index eb96a44..533c79e 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -1676,6 +1676,9 @@ This file can be used to check the current score used by the oom-killer for any given . Use it together with /proc//oom_score_adj to tune which process should be killed in an out-of-memory situation. +Please note that the exported value includes oom_score_adj so it is +effectively in range [0,2000]. + 3.3 /proc//io - Display the IO accounting fields -------------------------------------------------------