Re: [PATCH v2] mm/oom_kill: count global and memory cgroup oom kills

2017-09-13 Thread Pintu Kumar
On Wed, Sep 13, 2017 at 1:05 PM, Konstantin Khlebnikov wrote: > On 13.09.2017 07:51, PINTU KUMAR wrote: >> >> >> >> Hi, >> >> I have submitted a similar patch 2 years ago (Oct/2015). >> But at that time the patch was rejected. >> Here is the history: >> https://lkml.org/lkml/2015/10/1/372 >> >> No

Re: [PATCH v2] mm/oom_kill: count global and memory cgroup oom kills

2017-09-13 Thread Konstantin Khlebnikov
On 13.09.2017 07:51, PINTU KUMAR wrote: Hi, I have submitted a similar patch 2 years ago (Oct/2015). But at that time the patch was rejected. Here is the history: https://lkml.org/lkml/2015/10/1/372 Now I see the similar patch got accepted. At least the initial idea and the objective were sa

Re: [PATCH v2] mm/oom_kill: count global and memory cgroup oom kills

2017-06-08 Thread Michal Hocko
On Mon 05-06-17 17:27:50, Konstantin Khlebnikov wrote: > > > On 05.06.2017 11:50, Michal Hocko wrote: > >On Thu 25-05-17 13:28:30, Konstantin Khlebnikov wrote: [...] > >>index 04c9143a8625..dd30a045ef5b 100644 > >>--- a/mm/oom_kill.c > >>+++ b/mm/oom_kill.c > >>@@ -876,6 +876,11 @@ static void oo

Re: [PATCH v2] mm/oom_kill: count global and memory cgroup oom kills

2017-06-05 Thread Konstantin Khlebnikov
On 05.06.2017 11:50, Michal Hocko wrote: On Thu 25-05-17 13:28:30, Konstantin Khlebnikov wrote: 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 "

Re: [PATCH v2] mm/oom_kill: count global and memory cgroup oom kills

2017-06-05 Thread Michal Hocko
On Thu 25-05-17 13:28:30, Konstantin Khlebnikov wrote: > 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 > cgro

Re: [PATCH v2] mm/oom_kill: count global and memory cgroup oom kills

2017-05-29 Thread Konstantin Khlebnikov
On Tue, May 30, 2017 at 7:29 AM, David Rientjes wrote: > On Thu, 25 May 2017, Konstantin Khlebnikov wrote: > >> diff --git a/mm/oom_kill.c b/mm/oom_kill.c >> index 04c9143a8625..dd30a045ef5b 100644 >> --- a/mm/oom_kill.c >> +++ b/mm/oom_kill.c >> @@ -876,6 +876,11 @@ static void oom_kill_process(s

Re: [PATCH v2] mm/oom_kill: count global and memory cgroup oom kills

2017-05-29 Thread David Rientjes
On Thu, 25 May 2017, Konstantin Khlebnikov wrote: > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > index 04c9143a8625..dd30a045ef5b 100644 > --- a/mm/oom_kill.c > +++ b/mm/oom_kill.c > @@ -876,6 +876,11 @@ static void oom_kill_process(struct oom_control *oc, > const char *message) > /* Get a

[PATCH v2] mm/oom_kill: count global and memory cgroup oom kills

2017-05-25 Thread Konstantin Khlebnikov
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 sh