diff options
author | Aaron Tomlin <atomlin@redhat.com> | 2014-01-29 17:05:38 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-29 19:22:39 -0500 |
commit | 8582cb96b0bfd6891766d8c30d759bf21aad3b4d (patch) | |
tree | e603a54867acf33e5424d71f34e891b8dbb4e1bf /Documentation/sysctl/vm.txt | |
parent | 0368dfd01ae3b7647ef9b2f0525fdefd5e0d28e1 (diff) |
mm: document improved handling of swappiness==0
Prior to commit fe35004fbf9e ("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.
[akpm@linux-foundation.org: remove comma, per Randy]
Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Bryn M. Reeves <bmr@redhat.com>
Cc: Satoru Moriya <satoru.moriya@hds.com>
Cc: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/sysctl/vm.txt')
-rw-r--r-- | Documentation/sysctl/vm.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt index 9f5481bdc5a4..d614a9b6a280 100644 --- a/Documentation/sysctl/vm.txt +++ b/Documentation/sysctl/vm.txt | |||
@@ -696,7 +696,9 @@ swappiness | |||
696 | 696 | ||
697 | This control is used to define how aggressive the kernel will swap | 697 | This control is used to define how aggressive the kernel will swap |
698 | memory pages. Higher values will increase agressiveness, lower values | 698 | memory pages. Higher values will increase agressiveness, lower values |
699 | decrease the amount of swap. | 699 | decrease the amount of swap. A value of 0 instructs the kernel not to |
700 | initiate swap until the amount of free and file-backed pages is less | ||
701 | than the high water mark in a zone. | ||
700 | 702 | ||
701 | The default value is 60. | 703 | The default value is 60. |
702 | 704 | ||