* Loadable cgroup subsystems
@ 2008-04-08 5:39 Nikanth Karthikesan
[not found] ` <1207633175.7798.5.camel-6V/ZMFSzLJEY2a5ovjdQkMfQ/htzPhTPEvhb3Hwu1Ks@public.gmane.org>
[not found] ` <47FB54CC.BANGALORE.BLR.100.174746A.1.1545B.1@1:7.BANGALORE.BLR.100.0.1.0.1@16>
0 siblings, 2 replies; 6+ messages in thread
From: Nikanth Karthikesan @ 2008-04-08 5:39 UTC (permalink / raw)
To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
menage-hpIqsD4AKlfQT0dZR+AlfA
> On 4/1/08, Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org> wrote:
> > > > > --- a/include/linux/cgroup_subsys.h
> > > > > +++ b/include/linux/cgroup_subsys.h
> > > > > @@ -42,3 +42,9 @@ SUBSYS(mem_cgroup)
> > > > > #endif
> > > > >
> > > > > /* */
> > > > > +
> > > > > +#ifdef CONFIG_CGROUP_DEVICE
> > > > > +SUBSYS(devices)
> > > > > +#endif
> > > > > +
> > > > > +/* */
> > > >
> > > > I don't know what this is, but it does not look like C...
> > >
> > > Huh?
> >
> > Empty comments as separators?
>
> They help when multiple people add such SUBSYS things and
> do not have to fight rejects.
>
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?
Thanks
Nikanth Karthikesan
^ permalink raw reply [flat|nested] 6+ messages in thread[parent not found: <1207633175.7798.5.camel-6V/ZMFSzLJEY2a5ovjdQkMfQ/htzPhTPEvhb3Hwu1Ks@public.gmane.org>]
* Re: Loadable cgroup subsystems
[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>
0 siblings, 1 reply; 6+ messages in thread
From: Paul Menage @ 2008-04-08 5:43 UTC (permalink / raw)
To: Nikanth Karthikesan
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
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.
Paul
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <47FB54CC.BANGALORE.BLR.100.174746A.1.1545B.1@1:7.BANGALORE.BLR.100.0.1.0.1@16>]
* Re: Loadable cgroup subsystems
[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>
0 siblings, 1 reply; 6+ messages in thread
From: Nikanth Karthikesan @ 2008-04-08 9:40 UTC (permalink / raw)
To: Paul Menage
Cc: Vasily Tarasov,
containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
On Mon, 2008-04-07 at 22:43 -0700, 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.
>
true
> 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.
There were some band-width control patches based on cfq + cgroups, which
I guess will mandate cfq to be built-in?
Thanks
Nikanth Karthikesan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-04-09 8:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
[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
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.