|author||Mel Gorman <firstname.lastname@example.org>||2010-05-24 14:32:28 -0700|
|committer||Linus Torvalds <email@example.com>||2010-05-25 08:06:59 -0700|
mm: compaction: add /proc trigger for memory compaction
Add a proc file /proc/sys/vm/compact_memory. When an arbitrary value is written to the file, all zones are compacted. The expected user of such a trigger is a job scheduler that prepares the system before the target application runs. Signed-off-by: Mel Gorman <firstname.lastname@example.org> Acked-by: Rik van Riel <email@example.com> Reviewed-by: KAMEZAWA Hiroyuki <firstname.lastname@example.org> Reviewed-by: Minchan Kim <email@example.com> Reviewed-by: KOSAKI Motohiro <firstname.lastname@example.org> Reviewed-by: Christoph Lameter <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Diffstat (limited to 'Documentation/sysctl')
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
index 6c7d18c53f8..56dd29b97a9 100644
@@ -19,6 +19,7 @@ files can be found in mm/swap.c.
Currently, these files are in /proc/sys/vm:
@@ -64,6 +65,15 @@ information on block I/O debugging is in Documentation/laptops/laptop-mode.txt.
+Available only when CONFIG_COMPACTION is set. When 1 is written to the file,
+all zones are compacted such that free memory is available in contiguous
+blocks where possible. This can be important for example in the allocation of
+huge pages although processes will also directly compact memory as required.
Contains the amount of dirty memory at which the pdflush background writeback