doc: update Documentation/sysctl/vm.txt
Subsystems (2)
PATCH 8/8 doc: update Documentation/sysctl/vm.txt
Update the doc.
--- Documentation/sysctl/vm.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-)
Documentation/sysctl/vm.txt +43 -0
@@ -20,6 +20,10 @@ Currently, these files are in /proc/sys/vm: - admin_reserve_kbytes - block_dump +- cache_limit_mbytes +- cache_limit_ratio +- cache_reclaim_s +- cache_reclaim_weight - compact_memory - dirty_background_bytes - dirty_background_ratio
@@ -97,6 +101,45 @@ information on block I/O debugging is in Documentation/laptops/laptop-mode.txt. ============================================================== +cache_limit_mbytes + +This is used to limit page cache amount. The input unit is MB, value range +is from 0 to totalram_pages. If this is set to 0, it will not limit page cache. +When written to the file, cache_limit_ratio will be updated too. + +The default value is 0. + +============================================================== + +cache_limit_ratio + +This is used to limit page cache amount. The input unit is percent, value +range is from 0 to 100. If this is set to 0, it will not limit page cache. +When written to the file, cache_limit_mbytes will be updated too. + +The default value is 0. + +============================================================== + +cache_reclaim_s + +This is used to reclaim page cache in circles. The input unit is second, +the minimum value is 0. If this is set to 0, it will disable the feature. + +The default value is 0. + +============================================================== + +cache_reclaim_weight + +This is used to speed up page cache reclaim. It depend on enabling +cache_limit_mbytes/cache_limit_ratio or cache_reclaim_s. Value range is +from 1(slow) to 100(fast). + +The default value is 1. + +============================================================== + compact_memory Available only when CONFIG_COMPACTION is set. When 1 is written to the file,
Signature · 1 line
1.6.0.2
Randy Dunlap
reviewerQuoted 23 lines · Xishi Qiu
Update the doc.
Signed-off-by Xishi Qiu <[email protected]>--- Documentation/sysctl/vm.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-)Documentation/sysctl/vm.txt +4
-0@@ -20,6 +20,10 @@ Currently, these files are in /proc/sys/vm: - admin_reserve_kbytes - block_dump +- cache_limit_mbytes +- cache_limit_ratio +- cache_reclaim_s +- cache_reclaim_weight - compact_memory - dirty_background_bytes - dirty_background_ratio
Documentation/sysctl/vm.txt information on block I/O debugging is in Documentation/laptops/laptop-mode.txt. · line 107
Quoted 7 lines
Documentation/sysctl/vm.txt +4
-0@@ -97,6 +101,45 @@ information on block I/O debugging is in Documentation/laptops/laptop-mode.txt. ============================================================== +cache_limit_mbytes + +This is used to limit page cache amount. The input unit is MB, value range +is from 0 to totalram_pages. If this is set to 0, it will not limit page cache.
Where does one find the value of totalram_pages?
Is totalram_pages in MB or does totalram_pages need to be divided by some value to convert it to MB?
Quoted 18 lines
Documentation/sysctl/vm.txt +18
-0+When written to the file, cache_limit_ratio will be updated too. + +The default value is 0. + +============================================================== + +cache_limit_ratio + +This is used to limit page cache amount. The input unit is percent, value +range is from 0 to 100. If this is set to 0, it will not limit page cache. +When written to the file, cache_limit_mbytes will be updated too. + +The default value is 0. + +============================================================== + +cache_reclaim_s +
Documentation/sysctl/vm.txt information on block I/O debugging is in Documentation/laptops/laptop-mode.txt. · line 135
Quoted 10 lines
Documentation/sysctl/vm.txt +10
-0+This is used to reclaim page cache in circles. The input unit is second, +the minimum value is 0. If this is set to 0, it will disable the feature. + +The default value is 0. + +============================================================== + +cache_reclaim_weight + +This is used to speed up page cache reclaim. It depend on enabling
depends on
Quoted 11 lines
Documentation/sysctl/vm.txt +7
-0+cache_limit_mbytes/cache_limit_ratio or cache_reclaim_s. Value range is +from 1(slow) to 100(fast). + +The default value is 1. + +============================================================== + compact_memory Available only when CONFIG_COMPACTION is set. When 1 is written to the file,
Signature · 7 lines
~Randy -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 25 lines · Randy Dunlap
Quoted 24 lines · Xishi Qiu
Update the doc.
Signed-off-by Xishi Qiu <[email protected]>--- Documentation/sysctl/vm.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-)Documentation/sysctl/vm.txt +4
-0@@ -20,6 +20,10 @@ Currently, these files are in /proc/sys/vm: - admin_reserve_kbytes - block_dump +- cache_limit_mbytes +- cache_limit_ratio +- cache_reclaim_s +- cache_reclaim_weight - compact_memory - dirty_background_bytes - dirty_background_ratio@@ -97,6 +101,45 @@ information on block I/O debugging is in Documentation/laptops/laptop-mode.txt.
Quoted 9 lines
Documentation/sysctl/vm.txt information on block I/O debugging is in Documentation/laptops/laptop-mode.txt. · line 107
Quoted 6 lines
Documentation/sysctl/vm.txt +4
-0============================================================== +cache_limit_mbytes + +This is used to limit page cache amount. The input unit is MB, value range +is from 0 to totalram_pages. If this is set to 0, it will not limit page cache.Where does one find the value of
totalram_pages?
"cat /proc/meminfo | grep MemTotal" or "free -m"
Quoted 3 lines
Is
totalram_pagesin MB or doestotalram_pagesneed to be divided by some value to convert it to MB?
Yes, should convert it to MB.
Thanks,
Xishi Qiu
Quoted 40 lines
Quoted 18 lines
Documentation/sysctl/vm.txt +18
-0+When written to the file, cache_limit_ratio will be updated too. + +The default value is 0. + +============================================================== + +cache_limit_ratio + +This is used to limit page cache amount. The input unit is percent, value +range is from 0 to 100. If this is set to 0, it will not limit page cache. +When written to the file, cache_limit_mbytes will be updated too. + +The default value is 0. + +============================================================== + +cache_reclaim_s +Documentation/sysctl/vm.txt information on block I/O debugging is in Documentation/laptops/laptop-mode.txt. · line 135
Quoted 10 lines
Documentation/sysctl/vm.txt +10
-0+This is used to reclaim page cache in circles. The input unit is second, +the minimum value is 0. If this is set to 0, it will disable the feature. + +The default value is 0. + +============================================================== + +cache_reclaim_weight + +This is used to speed up page cache reclaim. It depend on enablingdepends on
Quoted 9 lines
Documentation/sysctl/vm.txt +7
-0+cache_limit_mbytes/cache_limit_ratio or cache_reclaim_s. Value range is +from 1(slow) to 100(fast). + +The default value is 1. + +============================================================== + compact_memory
Quoted 4 lines
Documentation/sysctl/vm.txt information on block I/O debugging is in Documentation/laptops/laptop-mode.txt. · line 145
Quoted 2 lines
Documentation/sysctl/vm.txt +0
-0Available only when CONFIG_COMPACTION is set. When 1 is written to the file,
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>