From: Li Zefan <lizf@cn.fujitsu.com>
To: Paul Menage <menage@google.com>
Cc: balbir@linux.vnet.ibm.com, linux-kernel@vger.kernel.org,
akpm@linux-foundation.org, containers@lists.linux-foundation.org,
kamezawa.hiroyu@jp.fujitsu.com
Subject: Re: [PATCH 7/9] [RFC] Support multiply-bindable cgroup subsystems
Date: Fri, 03 Jul 2009 16:36:55 +0800 [thread overview]
Message-ID: <4A4DC327.3080004@cn.fujitsu.com> (raw)
In-Reply-To: <20090702021128.14469.3360.stgit@menage.mtv.corp.google.com>
Paul Menage wrote:
> [RFC] Support multiply-bindable cgroup subsystems
>
> This patch allows a cgroup subsystem to be marked as bindable on
> multiple cgroup hierarchies independently, when declared in
> cgroup_subsys.h via MULTI_SUBSYS() rather than SUBSYS().
>
> The state for such subsystems cannot be accessed directly from a
> task->cgroups (since there's no unique mapping for a task) but instead
> must be accessed via a particular control group object.
>
> Multiply-bound subsystems are useful in cases where there's no direct
> correspondence between the cgroup configuration and some property of
> the kernel outside of the cgroups subsystem. So this would not be
> applicable to e.g. the CFS cgroup, since there has to a unique mapping
> from a task to its CFS run queue.
>
> As an example, the "debug" subsystem is marked multiply-bindable,
> since it has no state outside the cgroups framework itself.
>
Great, this makes the debug subsystem more useful. Sometimes
I want to see some debug info in different hierarchies, but
I can't just because it can only be bound to one hierarchy.
> Example usage:
>
> mount -t cgroup -o name=foo,debug,cpu cgroup /mnt1
> mount -t cgroup -o name=bar,debug,memory cgroup /mnt2
>
> Open Issues:
>
> - in the current version of this patch, mounting a cgroups hierarchy
> with no options does *not* get you any of the multi-bindable
> subsystems; possibly for consistency it should give you all of the
> multi-bindable subsystems as well as all of the single-bindable
> subsystems.
>
Yeah, the latter is preferrable.
> - how can we avoid the checkpatch.pl errors due to creative use of
> macros to generate enum names?
checkpatch.pl can sometimes generate false-positive, let's happily
ignore those "errors". ;)
But it whould be better if those macros can be handled in a cleaner way.
next prev parent reply other threads:[~2009-07-03 8:36 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-02 2:10 [PATCH 0/9] [RFC] CGroup Hierarchy Extensions Paul Menage
2009-07-02 2:11 ` [PATCH 5/9] [RFC] Remove cgroup_subsys.root pointer Paul Menage
[not found] ` <20090702021118.14469.2107.stgit-u3IScbYxn0zHt/MElyovVYaSKrA+ACpX0E9HWUfgJXw@public.gmane.org>
2009-07-02 9:04 ` Louis Rilling
2009-07-02 9:04 ` Louis Rilling
2009-07-02 9:32 ` Paul Menage
2009-07-02 9:32 ` Paul Menage
[not found] ` <20090702020624.14469.47066.stgit-u3IScbYxn0zHt/MElyovVYaSKrA+ACpX0E9HWUfgJXw@public.gmane.org>
2009-07-02 2:10 ` [PATCH 1/9] [RFC] Support named cgroups hierarchies Paul Menage
2009-07-02 2:10 ` Paul Menage
[not found] ` <20090702021057.14469.37548.stgit-u3IScbYxn0zHt/MElyovVYaSKrA+ACpX0E9HWUfgJXw@public.gmane.org>
2009-07-02 2:28 ` KAMEZAWA Hiroyuki
2009-07-02 8:09 ` Louis Rilling
2009-07-03 2:32 ` Li Zefan
2009-07-02 2:28 ` KAMEZAWA Hiroyuki
[not found] ` <20090702112814.ddf0c280.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2009-07-02 2:49 ` Paul Menage
2009-07-02 2:49 ` Paul Menage
[not found] ` <6599ad830907011949h13598e36m45b85ae76900b90a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-03 1:51 ` Li Zefan
2009-07-03 1:51 ` Li Zefan
2009-07-02 8:09 ` Louis Rilling
2009-07-02 8:19 ` Paul Menage
2009-07-02 8:19 ` Paul Menage
[not found] ` <6599ad830907020119g68abedbeu19ef46f32c4f6f3d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-02 8:24 ` Louis Rilling
2009-07-02 8:24 ` Louis Rilling
2009-07-03 2:32 ` Li Zefan
[not found] ` <4A4D6DC4.10708-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-07-13 23:39 ` Paul Menage
2009-07-13 23:39 ` Paul Menage
2009-07-02 2:11 ` [PATCH 2/9] [RFC]Move the cgroup debug subsys into cgroup.c to access internal state Paul Menage
2009-07-02 2:11 ` Paul Menage
2009-07-02 2:11 ` [PATCH 3/9] [RFC] Add a back-pointer from struct cg_cgroup_link to struct cgroup Paul Menage
2009-07-02 2:11 ` Paul Menage
[not found] ` <20090702021108.14469.39645.stgit-u3IScbYxn0zHt/MElyovVYaSKrA+ACpX0E9HWUfgJXw@public.gmane.org>
2009-07-03 7:07 ` Li Zefan
2009-07-03 7:07 ` Li Zefan
[not found] ` <4A4DAE21.4000806-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-07-21 23:48 ` Paul Menage
2009-07-21 23:48 ` Paul Menage
2009-07-02 2:11 ` [PATCH 4/9] [RFC] Allow cgroup hierarchies to be created with no bound subsystems Paul Menage
2009-07-02 2:11 ` Paul Menage
[not found] ` <20090702021113.14469.2703.stgit-u3IScbYxn0zHt/MElyovVYaSKrA+ACpX0E9HWUfgJXw@public.gmane.org>
2009-07-03 7:57 ` Li Zefan
2009-07-03 7:57 ` Li Zefan
[not found] ` <4A4DB9E4.9060500-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-07-21 23:31 ` Paul Menage
2009-07-21 23:31 ` Paul Menage
2009-07-02 2:11 ` [PATCH 5/9] [RFC] Remove cgroup_subsys.root pointer Paul Menage
2009-07-02 2:11 ` [PATCH 6/9] [RFC] Remove the cgroup_subsys.bind callback Paul Menage
2009-07-02 2:11 ` Paul Menage
2009-07-02 2:11 ` [PATCH 7/9] [RFC] Support multiply-bindable cgroup subsystems Paul Menage
2009-07-02 2:11 ` Paul Menage
[not found] ` <20090702021128.14469.3360.stgit-u3IScbYxn0zHt/MElyovVYaSKrA+ACpX0E9HWUfgJXw@public.gmane.org>
2009-07-02 2:45 ` KAMEZAWA Hiroyuki
2009-07-02 2:45 ` KAMEZAWA Hiroyuki
[not found] ` <20090702114555.b7253edf.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2009-07-02 2:52 ` Paul Menage
2009-07-02 2:52 ` Paul Menage
[not found] ` <6599ad830907011952t2e698e77j1e8dba21402bc9a9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-02 3:16 ` KAMEZAWA Hiroyuki
2009-07-02 3:16 ` KAMEZAWA Hiroyuki
[not found] ` <20090702121626.7676c7d4.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2009-07-02 5:04 ` Paul Menage
2009-07-02 5:04 ` Paul Menage
2009-07-03 8:36 ` Li Zefan
2009-07-03 8:36 ` Li Zefan [this message]
2009-07-02 2:11 ` [PATCH 8/9] [RFC] Example multi-bindable subsystem: a per-cgroup notes field Paul Menage
2009-07-02 2:11 ` [PATCH 9/9] [RFC] Example multi-bindable subsystem: a max-depth controller Paul Menage
2009-07-02 2:11 ` [PATCH 8/9] [RFC] Example multi-bindable subsystem: a per-cgroup notes field Paul Menage
[not found] ` <20090702021133.14469.35140.stgit-u3IScbYxn0zHt/MElyovVYaSKrA+ACpX0E9HWUfgJXw@public.gmane.org>
2009-07-02 2:48 ` KAMEZAWA Hiroyuki
2009-07-02 2:48 ` KAMEZAWA Hiroyuki
[not found] ` <20090702114829.df04c885.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2009-07-02 2:56 ` Paul Menage
2009-07-02 2:56 ` Paul Menage
2009-07-02 3:17 ` KAMEZAWA Hiroyuki
[not found] ` <6599ad830907011956i33769d5ek5401e93553d75c59-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-02 3:17 ` KAMEZAWA Hiroyuki
2009-07-02 7:22 ` Paul Menage
2009-07-02 7:22 ` Paul Menage
2009-07-03 8:58 ` Li Zefan
2009-07-03 8:58 ` Li Zefan
[not found] ` <4A4DC81B.3050608-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2009-07-14 0:49 ` Paul Menage
2009-07-14 0:49 ` Paul Menage
2009-07-02 2:11 ` [PATCH 9/9] [RFC] Example multi-bindable subsystem: a max-depth controller Paul Menage
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=4A4DC327.3080004@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@linux.vnet.ibm.com \
--cc=containers@lists.linux-foundation.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=menage@google.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.