mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Document interaction between compaction and the unevictable LRU
@ 2015-03-30 18:31 Eric B Munson
  2015-03-30 22:09 ` Andrew Morton
  2015-04-04  9:45 ` Jonathan Corbet
  0 siblings, 2 replies; 4+ messages in thread
From: Eric B Munson @ 2015-03-30 18:31 UTC (permalink / raw)
  To: Jonathan Corbet, akpm; +Cc: Eric B Munson, linux-doc, linux-kernel

The memory compaction code uses the migration code to do most of the
work in compaction.  However, the compaction code interacts with the
unevictable LRU differently than migration code and this difference
should be noted in the documentation.

Signed-off-by: Eric B Munson <emunson@akamai.com>
Cc: linux-doc@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
 Documentation/vm/unevictable-lru.txt |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Documentation/vm/unevictable-lru.txt b/Documentation/vm/unevictable-lru.txt
index 744f82f..b72246e 100644
--- a/Documentation/vm/unevictable-lru.txt
+++ b/Documentation/vm/unevictable-lru.txt
@@ -22,6 +22,7 @@ CONTENTS
      - Filtering special vmas.
      - munlock()/munlockall() system call handling.
      - Migrating mlocked pages.
+     - Compacting mlocked pages.
      - mmap(MAP_LOCKED) system call handling.
      - munmap()/exit()/exec() system call handling.
      - try_to_unmap().
@@ -450,6 +451,16 @@ list because of a race between munlock and migration, page migration uses the
 putback_lru_page() function to add migrated pages back to the LRU.
 
 
+COMPACTING MLOCKED PAGES
+------------------------
+
+The unevictable LRU can be scanned for compactable regions and the default
+behavior is to do so.  There is a sysctl to control this behavior (see
+Documentation/sysctl/vm.txt).  Once scanning of the unevictable LRU is
+enabled, the work of compaction is mostly handled by the page migration code
+and the same work flow as described in MIGRATING MLOCKED PAGES will apply.
+
+
 mmap(MAP_LOCKED) SYSTEM CALL HANDLING
 -------------------------------------
 
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-04  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30 18:31 [PATCH] Document interaction between compaction and the unevictable LRU Eric B Munson
2015-03-30 22:09 ` Andrew Morton
2015-03-31 13:23   ` Eric B Munson
2015-04-04  9:45 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®