linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] doc: memcontrol: add description for oom_kill
@ 2021-02-26  2:12 Yang Shi
  2021-02-26  7:30 ` Michal Hocko
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Yang Shi @ 2021-02-26  2:12 UTC (permalink / raw)
  To: hannes, mhocko, guro, shakeelb, akpm, corbet
  Cc: shy828301, linux-mm, linux-kernel

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: Yang Shi <shy828301@gmail.com>
---
 Documentation/admin-guide/cgroup-v1/memory.rst | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/admin-guide/cgroup-v1/memory.rst b/Documentation/admin-guide/cgroup-v1/memory.rst
index 0936412e044e..44d5429636e2 100644
--- a/Documentation/admin-guide/cgroup-v1/memory.rst
+++ b/Documentation/admin-guide/cgroup-v1/memory.rst
@@ -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
 ===================
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-03-01 21:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26  2:12 [PATCH] doc: memcontrol: add description for oom_kill Yang Shi
2021-02-26  7:30 ` Michal Hocko
2021-02-26 16:42   ` Yang Shi
2021-02-26 19:19     ` Yang Shi
2021-03-01 12:24       ` Michal Hocko
2021-03-01 17:17         ` Yang Shi
2021-03-01 12:15     ` Michal Hocko
2021-03-01 17:07       ` Yang Shi
2021-02-26 14:23 ` Shakeel Butt
2021-02-26 14:33 ` Chris Down
2021-03-01 21:20 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).