Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969033AbdI0Ayh (ORCPT ); Tue, 26 Sep 2017 20:54:37 -0400 Received: from out0-230.mail.aliyun.com ([140.205.0.230]:34932 "EHLO out0-230.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032909AbdI0Ayg (ORCPT ); Tue, 26 Sep 2017 20:54:36 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R681e4;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03306;MF=yang.s@alibaba-inc.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---.9-cox30_1506473617; From: "Yang Shi" To: cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, mhocko@kernel.org Cc: "Yang Shi" , , Subject: [PATCH 3/3] doc: add description for unreclaim_slabs_oom_ratio Date: Wed, 27 Sep 2017 08:53:36 +0800 Message-Id: <1506473616-88120-4-git-send-email-yang.s@alibaba-inc.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1506473616-88120-1-git-send-email-yang.s@alibaba-inc.com> References: <1506473616-88120-1-git-send-email-yang.s@alibaba-inc.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1226 Lines: 40 Add the description for unreclaim_slabs_oom_ratio in Documentation/sysctl/vm.txt. Signed-off-by: Yang Shi --- Documentation/sysctl/vm.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt index 9baf66a..29926e3 100644 --- a/Documentation/sysctl/vm.txt +++ b/Documentation/sysctl/vm.txt @@ -59,6 +59,7 @@ Currently, these files are in /proc/sys/vm: - stat_interval - stat_refresh - swappiness +- unreclaim_slabs_oom_ratio - user_reserve_kbytes - vfs_cache_pressure - watermark_scale_factor @@ -804,6 +805,17 @@ The default value is 60. ============================================================== +unreclaim_slabs_oom_ratio + +The percentage of total unreclaimable slabs amount vs all user memory amount +(LRU pages). When the real ratio is greater than the value, oom killer would +dump unreclaimable slabs info when kernel panic. +The range is 0 - 100. 0 means dump unreclaimable slabs info unconditionally. + +The default value is 50. + +============================================================== + - user_reserve_kbytes When overcommit_memory is set to 2, "never overcommit" mode, reserve -- 1.8.3.1