From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755269AbaFPJ2P (ORCPT ); Mon, 16 Jun 2014 05:28:15 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:21887 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754733AbaFPJ2M (ORCPT ); Mon, 16 Jun 2014 05:28:12 -0400 Message-ID: <539EB803.9070001@huawei.com> Date: Mon, 16 Jun 2014 17:25:23 +0800 From: Xishi Qiu User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Andrew Morton , Wanpeng Li , Greg Kroah-Hartman , , Peter Zijlstra , Rik van Riel , Johannes Weiner , Michal Hocko CC: Linux MM , LKML , Xishi Qiu , Li Zefan Subject: [PATCH 8/8] doc: update Documentation/sysctl/vm.txt Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.25.179] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the doc. Signed-off-by: Xishi Qiu --- 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