From: Oleg Drokin <green@linuxhacker.ru>
To: David Rientjes <rientjes@google.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org,
Rohit Seth <rohitseth@google.com>
Subject: Re: [PATCH] sysctl: Fix division by zero in percpu_pagelist_fraction handler
Date: Tue, 3 Jun 2014 00:17:23 -0400 [thread overview]
Message-ID: <2C763027-307F-4BC0-8C0A-7E3D5957A4DA@linuxhacker.ru> (raw)
In-Reply-To: <alpine.DEB.2.02.1406022056300.20536@chino.kir.corp.google.com>
Hello!
On Jun 2, 2014, at 11:57 PM, David Rientjes wrote:
> I'm pretty sure we want to allow users to restore the kernel default
> behavior if they've already written to this file and now want to change it
> back.
>
> What do you think about doing it like this instead?
> ---
> Documentation/sysctl/vm.txt | 3 ++-
> kernel/sysctl.c | 3 +--
> mm/page_alloc.c | 20 ++++++++++++--------
> 3 files changed, 15 insertions(+), 11 deletions(-)
>
> diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
> --- a/Documentation/sysctl/vm.txt
> +++ b/Documentation/sysctl/vm.txt
> @@ -702,7 +702,8 @@ The batch value of each per cpu pagelist is also updated as a result. It is
> set to pcp->high/4. The upper limit of batch is (PAGE_SHIFT * 8)
>
> The initial value is zero. Kernel does not use this value at boot time to set
> -the high water marks for each per cpu page list.
> +the high water marks for each per cpu page list. If the user writes '0' to this
> +sysctl, it will revert to this default behavior.
I think this is probably a better idea indeed.
Always good to let users return back to defaults too.
Thanks!
next prev parent reply other threads:[~2014-06-03 4:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-04 1:28 Oleg Drokin
2014-05-04 2:32 ` Greg Kroah-Hartman
2014-06-03 1:40 ` David Rientjes
2014-06-03 2:12 ` Oleg Drokin
2014-06-03 3:57 ` David Rientjes
2014-06-03 4:17 ` Oleg Drokin [this message]
2014-06-04 1:22 ` [patch] mm, pcp: allow restoring percpu_pagelist_fraction default David Rientjes
2014-06-04 2:19 ` Oleg Drokin
2014-06-05 0:34 ` [patch v2] " David Rientjes
2014-06-05 0:46 ` Oleg Drokin
2014-06-05 20:55 ` David Rientjes
2014-06-12 0:47 ` [patch v3] " David Rientjes
-- strict thread matches above, loose matches on Subject: below --
2014-04-27 20:51 [PATCH] sysctl: Fix division by zero in percpu_pagelist_fraction handler Oleg Drokin
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=2C763027-307F-4BC0-8C0A-7E3D5957A4DA@linuxhacker.ru \
--to=green@linuxhacker.ru \
--cc=akpm@linux-foundation.org \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rientjes@google.com \
--cc=rohitseth@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
all inboxes | Powered by JetHome®