From: Daniel Wagner <daniel.wagner@bmw-carit.de>
To: Tejun Heo <tj@kernel.org>
Cc: <serge.hallyn@canonical.com>, <ebiederm@xmission.com>,
<nhorman@tuxdriver.com>, <tgraf@suug.ch>, <davem@davemloft.net>,
<lizefan@huawei.com>, <cgroups@vger.kernel.org>,
<containers@lists.linux-foundation.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCHSET cgroup/for-3.8] netcls_cgroup: implement hierarchy support
Date: Mon, 19 Nov 2012 14:59:58 +0100 [thread overview]
Message-ID: <50AA3B5E.3080701@bmw-carit.de> (raw)
In-Reply-To: <1353123062-23193-1-git-send-email-tj@kernel.org>
Hi Tejun,
On 17.11.2012 04:30, Tejun Heo wrote:
> Hello, guys.
>
> This patchset implements proper hierarchy support for netcls_cgroup.
> Pretty simliar to the netprio one[3]. Simpler as each cgroup has
> single config value instead of array of them.
>
> This patchset contains the following three patches.
>
> 0001-netcls_cgroup-introduce-netcls_mutex.patch
> 0002-netcls_cgroup-introduce-cgroup_cls_state-is_local.patch
> 0003-netcls_cgroup-implement-proper-hierarchy-support.patch
>
> This patchset is on top of
>
> cgroup/for-3.8 ef9fe980c6 ("cgroup_freezer: implement proper hierarchy support")
> + [1] "[PATCHSET cgroup/for-3.8] cgroup: allow ->post_create() to fail"
> + [2] "[PATCH 1/2] cgroup: s/CGRP_CLONE_CHILDREN/CGRP_CPUSET_CLONE_CHILDREN/"
> "[PATCH 2/2] cgroup, cpuset: remove cgroup_subsys->post_clone()"
> + [3] "[PATCHSET cgroup/for-3.8] netprio_cgroup: implement hierarchy support"
>
> and available in the following git branch.
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-netcls_cgroup-hierarchy
>
> diffstat follows.
>
> include/net/cls_cgroup.h | 1
> net/sched/cls_cgroup.c | 102 ++++++++++++++++++++++++++++++++++++++++-------
> 2 files changed, 88 insertions(+), 15 deletions(-)
>
> Thanks.
I played a bit around with this series, e.g. creating a hierarchy and and changing
the root classid and seeing the change propagating through the hierarchy. Everything
worked as described in the documentation.
Sorry to bring this up again: how should to root cgroup behave? If the ultimate
goal to have only one single hierarchy then I would assume it is important that
the semantic for all controllers are the same. As you pointed out the networking
controllers are kind of a strange beast in the zoo of the cgroup controllers.
But still I would assume that all root controllers behave the same. memcg or cpu*
are not expected to do any work in the root cgroup.
cheers,
daniel
next prev parent reply other threads:[~2012-11-19 14:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-17 3:30 Tejun Heo
2012-11-17 3:31 ` [PATCH 1/3] netcls_cgroup: introduce netcls_mutex Tejun Heo
2012-11-19 14:01 ` Daniel Wagner
2012-11-17 3:31 ` [PATCH 2/3] netcls_cgroup: introduce cgroup_cls_state->is_local Tejun Heo
2012-11-19 12:54 ` Daniel Wagner
2012-11-19 17:30 ` [PATCH v2 " Tejun Heo
2012-11-19 19:18 ` Daniel Wagner
2012-11-17 3:31 ` [PATCH 3/3] netcls_cgroup: implement proper hierarchy support Tejun Heo
2012-11-19 13:47 ` Daniel Wagner
2012-11-19 17:08 ` Tejun Heo
2012-11-19 19:17 ` Daniel Wagner
2012-11-18 3:04 ` [PATCHSET cgroup/for-3.8] netcls_cgroup: implement " David Miller
2012-11-18 14:25 ` Tejun Heo
2012-11-19 13:59 ` Daniel Wagner [this message]
2012-11-19 19:01 ` Tejun Heo
2012-11-19 15:07 ` Neil Horman
2012-11-19 19:21 ` Tejun Heo
2012-11-20 5:44 ` Tejun Heo
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=50AA3B5E.3080701@bmw-carit.de \
--to=daniel.wagner@bmw-carit.de \
--cc=cgroups@vger.kernel.org \
--cc=containers@lists.linux-foundation.org \
--cc=davem@davemloft.net \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=nhorman@tuxdriver.com \
--cc=serge.hallyn@canonical.com \
--cc=tgraf@suug.ch \
--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
Powered by JetHome