Commit 1eff491f authored by Yang Shi's avatar Yang Shi Committed by Jonathan Corbet
Browse files

doc: memcontrol: add description for oom_kill



When debugging an oom issue, I found the oom_kill counter of memcg is
confusing.  At the first glance without checking document, I thought it
just counts for memcg oom, but it turns out it counts both global and
memcg oom.

The cgroup v2 documents it, but the description is missed for cgroup v1.

Signed-off-by: default avatarYang Shi <shy828301@gmail.com>
Reviewed-by: default avatarShakeel Butt <shakeelb@google.com>
Acked-by: default avatarMichal Hocko <mhocko@suse.com>
Acked-by: default avatarChris Down <chris@chrisdown.name>
Link: https://lore.kernel.org/r/20210226021254.3980-1-shy828301@gmail.com


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent abe4a399
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -851,6 +851,9 @@ At reading, current status of OOM is shown.
	  (if 1, oom-killer is disabled)
	- under_oom	   0 or 1
	  (if 1, the memory cgroup is under OOM, tasks may be stopped.)
        - oom_kill         integer counter
          The number of processes belonging to this cgroup killed by any
          kind of OOM killer.

11. Memory Pressure
===================