From: Glauber Costa <glommer@parallels.com>
To: Johannes Weiner <hannes@cmpxchg.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
cgroups@vger.kernel.org, linux-mm@kvack.org,
Michal Hocko <mhocko@suse.cz>,
Kamezawa Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH] memcg: first step towards hierarchical controller
Date: Tue, 26 Jun 2012 18:38:25 +0400 [thread overview]
Message-ID: <4FE9C961.4030507@parallels.com> (raw)
In-Reply-To: <20120626143818.GB27816@cmpxchg.org>
On 06/26/2012 06:38 PM, Johannes Weiner wrote:
> On Tue, Jun 26, 2012 at 04:19:26PM +0200, Peter Zijlstra wrote:
>> On Tue, 2012-06-26 at 16:11 +0200, Johannes Weiner wrote:
>>>
>>> Should the warning be emitted for any memcg, not just the parent? If
>>> somebody takes notice of the changed semantics, it's better to print
>>> the warning on the first try to disable hierarchies instead of holding
>>> back until they walk up the tree and try to change it in the root.
>>> Still forbid disabling at lower levels, just be more eager to inform
>>> the people trying it.
>>
>> *blink* You mean you can mix-and-match use_hierarchy over the hierarchy?
>> Can I have some of those drugs? It must be strong and powerful stuff
>> that.
>
> You can create root/a/b/c/d/e and enable hierarchy in b, which ends up
> treating (a) and (b+children) like siblings even though they nest in
> the cgroup fs.
>
> Yes, drugs.
>
> But you can't disable the hierarchy if you have a hierarchy-enabled
> parent, which we try to make the new default. So in case somebody has
> an existing setup that happened to nest group directories without
> hierarchy and so never used memory.use_hierarchy before, they'll
> probably try to disable it where it bothers them,
The only problem is that it was already disallowed way before, since as
you said yourself, you can't disable hierarchy if you have a hierarchy
enabled parent.
--
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 prev parent reply other threads:[~2012-06-26 14:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 13:30 Glauber Costa
2012-06-26 14:11 ` Johannes Weiner
2012-06-26 14:19 ` Peter Zijlstra
2012-06-26 14:38 ` Johannes Weiner
2012-06-26 14:38 ` Glauber Costa [this message]
2012-06-26 14:41 ` Peter Zijlstra
2012-06-26 14:29 ` Glauber Costa
2012-06-26 15:31 ` Glauber Costa
2012-06-26 15:37 ` Johannes Weiner
2012-06-26 15:27 ` Michal Hocko
2012-06-26 15:28 ` Glauber Costa
2012-06-26 15:50 ` Michal Hocko
2012-06-26 18:12 ` Tejun Heo
2012-06-26 18:22 ` Glauber Costa
2012-06-26 18:32 ` Tejun Heo
2012-06-26 22:12 ` Michal Hocko
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=4FE9C961.4030507@parallels.com \
--to=glommer@parallels.com \
--cc=a.p.zijlstra@chello.nl \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-mm@kvack.org \
--cc=mhocko@suse.cz \
--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