diff options
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 |