From: Ben Blum <bblum@andrew.cmu.edu>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>,
Andrew Morton <akpm@linux-foundation.org>,
menage@google.com, containers@lists.linux-foundation.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 0/4] cgroups: support for module-loadable subsystems
Date: Thu, 7 Jan 2010 03:04:38 -0500 [thread overview]
Message-ID: <20100107080438.GB16656@andrew.cmu.edu> (raw)
In-Reply-To: <20100107165117.dca1dc52.kamezawa.hiroyu@jp.fujitsu.com>
On Thu, Jan 07, 2010 at 04:51:17PM +0900, KAMEZAWA Hiroyuki wrote:
> On Thu, 7 Jan 2010 02:48:12 -0500
> Ben Blum <bblum@andrew.cmu.edu> wrote:
>
> > > 2. Making this to be reasonable value.
> > > #define CGROUP_SUBSYS_COUNT (BITS_PER_BYTE*sizeof(unsigned long))
> > > I can't find why.
> >
> > "We limit to this many since cgroupfs_root has subsys_bits to keep track
> > of all of them." should it be less, perhaps?
>
> It's ok if it's clear that
> "this decistion is done by implementation choice, not by cgroup's nature"
mhm, well, it is the upper limit due to nature, but why it and not a
smaller number is by choice.
>
> > the memory footprint is not
> > great, it is true, but implementing dynamically sized subsystem tracking
> > data structures requires much cleverer code in many places.
> >
> yes. I don't request that.
it might be possible to have a config option as CGROUP_EXTRA_SUBSYSTEMS
(with max being 64 or 32) which would add slots for subsystems outside
of the kernel tree, to avoid using up a lot of blank slots in typical
use cases. not entirely sure how to implement it in the scope of the
configuration world, just speculation.
> > > 3. show whehter a subsys is a loadable module or not via /proc/cgroups
> >
> > with just "y" or "n"? possible, and probably easy. do note that since
> > they are sorted by subsys_id, all the ones above a certain line will be
> > "n" and all below will be "y".
> >
> yes.
>
> #subsys_name hierarchy num_cgroups enabled module
> cpuset 0 1 1 0
>
> and 0/1 to show y/n ? (but this cause interface incompatibility...)
well, format should be agreed upon. 1/0 would be consistent with the
rest of the output.
>
>
> Thanks,
> -Kame
>
>
>
next prev parent reply other threads:[~2010-01-07 8:06 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-31 5:10 Ben Blum
2009-12-31 5:12 ` [PATCH v4 1/4] cgroups: revamp subsys array Ben Blum
2009-12-31 5:13 ` [PATCH v4 2/4] cgroups: subsystem module loading interface Ben Blum
2009-12-31 5:14 ` [PATCH v4 3/4] cgroups: subsystem module unloading Ben Blum
2009-12-31 5:15 ` [PATCH v4 4/4] cgroups: net_cls as module Ben Blum
2010-01-07 0:04 ` [PATCH v4 0/4] cgroups: support for module-loadable subsystems Andrew Morton
2010-01-07 1:26 ` Ben Blum
2010-01-07 3:07 ` KAMEZAWA Hiroyuki
2010-01-07 6:42 ` Li Zefan
2010-01-07 7:16 ` KAMEZAWA Hiroyuki
2010-01-07 7:48 ` Ben Blum
2010-01-07 7:51 ` KAMEZAWA Hiroyuki
2010-01-07 8:04 ` Ben Blum [this message]
2010-01-07 8:14 ` Ben Blum
2010-01-07 8:22 ` Ben Blum
2010-01-08 5:27 ` Ben Blum
2010-01-08 5:29 ` [RFC] [PATCH 1/2] cgroups: modular subsystems support for use_id Ben Blum
2010-01-08 5:30 ` [RFC] [PATCH 2/2] cgroups: blkio subsystem as module Ben Blum
2010-01-08 15:10 ` Vivek Goyal
2010-01-12 0:21 ` KAMEZAWA Hiroyuki
2010-01-14 9:32 ` Balbir Singh
2010-01-14 11:42 ` Vivek Goyal
2010-01-08 16:33 ` Vivek Goyal
2010-01-12 23:34 ` Ben Blum
2010-01-12 23:36 ` [PATCH v2 1/2] cgroups: modular subsystems support for use_id Ben Blum
2010-01-12 23:37 ` [PATCH v2 2/2] cgroups: blkio subsystem as module Ben Blum
2010-01-14 9:15 ` Jens Axboe
2010-01-14 9:29 ` Li Zefan
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=20100107080438.GB16656@andrew.cmu.edu \
--to=bblum@andrew.cmu.edu \
--cc=akpm@linux-foundation.org \
--cc=containers@lists.linux-foundation.org \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®