summaryrefslogtreecommitdiffstats
path: root/Documentation/ABI/testing/sysfs-devices-node
diff options
context:
space:
mode:
authorMel Gorman <mel@csn.ul.ie>2010-05-24 23:32:29 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-25 17:06:59 +0200
commited4a6d7f0676db50b5023cc01f6cda82a2f2a307 (patch)
tree6496343ba964e105cf30f8703714471f22edc806 /Documentation/ABI/testing/sysfs-devices-node
parentmm: compaction: add /proc trigger for memory compaction (diff)
downloadlinux-ed4a6d7f0676db50b5023cc01f6cda82a2f2a307.tar.xz
linux-ed4a6d7f0676db50b5023cc01f6cda82a2f2a307.zip
mm: compaction: add /sys trigger for per-node memory compaction
Add a per-node sysfs file called compact. When the file is written to, each zone in that node is compacted. The intention that this would be used by something like a job scheduler in a batch system before a job starts so that the job can allocate the maximum number of hugepages without significant start-up cost. Signed-off-by: Mel Gorman <mel@csn.ul.ie> Acked-by: Rik van Riel <riel@redhat.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Reviewed-by: Christoph Lameter <cl@linux-foundation.org> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-devices-node')
-rw-r--r--Documentation/ABI/testing/sysfs-devices-node7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-devices-node b/Documentation/ABI/testing/sysfs-devices-node
new file mode 100644
index 000000000000..453a210c3ceb
--- /dev/null
+++ b/Documentation/ABI/testing/sysfs-devices-node
@@ -0,0 +1,7 @@
+What: /sys/devices/system/node/nodeX/compact
+Date: February 2010
+Contact: Mel Gorman <mel@csn.ul.ie>
+Description:
+ When this file is written to, all memory within that node
+ will be compacted. When it completes, memory will be freed
+ into blocks which have as many contiguous pages as possible