From: Michal Hocko <mhocko@suse.cz>
To: akpm@linux-foundation.org
Cc: mm-commits@vger.kernel.org, handai.szj@taobao.com,
gthelen@google.com, hannes@cmpxchg.org,
kamezawa.hiroyu@jp.fujitsu.com, rientjes@google.com,
LKML <linux-kernel@vger.kernel.org>,
linux-mm@kvack.org
Subject: Re: + memcg-oom-clarify-some-oom-dump-messages.patch added to -mm tree
Date: Mon, 30 Jul 2012 16:00:09 +0200 [thread overview]
Message-ID: <20120730140009.GF12680@tiehlicka.suse.cz> (raw)
In-Reply-To: <20120724203309.B04155C0050@hpza9.eem.corp.google.com>
On Tue 24-07-12 13:33:08, Andrew Morton wrote:
>
> The patch titled
> Subject: memcg, oom: clarify some oom dump messages
> has been added to the -mm tree. Its filename is
> memcg-oom-clarify-some-oom-dump-messages.patch
>
> Before you just go and hit "reply", please:
> a) Consider who else should be cc'ed
> b) Prefer to cc a suitable mailing list as well
> c) Ideally: find the original patch on the mailing list and do a
> reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
> The -mm tree is included into linux-next and is updated
> there every 3-4 working days
>
> ------------------------------------------------------
> From: Sha Zhengju <handai.szj@taobao.com>
> Subject: memcg, oom: clarify some oom dump messages
>
> Revise some oom dump messages to avoid misleading admin.
Not that I would care much, but does this make the messages really more
clear?
OOM killer just sends the signal and the task dies asynchronously so
saying that something has been killed is a bit misleading but I am
wondering it it really confuses anybody to make a wrong conclusion from
the message.
[...]
> diff -puN mm/oom_kill.c~memcg-oom-clarify-some-oom-dump-messages mm/oom_kill.c
> --- a/mm/oom_kill.c~memcg-oom-clarify-some-oom-dump-messages
> +++ a/mm/oom_kill.c
[...]
> @@ -509,6 +509,7 @@ void oom_kill_process(struct task_struct
> if (!p) {
> rcu_read_unlock();
> put_task_struct(victim);
> + pr_err("No process has been killed!\n");
Is this even true? p existed few moments ago so it could have been
killed and exited in the mean time
> return;
> } else if (victim != p) {
> get_task_struct(p);
> @@ -540,7 +541,7 @@ void oom_kill_process(struct task_struct
> continue;
>
> task_lock(p); /* Protect ->comm from prctl() */
> - pr_err("Kill process %d (%s) sharing same memory\n",
> + pr_err("Killed process %d (%s) sharing same memory\n",
> task_pid_nr(p), p->comm);
technically it hasn't been killed yet because you are sending the signal
bellow.
> task_unlock(p);
> do_send_sig_info(SIGKILL, SEND_SIG_FORCED, p, true);
> _
> Subject: Subject: memcg, oom: clarify some oom dump messages
>
> Patches currently in -mm which might be from handai.szj@taobao.com are
>
> mm-oom-introduce-helper-function-to-process-threads-during-scan.patch
> mm-memcg-introduce-own-oom-handler-to-iterate-only-over-its-own-threads.patch
> memcg-oom-provide-more-info-while-memcg-oom-happening.patch
> memcg-oom-clarify-some-oom-dump-messages.patch
>
--
Michal Hocko
SUSE Labs
--
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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
parent reply other threads:[~2012-07-30 14:00 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20120724203309.B04155C0050@hpza9.eem.corp.google.com>]
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=20120730140009.GF12680@tiehlicka.suse.cz \
--to=mhocko@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=gthelen@google.com \
--cc=handai.szj@taobao.com \
--cc=hannes@cmpxchg.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mm-commits@vger.kernel.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