* [PATCH] mm: Document improved handling of swappiness==0
@ 2014-01-24 15:13 Aaron Tomlin
2014-01-24 18:53 ` Randy Dunlap
0 siblings, 1 reply; 2+ messages in thread
From: Aaron Tomlin @ 2014-01-24 15:13 UTC (permalink / raw)
To: mingo
Cc: linux-doc, linux-kernel, rientjes, mingo, oleg, riel, bmr, akpm, atomlin
Prior to upstream commit fe35004f ("[mm] avoid swapping out
with swappiness==0") setting swappiness to 0, reclaim code
could still evict recently used user anonymous memory to swap
even though there is a significant amount of RAM used for page
cache.
The behaviour of setting swappiness to 0 has since changed.
When set, the reclaim code does not initiate swap until the
amount of free pages and file-backed pages, is less than the
high water mark in a zone.
Let's update the documentation to reflect this.
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Bryn M. Reeves <bmr@redhat.com>
---
Documentation/sysctl/vm.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
index 9f5481b..38388ee 100644
--- a/Documentation/sysctl/vm.txt
+++ b/Documentation/sysctl/vm.txt
@@ -696,7 +696,9 @@ swappiness
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.
+decrease the amount of swap. A value of 0 instructs the kernel not to
+initiate swap until the amount of free and file-backed pages, is less
+than the high water mark in a zone.
The default value is 60.
--
1.8.4.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm: Document improved handling of swappiness==0
2014-01-24 15:13 [PATCH] mm: Document improved handling of swappiness==0 Aaron Tomlin
@ 2014-01-24 18:53 ` Randy Dunlap
0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2014-01-24 18:53 UTC (permalink / raw)
To: Aaron Tomlin, mingo
Cc: linux-doc, linux-kernel, rientjes, mingo, oleg, riel, bmr, akpm
On 01/24/2014 07:13 AM, Aaron Tomlin wrote:
> Prior to upstream commit fe35004f ("[mm] avoid swapping out
> with swappiness==0") setting swappiness to 0, reclaim code
> could still evict recently used user anonymous memory to swap
> even though there is a significant amount of RAM used for page
> cache.
>
> The behaviour of setting swappiness to 0 has since changed.
> When set, the reclaim code does not initiate swap until the
> amount of free pages and file-backed pages, is less than the
> high water mark in a zone.
>
> Let's update the documentation to reflect this.
>
> Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
> Acked-by: Rik van Riel <riel@redhat.com>
> Acked-by: Bryn M. Reeves <bmr@redhat.com>
> ---
> Documentation/sysctl/vm.txt | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
> index 9f5481b..38388ee 100644
> --- a/Documentation/sysctl/vm.txt
> +++ b/Documentation/sysctl/vm.txt
> @@ -696,7 +696,9 @@ swappiness
>
> 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.
> +decrease the amount of swap. A value of 0 instructs the kernel not to
> +initiate swap until the amount of free and file-backed pages, is less
drop the comma ^
> +than the high water mark in a zone.
>
> The default value is 60.
>
>
--
~Randy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-24 18:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-24 15:13 [PATCH] mm: Document improved handling of swappiness==0 Aaron Tomlin
2014-01-24 18:53 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome