From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
"kosaki.motohiro@jp.fujitsu.com" <kosaki.motohiro@jp.fujitsu.com>,
rientjes@google.com
Subject: Re: [PATCH v4] oom: add trace points for debugging.
Date: Wed, 14 Dec 2011 08:52:36 +0900 [thread overview]
Message-ID: <20111214085236.42c02bda.kamezawa.hiroyu@jp.fujitsu.com> (raw)
In-Reply-To: <20111213145851.c7e5d8fa.akpm@linux-foundation.org>
On Tue, 13 Dec 2011 14:58:51 -0800
Andrew Morton <akpm@linux-foundation.org> wrote:
> On Tue, 13 Dec 2011 18:12:25 +0900
> KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> wrote:
>
> > Changelog:
> > - devided into oom tracepoint and task tracepoint.
> > - task tracepoint traces fork/rename
> > - oom tracepoint traces modification to oom_score_adj.
> >
> > dropped acks because of total design changes.
> >
> > From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> > Subject: [PATCH] tracepoint: add tracepoints for debugging oom_score_adj.
> >
> > oom_score_adj is used for guarding processes from OOM-Killer. One of problem
> > is that it's inherited at fork(). When a daemon set oom_score_adj and
> > make children, it's hard to know where the value is set.
>
> This sounds like a really thin justification for patching the kernel.
> "Help! I don't know what my code is doing!".
>
> Alternatives would include grepping your source code for
> "oom_score_adj", or running "strace -f"!
>
> I suspect you did have a good reason for making this change, but it
> wasn't explained very well?
>
Ah, one example is this thread.
- http://marc.info/?t=132273239800008&r=1&w=4
oom_score_adj was inherited by sshd by bug?
And IIUC, I saw other issues with other task launchers as Gnome.
If the problem is caused by some daemon, strace -f is not very good.
And the user will not have the source codes. So, I thought it's better
to have tracepoints to see what is wrong in application chains.
Thanks,
-Kame
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2011-12-13 23:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-13 9:12 KAMEZAWA Hiroyuki
2011-12-13 22:58 ` Andrew Morton
2011-12-13 23:52 ` KAMEZAWA Hiroyuki [this message]
2011-12-15 8:55 ` David Rientjes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111214085236.42c02bda.kamezawa.hiroyu@jp.fujitsu.com \
--to=kamezawa.hiroyu@jp.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=rientjes@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox