diff options
author | Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> | 2012-07-31 19:41:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:42:39 -0400 |
commit | df858fa8276f85106f2f5c3cd49c1fa524058070 (patch) | |
tree | 7fd01b6311ae03f9f2d2aec5c73280ec925b254f /Documentation | |
parent | 3fb5c298b04eb6e472f8db1f0fb472749d30041c (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.txt | 12 |
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 | ||
575 | page-cluster | 575 | page-cluster |
576 | 576 | ||
577 | page-cluster controls the number of pages which are written to swap in | 577 | page-cluster controls the number of pages up to which consecutive pages |
578 | a single attempt. The swap I/O size. | 578 | are read in from swap in a single attempt. This is the swap counterpart |
579 | to page cache readahead. | ||
580 | The mentioned consecutivity is not in terms of virtual/physical addresses, | ||
581 | but consecutive on swap space - that means they were swapped out together. | ||
579 | 582 | ||
580 | It is a logarithmic value - setting it to zero means "1 page", setting | 583 | It is a logarithmic value - setting it to zero means "1 page", setting |
581 | it to 1 means "2 pages", setting it to 2 means "4 pages", etc. | 584 | it to 1 means "2 pages", setting it to 2 means "4 pages", etc. |
585 | Zero disables swap readahead completely. | ||
582 | 586 | ||
583 | The default value is three (eight pages at a time). There may be some | 587 | The default value is three (eight pages at a time). There may be some |
584 | small benefits in tuning this to a different value if your workload is | 588 | small benefits in tuning this to a different value if your workload is |
585 | swap-intensive. | 589 | swap-intensive. |
586 | 590 | ||
591 | Lower values mean lower latencies for initial faults, but at the same time | ||
592 | extra faults and I/O delays for following faults if they would have been part of | ||
593 | that consecutive pages readahead would have brought in. | ||
594 | |||
587 | ============================================================= | 595 | ============================================================= |
588 | 596 | ||
589 | panic_on_oom | 597 | panic_on_oom |