From: Qiang Huang <h.huangqiang@huawei.com>
To: mhocko@kernel.org, corbet@lwn.net, tj@kernel.org,
Zefan Li <lizefan@huawei.com>,
hannes@cmpxchg.org, akpm@linux-foundation.org
Cc: linux-doc@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org
Subject: [PATCH] Documentation/memcg: remove restriction of setting kmem limit
Date: Thu, 5 May 2016 16:15:01 +0800 [thread overview]
Message-ID: <572B0105.50503@huawei.com> (raw)
We don't have this restriction for a long time, docs should
be fixed.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
---
Documentation/cgroup-v1/memory.txt | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/Documentation/cgroup-v1/memory.txt b/Documentation/cgroup-v1/memory.txt
index ff71e16..d45b201 100644
--- a/Documentation/cgroup-v1/memory.txt
+++ b/Documentation/cgroup-v1/memory.txt
@@ -281,11 +281,9 @@ different than user memory, since it can't be swapped out, which makes it
possible to DoS the system by consuming too much of this precious resource.
Kernel memory won't be accounted at all until limit on a group is set. This
-allows for existing setups to continue working without disruption. The limit
-cannot be set if the cgroup have children, or if there are already tasks in the
-cgroup. Attempting to set the limit under those conditions will return -EBUSY.
-When use_hierarchy == 1 and a group is accounted, its children will
-automatically be accounted regardless of their limit value.
+allows for existing setups to continue working without disruption. When
+use_hierarchy == 1 and a group is accounted, its children will automatically
+be accounted regardless of their limit value.
After a group is first limited, it will be kept being accounted until it
is removed. The memory limitation itself, can of course be removed by writing
--
2.5.0
--
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>
next reply other threads:[~2016-05-05 8:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-05 8:15 Qiang Huang [this message]
2016-05-05 8:32 ` Michal Hocko
2016-05-11 5:54 ` Qiang Huang
2016-05-11 6:07 ` [PATCH] Documentation/memcg: update kmem limit doc as codes behavior Qiang Huang
2016-05-11 6:40 ` Michal Hocko
2016-05-12 16:03 ` Tejun Heo
2016-05-14 16:13 ` Jonathan Corbet
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=572B0105.50503@huawei.com \
--to=h.huangqiang@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=cgroups@vger.kernel.org \
--cc=corbet@lwn.net \
--cc=hannes@cmpxchg.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lizefan@huawei.com \
--cc=mhocko@kernel.org \
--cc=tj@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox