From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Coywolf Qi Hunt <qiyong@fc-cn.com>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] make sysctl_overcommit_memory enumeration sensible
Date: Wed, 15 Feb 2006 20:01:10 +1100 [thread overview]
Message-ID: <43F2EDD6.7000204@yahoo.com.au> (raw)
In-Reply-To: <20060215085456.GA2481@localhost.localdomain>
Coywolf Qi Hunt wrote:
> I see system admins often confused when they sysctl vm.overcommit_memory.
> This patch makes overcommit_memory enumeration sensible.
>
What's the point? The current has been there for a long time, and
is well documented.
> 0 - no overcommit
> 1 - always overcommit
> 2 - heuristic overcommit (default)
>
> I don't feel this would break any userspace scripts.
You mean, except for the ones that go `echo 0 > /proc/sys/vm/overcommit_memory`;
or `echo 2 > /proc/sys/vm/overcommit_memory` ?
And those sysctl configuration files that get set at bootup?
> If it seems OK, I'll
> update the documents.
>
> Signed-off-by: Coywolf Qi Hunt <qiyong@fc-cn.com>
> ---
> diff --git a/include/linux/mman.h b/include/linux/mman.h
> index 18a5689..e50f5ad 100644
> --- a/include/linux/mman.h
> +++ b/include/linux/mman.h
> @@ -10,9 +10,9 @@
> #define MREMAP_MAYMOVE 1
> #define MREMAP_FIXED 2
>
> -#define OVERCOMMIT_GUESS 0
> +#define OVERCOMMIT_NEVER 0
> #define OVERCOMMIT_ALWAYS 1
> -#define OVERCOMMIT_NEVER 2
> +#define OVERCOMMIT_GUESS 2
> extern int sysctl_overcommit_memory;
> extern int sysctl_overcommit_ratio;
> extern atomic_t vm_committed_space;
>
--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com
next prev parent reply other threads:[~2006-02-15 10:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-15 8:54 [patch] make sysctl_overcommit_memory enumeration sensible Coywolf Qi Hunt
2006-02-15 9:01 ` Nick Piggin [this message]
2006-02-15 13:50 ` Mark Hahn
2006-02-16 1:28 ` Coywolf Qi Hunt
2006-02-16 5:05 ` Nick Piggin
2006-02-15 9:05 ` Andrew Morton
2006-02-15 9:31 ` Coywolf Qi Hunt
2006-02-15 10:32 ` Avi Kivity
2006-02-15 10:43 ` Coywolf Qi Hunt
2006-02-15 13:04 ` Avi Kivity
2006-02-16 1:29 ` Coywolf Qi Hunt
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=43F2EDD6.7000204@yahoo.com.au \
--to=nickpiggin@yahoo.com.au \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qiyong@fc-cn.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