Skip to content

Commit de3f32e

Browse files
Michal Hockotorvalds
authored andcommitted
doc, mm: sync up oom_score_adj documentation
There are at least two notes in the oom section. The 3% discount for root processes is gone since d46078b ("mm, oom: remove 3% bonus for CAP_SYS_ADMIN processes"). Likewise children of the selected oom victim are not sacrificed since bbbe480 ("mm, oom: remove 'prefer children over parent' heuristic") Drop both of them. 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-1-mhocko@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9066e5c commit de3f32e

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎Documentation/filesystems/proc.rst‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,9 +1633,6 @@ may allocate from based on an estimation of its current memory and swap use.
16331633
For example, if a task is using all allowed memory, its badness score will be
16341634
1000. If it is using half of its allowed memory, its score will be 500.
16351635

1636-
There is an additional factor included in the badness score: the current memory
1637-
and swap usage is discounted by 3% for root processes.
1638-
16391636
The amount of "allowed" memory depends on the context in which the oom killer
16401637
was called. If it is due to the memory assigned to the allocating task's cpuset
16411638
being exhausted, the allowed memory represents the set of mems assigned to that
@@ -1671,11 +1668,6 @@ The value of /proc/<pid>/oom_score_adj may be reduced no lower than the last
16711668
value set by a CAP_SYS_RESOURCE process. To reduce the value any lower
16721669
requires CAP_SYS_RESOURCE.
16731670

1674-
Caveat: when a parent task is selected, the oom killer will sacrifice any first
1675-
generation children with separate address spaces instead, if possible. This
1676-
avoids servers and important system daemons from being killed and loses the
1677-
minimal amount of work.
1678-
16791671

16801672
3.2 /proc/<pid>/oom_score - Display current oom-killer score
16811673
-------------------------------------------------------------

0 commit comments

Comments
 (0)