From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755748AbaD1M2E (ORCPT ); Mon, 28 Apr 2014 08:28:04 -0400 Received: from cantor2.suse.de ([195.135.220.15]:57835 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932149AbaD1M1L (ORCPT ); Mon, 28 Apr 2014 08:27:11 -0400 From: Michal Hocko To: Johannes Weiner , Andrew Morton , KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro , Greg Thelen , Michel Lespinasse , Tejun Heo , Hugh Dickins , Roman Gushchin , LKML , Subject: [PATCH 4/4] memcg: Document memory.low_limit_in_bytes Date: Mon, 28 Apr 2014 14:26:45 +0200 Message-Id: <1398688005-26207-5-git-send-email-mhocko@suse.cz> X-Mailer: git-send-email 2.0.0.rc0 In-Reply-To: <1398688005-26207-1-git-send-email-mhocko@suse.cz> References: <1398688005-26207-1-git-send-email-mhocko@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe low_limit_in_bytes and its effect. Signed-off-by: Michal Hocko --- Documentation/cgroups/memory.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index add1be001416..a52913fe96fb 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt @@ -57,6 +57,7 @@ Brief summary of control files. memory.memsw.usage_in_bytes # show current res_counter usage for memory+Swap (See 5.5 for details) memory.limit_in_bytes # set/show limit of memory usage + memory.low_limit_in_bytes # set/show low limit for memory reclaim memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage memory.failcnt # show the number of memory usage hits limits memory.memsw.failcnt # show the number of memory+Swap hits limits @@ -249,6 +250,14 @@ is the objective of the reclaim. The global reclaim aims at balancing zones' watermarks while the limit reclaim frees some memory to allow new charges. +Groups might be also protected from both global and limit reclaim by +low_limit_in_bytes knob. If the limit is non-zero the reclaim logic +doesn't include groups (and their subgroups - see 6. Hierarchy support) +which are bellow the low limit if there is other eligible cgroup in the +reclaimed hierarchy. If all groups which participate reclaim are under +their low limits then all of them are reclaimed and the low limit is +ignored. + NOTE: Hard limit reclaim does not work for the root cgroup, since we cannot set any limits on the root cgroup. -- 2.0.0.rc0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com [74.125.83.48]) by kanga.kvack.org (Postfix) with ESMTP id 0ECE96B0037 for ; Mon, 28 Apr 2014 08:27:11 -0400 (EDT) Received: by mail-ee0-f48.google.com with SMTP id b57so4731328eek.7 for ; Mon, 28 Apr 2014 05:27:11 -0700 (PDT) Received: from mx2.suse.de (cantor2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id q5si22887972eem.261.2014.04.28.05.27.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 05:27:10 -0700 (PDT) From: Michal Hocko Subject: [PATCH 4/4] memcg: Document memory.low_limit_in_bytes Date: Mon, 28 Apr 2014 14:26:45 +0200 Message-Id: <1398688005-26207-5-git-send-email-mhocko@suse.cz> In-Reply-To: <1398688005-26207-1-git-send-email-mhocko@suse.cz> References: <1398688005-26207-1-git-send-email-mhocko@suse.cz> Sender: owner-linux-mm@kvack.org List-ID: To: Johannes Weiner , Andrew Morton , KAMEZAWA Hiroyuki Cc: KOSAKI Motohiro , Greg Thelen , Michel Lespinasse , Tejun Heo , Hugh Dickins , Roman Gushchin , LKML , linux-mm@kvack.org Describe low_limit_in_bytes and its effect. Signed-off-by: Michal Hocko --- Documentation/cgroups/memory.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index add1be001416..a52913fe96fb 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation/cgroups/memory.txt @@ -57,6 +57,7 @@ Brief summary of control files. memory.memsw.usage_in_bytes # show current res_counter usage for memory+Swap (See 5.5 for details) memory.limit_in_bytes # set/show limit of memory usage + memory.low_limit_in_bytes # set/show low limit for memory reclaim memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage memory.failcnt # show the number of memory usage hits limits memory.memsw.failcnt # show the number of memory+Swap hits limits @@ -249,6 +250,14 @@ is the objective of the reclaim. The global reclaim aims at balancing zones' watermarks while the limit reclaim frees some memory to allow new charges. +Groups might be also protected from both global and limit reclaim by +low_limit_in_bytes knob. If the limit is non-zero the reclaim logic +doesn't include groups (and their subgroups - see 6. Hierarchy support) +which are bellow the low limit if there is other eligible cgroup in the +reclaimed hierarchy. If all groups which participate reclaim are under +their low limits then all of them are reclaimed and the low limit is +ignored. + NOTE: Hard limit reclaim does not work for the root cgroup, since we cannot set any limits on the root cgroup. -- 2.0.0.rc0 -- 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: email@kvack.org