aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorChristian Ehrhardt <ehrhardt@linux.vnet.ibm.com>2012-07-31 19:41:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-31 21:42:39 -0400
commitdf858fa8276f85106f2f5c3cd49c1fa524058070 (patch)
tree7fd01b6311ae03f9f2d2aec5c73280ec925b254f /Documentation
parent3fb5c298b04eb6e472f8db1f0fb472749d30041c (diff)
documentation: update how page-cluster affects swap I/O
Fix of the documentation of /proc/sys/vm/page-cluster to match the behavior of the code and add some comments about what the tunable will change in that behavior. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Acked-by: Jens Axboe <axboe@kernel.dk> Reviewed-by: Minchan Kim <minchan@kernel.org> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/sysctl/vm.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
index 96f0ee825bed..84eb25cd69aa 100644
--- a/Documentation/sysctl/vm.txt
+++ b/Documentation/sysctl/vm.txt
@@ -574,16 +574,24 @@ of physical RAM. See above.
574 574
575page-cluster 575page-cluster
576 576
577page-cluster controls the number of pages which are written to swap in 577page-cluster controls the number of pages up to which consecutive pages
578a single attempt. The swap I/O size. 578are read in from swap in a single attempt. This is the swap counterpart
579to page cache readahead.
580The mentioned consecutivity is not in terms of virtual/physical addresses,
581but consecutive on swap space - that means they were swapped out together.
579 582
580It is a logarithmic value - setting it to zero means "1 page", setting 583It is a logarithmic value - setting it to zero means "1 page", setting
581it to 1 means "2 pages", setting it to 2 means "4 pages", etc. 584it to 1 means "2 pages", setting it to 2 means "4 pages", etc.
585Zero disables swap readahead completely.
582 586
583The default value is three (eight pages at a time). There may be some 587The default value is three (eight pages at a time). There may be some
584small benefits in tuning this to a different value if your workload is 588small benefits in tuning this to a different value if your workload is
585swap-intensive. 589swap-intensive.
586 590
591Lower values mean lower latencies for initial faults, but at the same time
592extra faults and I/O delays for following faults if they would have been part of
593that consecutive pages readahead would have brought in.
594
587============================================================= 595=============================================================
588 596
589panic_on_oom 597panic_on_oom