Skip to content

Commit b1aa7c9

Browse files
Michal Hockotorvalds
authored andcommitted
doc, mm: clarify /proc/<pid>/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 <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: David Rientjes <rientjes@google.com> Cc: Yafang Shao <laoar.shao@gmail.com> Link: http://lkml.kernel.org/r/20200709062603.18480-2-mhocko@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent de3f32e commit b1aa7c9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Documentation/filesystems/proc.rst‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,6 +1676,9 @@ This file can be used to check the current score used by the oom-killer for
16761676
any given <pid>. Use it together with /proc/<pid>/oom_score_adj to tune which
16771677
process should be killed in an out-of-memory situation.
16781678

1679+
Please note that the exported value includes oom_score_adj so it is
1680+
effectively in range [0,2000].
1681+
16791682

16801683
3.3 /proc/<pid>/io - Display the IO accounting fields
16811684
-------------------------------------------------------

0 commit comments

Comments
 (0)