linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Weiner <hannes@cmpxchg.org>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Glauber Costa <glommer@parallels.com>,
	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 16:38:18 +0200	[thread overview]
Message-ID: <20120626143818.GB27816@cmpxchg.org> (raw)
In-Reply-To: <1340720366.21991.84.camel@twins>

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, below the root
group, which will get them -EBUSY, nothing else.  I'm just asking to
warn in that case as well and suggest they get their directory
structure in order, to save them some time wondering wtf changed.

--
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>

  reply	other threads:[~2012-06-26 14:38 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 [this message]
2012-06-26 14:38       ` Glauber Costa
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=20120626143818.GB27816@cmpxchg.org \
    --to=hannes@cmpxchg.org \
    --cc=a.p.zijlstra@chello.nl \
    --cc=cgroups@vger.kernel.org \
    --cc=glommer@parallels.com \
    --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