mm/oom_kill: count global and memory cgroup oom kills
Show count of oom killer invocations in /proc/vmstat and count of processes killed in memory cgroup in knob "memory.events" (in memory.oom_control for v1 cgroup). Also describe difference between "oom" and "oom_kill" in memory cgroup documentation. Currently oom in memory cgroup kills tasks iff shortage has happened inside page fault. These counters helps in monitoring oom kills - for now the only way is grepping for magic words in kernel log. [akpm@linux-foundation.org: fix for mem_cgroup_count_vm_event() rename] [akpm@linux-foundation.org: fix comment, per Konstantin] Link: http://lkml.kernel.org/r/149570810989.203600.9492483715840752937.stgit@buzz Signed-off-by:Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Cc: Michal Hocko <mhocko@kernel.org> Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Roman Guschin <guroan@gmail.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- Documentation/cgroup-v2.txt 16 additions, 4 deletionsDocumentation/cgroup-v2.txt
- include/linux/memcontrol.h 4 additions, 1 deletioninclude/linux/memcontrol.h
- include/linux/vm_event_item.h 1 addition, 0 deletionsinclude/linux/vm_event_item.h
- mm/memcontrol.c 2 additions, 0 deletionsmm/memcontrol.c
- mm/oom_kill.c 5 additions, 0 deletionsmm/oom_kill.c
- mm/vmstat.c 1 addition, 0 deletionsmm/vmstat.c
Loading
Please register or sign in to comment