From: David Rientjes <rientjes@google.com>
To: Michal Hocko <mhocko@suse.cz>
Cc: Austin S Hemmelgarn <ahferroin7@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] oom: split out forced OOM killer
Date: Mon, 8 Jun 2015 16:06:07 -0700 (PDT) [thread overview]
Message-ID: <alpine.DEB.2.10.1506081558270.17040@chino.kir.corp.google.com> (raw)
In-Reply-To: <20150608210621.GA18360@dhcp22.suse.cz>
On Mon, 8 Jun 2015, Michal Hocko wrote:
> > This patch is not a functional change, so I don't interpret your feedback
> > as any support of it being merged.
>
> David, have you actually read the patch? The changelog is mentioning this:
> "
> check_panic_on_oom on the other hand will work and that is kind of
> unexpected because sysrq+f should be usable to kill a mem hog whether
> the global OOM policy is to panic or not.
> It also doesn't make much sense to panic the system when no task cannot
> be killed because admin has a separate sysrq for that purpose.
> "
> and the patch exludes panic_on_oom from the sysrq path.
>
Yes, and that's why I believe we should pursue that direction without the
associated "cleanup" that adds 35 lines of code to supress a panic. In
other words, there's no reason to combine a patch that suppresses the
panic even with panic_on_oom, which I support, and a "cleanup" that I
believe just obfuscates the code.
It's a one-liner change: just test for force_kill and suppress the panic;
we don't need 35 new lines that create even more unique entry paths.
> > That said, you raise an interesting point of whether sysrq+f should ever
> > trigger a panic due to panic_on_oom. The case can be made that it should
> > ignore panic_on_oom and require the use of another sysrq to panic the
> > machine instead. Sysrq+f could then be used to oom kill a process,
> > regardless of panic_on_oom, and the panic only occurs if userspace did not
> > trigger the kill or the kill itself will fail.
>
> Why would it panic the system if there is no killable task? Shoudln't
> be admin able to do additional steps after the explicit oom killer failed
> and only then panic by sysrq?
>
Today it panics, I don't think it should panic when there are no killable
processes because it's inherently racy with userspace. It's similar to
suppressing panic_on_oom for sysrq+f, but for a different reason, so it
should probably be a separate patch with its own changelog (and update to
documentation for both patches to make this explicit).
--
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>
next prev parent reply other threads:[~2015-06-08 23:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 8:53 Michal Hocko
2015-06-04 22:59 ` David Rientjes
2015-06-05 11:28 ` Austin S Hemmelgarn
2015-06-08 17:59 ` David Rientjes
2015-06-08 18:58 ` Austin S Hemmelgarn
2015-06-08 19:41 ` David Rientjes
2015-06-08 21:06 ` Michal Hocko
2015-06-08 23:06 ` David Rientjes [this message]
2015-06-09 9:36 ` Michal Hocko
2015-06-09 22:45 ` David Rientjes
2015-06-10 7:37 ` Michal Hocko
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=alpine.DEB.2.10.1506081558270.17040@chino.kir.corp.google.com \
--to=rientjes@google.com \
--cc=ahferroin7@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
/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