Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1653251

Re: [PATCH] mm,oom: add tracepoints for oom reaper-related events

From Michal Hocko <mhocko@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH] mm,oom: add tracepoints for oom reaper-related events
Date 2017-05-30 15:50 +0200
Message-ID <tMPH4-82d-29@gated-at.bofh.it> (permalink)
References <tMOBk-7lm-9@gated-at.bofh.it> <tMOBk-7lm-7@gated-at.bofh.it> <tMPH4-82d-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue 30-05-17 14:33:35, Roman Gushchin wrote:
> On Tue, May 30, 2017 at 02:34:16PM +0200, Michal Hocko wrote:
> > On Tue 30-05-17 13:05:32, Roman Gushchin wrote:
> > > Add tracepoints to simplify the debugging of the oom reaper code.
> > > 
> > > Trace the following events:
> > > 1) a process is marked as an oom victim,
> > > 2) a process is added to the oom reaper list,
> > > 3) the oom reaper starts reaping process's mm,
> > > 4) the oom reaper finished reaping,
> > > 5) the oom reaper skips reaping.
> > 
> > I am not against but could you explain why the current printks are not
> > sufficient? We do not have any explicit printk for the 2) and 3) but
> > are those really necessary?
> 
> We also don't have any printks for 1) and 2) if, for, instance, we call
> out_of_memory() and task_will_free_mem(current) returns true.
> 
> > 
> > In other words could you describe the situation when you found these
> > tracepoints more useful than what the kernel log offers already?
> 
> During my work on cgroup-aware OOM killer and some issues discovered
> in process (which are described in https://lkml.org/lkml/2017/5/17/542;
> most important problem fixed by Tetsuo), I've found an existing debug output
> insufficient and sometimes too bulky.
> 
> Suggested traces allowed me to debug issues like I've met (double invocation
> of oom_reaper, etc) much easier.

Please describe those and examples how the new tracepoints will be
useful in the changelog.
-- 
Michal Hocko
SUSE Labs

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] mm,oom: add tracepoints for oom reaper-related events Michal Hocko <mhocko@kernel.org> - 2017-05-30 14:40 +0200
  Re: [PATCH] mm,oom: add tracepoints for oom reaper-related events Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> - 2017-05-30 15:20 +0200
  Re: [PATCH] mm,oom: add tracepoints for oom reaper-related events Michal Hocko <mhocko@kernel.org> - 2017-05-30 15:50 +0200
    Re: [PATCH v2] mm,oom: add tracepoints for oom reaper-related events Michal Hocko <mhocko@kernel.org> - 2017-05-31 18:40 +0200
      Re: [PATCH v2] mm,oom: add tracepoints for oom reaper-related events Michal Hocko <mhocko@kernel.org> - 2017-06-02 10:20 +0200

csiph-web