From: Balbir Singh <balbir-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: Paul Menage <menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
Cc: Nikanth Karthikesan <knikanth-l3A5Bk7waGM@public.gmane.org>,
containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: Loadable cgroup subsystems
Date: Tue, 08 Apr 2008 14:37:12 +0530 [thread overview]
Message-ID: <47FB35C0.3030609@linux.vnet.ibm.com> (raw)
In-Reply-To: <6599ad830804072243i35e5b134q1d04f2bd121f8f69-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Paul Menage wrote:
> On Mon, Apr 7, 2008 at 10:39 PM, Nikanth Karthikesan <knikanth-l3A5Bk7waGM@public.gmane.org> wrote:
>> Why not provide a interface to add subsystems at run-time instead?
>> Are there any reason for not letting a subsystem to be implemented as a
>> loadable module? IOW make cgroups usable by modules?
>>
>
> Having all the subsystems declared at compile time makes a lot of
> things (number of subsystems, size of css_set, etc) statically known,
> which makes the code clearer and more importantly eliminates a bunch
> of locking/synchronization overhead.
>
> It would be possible to make cgroups support dynamically-loaded
> subsystems, and in fact, some of the earliest cgroups patches did
> support this, for a predefined max number of subsystems. But it would
> introduce more complexity and overhead.
>
> I'd rather not add support for this without a strong case of a
> subsystem that really needs to be dynamically loaded.
>
I agree with most of what you just said. The biggest advantage I see of dynamic
modules is that they can be unloaded/loaded on demand. The biggest disadvantage
is that they come in much later after system initialization and might not be
fully aware of the state of the system when the specific controller is loaded.
It is trade-off, we need to see if it is worth doing.
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
next prev parent reply other threads:[~2008-04-08 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 5:39 Loadable cgroup subsystems Nikanth Karthikesan
[not found] ` <1207633175.7798.5.camel-6V/ZMFSzLJEY2a5ovjdQkMfQ/htzPhTPEvhb3Hwu1Ks@public.gmane.org>
2008-04-08 5:43 ` Paul Menage
[not found] ` <6599ad830804072243i35e5b134q1d04f2bd121f8f69-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-04-08 9:07 ` Balbir Singh [this message]
[not found] ` <47FB54CC.BANGALORE.BLR.100.174746A.1.1545B.1@1:7.BANGALORE.BLR.100.0.1.0.1@16>
2008-04-08 9:40 ` Nikanth Karthikesan
[not found] ` <1207647629.7798.40.camel-6V/ZMFSzLJEY2a5ovjdQkMfQ/htzPhTPEvhb3Hwu1Ks@public.gmane.org>
2008-04-08 9:41 ` Paul Menage
[not found] ` <6599ad830804080241u68d68e2bo8739f907306571bd-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-04-09 8:31 ` Satoshi UCHIDA
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=47FB35C0.3030609@linux.vnet.ibm.com \
--to=balbir-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=knikanth-l3A5Bk7waGM@public.gmane.org \
--cc=menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.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 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.