doc: memcontrol: add description for oom_kill
authorYang Shi <shy828301@gmail.com>
Fri, 26 Feb 2021 02:12:54 +0000 (18:12 -0800)
committerJonathan Corbet <corbet@lwn.net>
Sun, 7 Mar 2021 00:36:50 +0000 (17:36 -0700)
commit1eff491fc44b9a1cd3483e289b987c2d00441f20
treeb2c7b46d603fac1b1fc97715eec0d51f936cf234
parentabe4a3996e5f8c43ed579051d661e2104d7bda61
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: Yang Shi <shy828301@gmail.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Chris Down <chris@chrisdown.name>
Link: https://lore.kernel.org/r/20210226021254.3980-1-shy828301@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/admin-guide/cgroup-v1/memory.rst