Skip to contentSkip to conversation

+ mm-document-improved-handling-of-swappiness==0.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jan 24, 2014 Documentation

lore
Share & tools
lore
#0 lore raw

Subject: + mm-document-improved-handling-of-swappiness==0.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 24 Jan 2014 12:31:42 -0800

The patch titled

     Subject: mm: document improved handling of swappiness==0
has been added to the -mm tree.  Its filename is
     mm-document-improved-handling-of-swappiness==0.patch

This patch should soon appear at

    http://ozlabs.org/~akpm/mmots/broken-out/mm-document-improved-handling-of-swappiness==0.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/mm-document-improved-handling-of-swappiness==0.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Aaron Tomlin <[email protected]>
Subject: mm: document improved handling of swappiness==0

Prior to fe35004fbf9ea ("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.

---

 Documentation/sysctl/vm.txt |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/sysctl/vm.txt renamed from Documentation/sysctl/vm.txt~mm-document-improved-handling-of-swappiness==0 +3 -1
diff -puN Documentation/sysctl/vm.txt~mm-document-improved-handling-of-swappiness==0 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.
 

_

Patches currently in -mm which might be from [email protected] are

mm-document-improved-handling-of-swappiness==0.patch mm-document-improved-handling-of-swappiness==0-fix.patch