From: Jesper Juhl <jj@chaosbits.net>
To: Ben Gamari <bgamari.foss@gmail.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH] Add Kconfig option for default swappiness
Date: Mon, 1 Nov 2010 21:09:58 +0100 (CET) [thread overview]
Message-ID: <alpine.LNX.2.00.1011012108360.12889@swampdragon.chaosbits.net> (raw)
In-Reply-To: <1288548508-22070-1-git-send-email-bgamari.foss@gmail.com>
On Sun, 31 Oct 2010, Ben Gamari wrote:
> This will allow distributions to tune this important vm parameter in a more
> self-contained manner.
>
> Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
> ---
> Documentation/sysctl/vm.txt | 2 +-
> mm/Kconfig | 11 +++++++++++
> mm/vmscan.c | 2 +-
> 3 files changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
> index 6c7d18c..792823b 100644
> --- a/Documentation/sysctl/vm.txt
> +++ b/Documentation/sysctl/vm.txt
> @@ -614,7 +614,7 @@ This control is used to define how aggressive the kernel will swap
> memory pages. Higher values will increase agressiveness, lower values
> decrease the amount of swap.
>
> -The default value is 60.
> +The default value is 60 (changed with CONFIG_DEFAULT_SWAPINESS).
>
> ==============================================================
>
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 9c61158..729ecec 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -61,6 +61,17 @@ config SPARSEMEM_MANUAL
>
> endchoice
>
> +config DEFAULT_SWAPPINESS
> + int "Default swappiness"
> + default "60"
> + range 0 100
> + help
> + This control is used to define how aggressive the kernel will swap
> + memory pages. Higher values will increase agressiveness, lower
> + values decrease the amount of swap. Valid values range from 0 to 100.
> +
> + If unsure, keep default value of 60.
> +
Perhaps this help text should mention the fact that swapiness setting can
be changed at runtime (regardless of the set default) by writing to
/proc/sys/vm/swappiness ???
--
Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/
Plain text mails only, please http://www.expita.com/nomime.html
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
--
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/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-11-01 20:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-31 18:08 Ben Gamari
2010-11-01 12:43 ` Johannes Weiner
2010-11-01 12:52 ` Ben Gamari
2010-11-01 20:14 ` Johannes Weiner
2010-11-01 20:09 ` Jesper Juhl [this message]
2010-11-01 20:41 ` Ben Gamari
2010-11-02 1:04 ` Wu Fengguang
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.LNX.2.00.1011012108360.12889@swampdragon.chaosbits.net \
--to=jj@chaosbits.net \
--cc=bgamari.foss@gmail.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/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