public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tejun Heo <tj@kernel.org>
To: Glauber Costa <glommer@parallels.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
	Hugh Dickins <hughd@google.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Daniel Walsh <dwalsh@redhat.com>,
	"Daniel P. Berrange" <berrange@redhat.com>,
	Li Zefan <lizefan@huawei.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Cgroups <cgroups@vger.kernel.org>,
	Containers <containers@lists.linux-foundation.org>
Subject: Re: Cgroup in a single hierarchy (Was: Re: [RFD] Merge task counter into memcg)
Date: Tue, 17 Apr 2012 08:13:52 -0700	[thread overview]
Message-ID: <20120417151352.GA32402@google.com> (raw)
In-Reply-To: <4F870B18.5060703@parallels.com>

Hello, Glauber.

On Thu, Apr 12, 2012 at 02:04:24PM -0300, Glauber Costa wrote:
> 1) Right now, the controllers work independently, and that code will
> have to live for at least some years anyway. So leave it there.
> 
> 2) But also, insert optimization code that can be enabled/disabled
> when companion cgroups are in the same hierarchy.
> 
> 3) After we mount the cgroup, apply those optimization to all of
> them from the cgroup core (the current bind stuff is just way to
> weird for that, IMHO)
> 
> 4) Then we start telling userspace people to favor co-mounts as much
> as they can
> 
> 5) Pray.

Pretty similar to the plan that I was thinking about.

* Provide both mechanisms from the kernel while implementing new
  features / optimizations with the assumption that there's one
  hierarchy.

* Make the switch to single hierarchy from userland, probably by
  implementing a (policy based) userland thing which takes over the
  whole cgroup hierarchy.

* Phase out multiple hierarchy support from kernel slowly.

That said, there are quite a few obstacles including being able to
support most (probably not all) use cases possible under multiple
hierarchies and managing the added complexity over the transition
period.  I don't think it's gonna be easy.  Needs more thinking.

Thanks.

-- 
tejun

  reply	other threads:[~2012-04-17 15:14 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-11 18:57 [RFD] Merge task counter into memcg Frederic Weisbecker
2012-04-11 19:21 ` Glauber Costa
2012-04-12 11:19   ` Frederic Weisbecker
2012-04-12  0:56 ` KAMEZAWA Hiroyuki
2012-04-12 11:32   ` Frederic Weisbecker
2012-04-12 11:43     ` Glauber Costa
2012-04-12 12:32       ` Johannes Weiner
2012-04-12 13:12         ` Glauber Costa
2012-04-12 15:30           ` Johannes Weiner
2012-04-12 16:38             ` Tejun Heo
2012-04-12 17:04               ` Cgroup in a single hierarchy (Was: Re: [RFD] Merge task counter into memcg) Glauber Costa
2012-04-17 15:13                 ` Tejun Heo [this message]
2012-04-17 15:27                   ` Glauber Costa
2012-04-12 17:13               ` [RFD] Merge task counter into memcg Glauber Costa
2012-04-12 17:23               ` Johannes Weiner
2012-04-12 17:41                 ` Tejun Heo
2012-04-12 17:53                   ` Glauber Costa
2012-04-13  1:42                   ` KAMEZAWA Hiroyuki
2012-04-13  1:50                     ` Glauber Costa
2012-04-13  2:48                       ` KAMEZAWA Hiroyuki
2012-04-17 15:41                     ` Tejun Heo
2012-04-17 16:52                       ` Glauber Costa
2012-04-18  6:51                         ` KAMEZAWA Hiroyuki
2012-04-18  7:53                           ` Frederic Weisbecker
2012-04-18  8:42                             ` KAMEZAWA Hiroyuki
2012-04-18  9:12                               ` Frederic Weisbecker
2012-04-18 10:39                               ` Johannes Weiner
2012-04-18 11:00                                 ` KAMEZAWA Hiroyuki
2012-04-12 16:54             ` Glauber Costa
2012-04-12  1:07 ` Johannes Weiner
2012-04-12  2:15   ` Glauber Costa
2012-04-12  3:26   ` Li Zefan
2012-04-12 14:55   ` Frederic Weisbecker
2012-04-12 16:34     ` Glauber Costa
2012-04-12 16:59       ` Frederic Weisbecker
2012-04-17 15:17         ` Tejun Heo
2012-04-18  6:54           ` Frederic Weisbecker
2012-04-18  8:10             ` Frederic Weisbecker
2012-04-18 12:00               ` Glauber Costa
2012-04-12  4:00 ` Alexander Nikiforov
     [not found] ` <4F86527C.2080507@samsung.com>
2012-04-17  1:09   ` Frederic Weisbecker
2012-04-17  6:45     ` Alexander Nikiforov
2012-04-17 15:23       ` Tejun Heo
2012-04-19  3:34         ` Alexander Nikiforov

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=20120417151352.GA32402@google.com \
    --to=tj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=berrange@redhat.com \
    --cc=cgroups@vger.kernel.org \
    --cc=containers@lists.linux-foundation.org \
    --cc=dwalsh@redhat.com \
    --cc=fweisbec@gmail.com \
    --cc=glommer@parallels.com \
    --cc=hannes@cmpxchg.org \
    --cc=hughd@google.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizefan@huawei.com \
    /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