Huang Ying | d9bfcfd | 2017-09-06 16:24:40 -0700 | [diff] [blame^] | 1 | What: /sys/kernel/mm/swap/ |
| 2 | Date: August 2017 |
| 3 | Contact: Linux memory management mailing list <linux-mm@kvack.org> |
| 4 | Description: Interface for swapping |
| 5 | |
| 6 | What: /sys/kernel/mm/swap/vma_ra_enabled |
| 7 | Date: August 2017 |
| 8 | Contact: Linux memory management mailing list <linux-mm@kvack.org> |
| 9 | Description: Enable/disable VMA based swap readahead. |
| 10 | |
| 11 | If set to true, the VMA based swap readahead algorithm |
| 12 | will be used for swappable anonymous pages mapped in a |
| 13 | VMA, and the global swap readahead algorithm will be |
| 14 | still used for tmpfs etc. other users. If set to |
| 15 | false, the global swap readahead algorithm will be |
| 16 | used for all swappable pages. |
| 17 | |
| 18 | What: /sys/kernel/mm/swap/vma_ra_max_order |
| 19 | Date: August 2017 |
| 20 | Contact: Linux memory management mailing list <linux-mm@kvack.org> |
| 21 | Description: The max readahead size in order for VMA based swap readahead |
| 22 | |
| 23 | VMA based swap readahead algorithm will readahead at |
| 24 | most 1 << max_order pages for each readahead. The |
| 25 | real readahead size for each readahead will be scaled |
| 26 | according to the estimation algorithm. |