All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xishi Qiu <qiuxishi@huawei.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Wanpeng Li <liwanp@linux.vnet.ibm.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	aquini@redhat.com, Peter Zijlstra <peterz@infradead.org>,
	Rik van Riel <riel@redhat.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Michal Hocko <mhocko@suse.cz>
Cc: Linux MM <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Xishi Qiu <qiuxishi@huawei.com>, Li Zefan <lizefan@huawei.com>
Subject: [PATCH 8/8] doc: update Documentation/sysctl/vm.txt
Date: Mon, 16 Jun 2014 17:25:23 +0800	[thread overview]
Message-ID: <539EB803.9070001@huawei.com> (raw)

Update the doc.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
---
 Documentation/sysctl/vm.txt |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
index dd9d0e3..8008e53 100644
--- a/Documentation/sysctl/vm.txt
+++ b/Documentation/sysctl/vm.txt
@@ -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,
-- 
1.6.0.2


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

WARNING: multiple messages have this Message-ID (diff)
From: Xishi Qiu <qiuxishi@huawei.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Wanpeng Li <liwanp@linux.vnet.ibm.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	<aquini@redhat.com>, Peter Zijlstra <peterz@infradead.org>,
	Rik van Riel <riel@redhat.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	Michal Hocko <mhocko@suse.cz>
Cc: Linux MM <linux-mm@kvack.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Xishi Qiu <qiuxishi@huawei.com>, Li Zefan <lizefan@huawei.com>
Subject: [PATCH 8/8] doc: update Documentation/sysctl/vm.txt
Date: Mon, 16 Jun 2014 17:25:23 +0800	[thread overview]
Message-ID: <539EB803.9070001@huawei.com> (raw)

Update the doc.

Signed-off-by: Xishi Qiu <qiuxishi@huawei.com>
---
 Documentation/sysctl/vm.txt |   43 +++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
index dd9d0e3..8008e53 100644
--- a/Documentation/sysctl/vm.txt
+++ b/Documentation/sysctl/vm.txt
@@ -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,
-- 
1.6.0.2



             reply	other threads:[~2014-06-16  9:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-16  9:25 Xishi Qiu [this message]
2014-06-16  9:25 ` [PATCH 8/8] doc: update Documentation/sysctl/vm.txt Xishi Qiu
2014-06-16 16:57 ` Randy Dunlap
2014-06-16 16:57   ` Randy Dunlap
2014-06-17  1:20   ` Xishi Qiu
2014-06-17  1:20     ` Xishi Qiu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=539EB803.9070001@huawei.com \
    --to=qiuxishi@huawei.com \
    --cc=akpm@linux-foundation.org \
    --cc=aquini@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=liwanp@linux.vnet.ibm.com \
    --cc=lizefan@huawei.com \
    --cc=mhocko@suse.cz \
    --cc=peterz@infradead.org \
    --cc=riel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.