From: Nick Piggin <npiggin@suse.de>
To: David Rientjes <rientjes@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>,
linux-mm@kvack.org,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Subject: Re: oom killer rewrite
Date: Tue, 25 May 2010 20:31:27 +1000 [thread overview]
Message-ID: <20100525103127.GK5087@laptop> (raw)
In-Reply-To: <alpine.DEB.2.00.1005250314440.8045@chino.kir.corp.google.com>
On Tue, May 25, 2010 at 03:23:01AM -0700, David Rientjes wrote:
> On Tue, 25 May 2010, Nick Piggin wrote:
>
> > OK, you still never justified why that change is needed, or why it
> > is even a cleanup at all. You need actually a *good* reason to change
> > the user kernel API. A slight difference in opinion of what the sysctls
> > should be, or a slight change in implementation in the kernel, is not
> > a good reason in the slightest.
> >
>
> My personal opinion (and it's no longer what I'm advocating since I'm
> hoping that the much larger importance of this patchset can now be
> realized without this sideshow) is that if we have the opportunity to
> consolidate two virtually unused sysctls into one to cleanup procfs and
> make extending the oom killer easier in the future without the need to add
> additional sysctls for systems that cannot afford a tasklist scan that we
> should do it. I didn't think anyone was using them (nobody can be cited
> as using them) and I felt the two year deprecation period was enough to be
> able to cleanup the ever-growing list of VM sysctls as well as making it
> easier to extend in the future by adding a sysctl that had semantics
> specifically directed to its target audience.
>
> > The point about not many people using the parameters I don't think is
> > a good one. 2.6.32 is being used in the next enterprise kernels so they
> > are going to be in production for 5 or more years. How many people will
> > have written scripts by the time they upgrade?
> >
>
> If nothing else, this solidifies in my mind the notion that once a VM
> sysctl is added, it can never be removed. I regret adding
> oom_kill_allocating_task at the mere suggestion of SGI when I made cpuset
> ooms do a tasklist scan without developing a more extendable interface for
> those large systems that we could piggyback on later for the same reasons
> (we'd now need to disable oom_dump_tasks once it's the default for those
> systems). I felt the deprecation and removal would eventually be
> sufficient, but I'm no longer going to push it because it's sidetracking a
> much larger and seperate effort.
Thanks :) It's unfortunate, but if it is no real burden to carry it
then we really should. It's easy to get APIs wrong, we can't blame
the person proposing the API because everyone makes wrong or short
sighted choices.
What is needed is more careful flagging and review of API additions
and changes.
> > > I've made that change in my latest patch series which I'll be posting
> > > shortly.
> >
> > The other thing is that it makes perfect sense to put controversial
> > changes on hold even if you still think you can make a case for them.
>
> I personally like consistency even amongst architectures when it comes to
> the semantics of sysctls, so the pagefault oom handling changes were
> merely for compatibility until all architectures were converted to using
> the oom killer. You've done that work, so I no longer have a problem with
> panicking when the pagefault handler is called.
Fair enough. I should have just shut up and fixed my half done changes
rather than arguing :) So apologies for that!
--
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:[~2010-05-25 10:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-19 22:14 oom killer rewrite David Rientjes
2010-05-20 0:27 ` KAMEZAWA Hiroyuki
2010-05-25 9:42 ` David Rientjes
2010-05-26 0:17 ` KAMEZAWA Hiroyuki
2010-05-26 1:40 ` David Rientjes
2010-05-26 2:00 ` KAMEZAWA Hiroyuki
2010-05-26 3:26 ` David Rientjes
2010-05-24 1:09 ` KOSAKI Motohiro
2010-05-24 7:07 ` Nick Piggin
2010-05-25 9:46 ` David Rientjes
2010-05-25 10:05 ` Nick Piggin
2010-05-25 10:23 ` David Rientjes
2010-05-25 10:31 ` Nick Piggin [this message]
2010-05-25 9:55 ` David Rientjes
2010-05-26 0:02 ` David Rientjes
2010-05-28 5:27 ` KOSAKI Motohiro
2010-05-28 5:25 ` KOSAKI Motohiro
2010-06-01 7:30 ` 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=20100525103127.GK5087@laptop \
--to=npiggin@suse.de \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=kosaki.motohiro@jp.fujitsu.com \
--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;
as well as URLs for NNTP newsgroup(s).