Linux Container Development
 help / color / mirror / Atom feed
From: Ben Blum <bblum-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
To: Li Zefan <lizf-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	Andrew Morton
	<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
	menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v4 0/4] cgroups: support for module-loadable subsystems
Date: Thu, 7 Jan 2010 03:14:32 -0500	[thread overview]
Message-ID: <20100107081432.GC16656@andrew.cmu.edu> (raw)
In-Reply-To: <4B45824B.9030108-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>

On Thu, Jan 07, 2010 at 02:42:19PM +0800, Li Zefan wrote:
> KAMEZAWA Hiroyuki wrote:
> > On Wed, 6 Jan 2010 20:26:06 -0500
> > Ben Blum <bblum-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org> wrote:
> > 
> >> On Wed, Jan 06, 2010 at 04:04:14PM -0800, Andrew Morton wrote:
> >>> On Thu, 31 Dec 2009 00:10:50 -0500
> >>> Ben Blum <bblum-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org> wrote:
> >>>
> >>>> This patch series implements support for building, loading, and
> >>>> unloading subsystems as modules, both within and outside the kernel
> >>>> source tree. It provides an interface cgroup_load_subsys() and
> >>>> cgroup_unload_subsys() which modular subsystems can use to register and
> >>>> depart during runtime. The net_cls classifier subsystem serves as the
> >>>> example for a subsystem which can be converted into a module using these
> >>>> changes.
> >>> What is the value in this?  What are the usage scenarios?  Why does the
> >>> benefit of this change exceed the cost/risk/etc of merging it?
> >> As discussed in the first posting of these patches, this provides the
> >> ability for arbitrary subsystems to be used with cgroups.. cls_cgroup
> >> would have already been a module except for a lack of support from
> >> cgroups, and the change also allows other module-loadable classifiers
> >> to add subsystems of their own.
> > 
> > Hmm, do you have your own module in plan ?
> > 
> 
> Maybe the new blkio_cgroup can also be made module-able.

certainly looks promising. one thing I note while looking over it is
that it wants .use_id = 1, and the load_subsys interface neglects to
make a call to init_idr. adding calls to cgroup_init_idr has a few
possible complications... what use does blkio have for use_id?

  parent reply	other threads:[~2010-01-07  8:14 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20091231051050.GA714@andrew.cmu.edu>
     [not found] ` <20091231051050.GA714-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
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
     [not found]     ` <20100106160414.bd555474.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2010-01-07  1:26       ` Ben Blum
     [not found]     ` <20100107012606.GA25577@andrew.cmu.edu>
     [not found]       ` <20100107012606.GA25577-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2010-01-07  3:07         ` KAMEZAWA Hiroyuki
     [not found]       ` <20100107120732.97d502bd.kamezawa.hiroyu@jp.fujitsu.com>
     [not found]         ` <20100107120732.97d502bd.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2010-01-07  6:42           ` Li Zefan
     [not found]         ` <4B45824B.9030108@cn.fujitsu.com>
     [not found]           ` <20100107161627.34b31e0c.kamezawa.hiroyu@jp.fujitsu.com>
     [not found]             ` <20100107161627.34b31e0c.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2010-01-07  7:48               ` Ben Blum
     [not found]             ` <20100107074812.GA16656@andrew.cmu.edu>
     [not found]               ` <20100107074812.GA16656-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2010-01-07  7:51                 ` KAMEZAWA Hiroyuki
     [not found]                   ` <20100107165117.dca1dc52.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2010-01-07  8:04                     ` Ben Blum
     [not found]           ` <4B45824B.9030108-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2010-01-07  7:16             ` KAMEZAWA Hiroyuki
2010-01-07  8:14             ` Ben Blum [this message]
     [not found]               ` <20100107081432.GC16656-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2010-01-07  8:22                 ` Ben Blum
2010-01-08  5:27             ` Ben Blum
     [not found]           ` <20100108052734.GA13168@andrew.cmu.edu>
     [not found]             ` <20100108052734.GA13168-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
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
     [not found]             ` <20100108053021.GC13168@andrew.cmu.edu>
     [not found]               ` <20100108053021.GC13168-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org>
2010-01-08 15:10                 ` Vivek Goyal
     [not found]                   ` <20100108151038.GA22219-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-01-12  0:21                     ` KAMEZAWA Hiroyuki
     [not found]                   ` <20100112092106.9ac4e535.kamezawa.hiroyu@jp.fujitsu.com>
     [not found]                     ` <20100112092106.9ac4e535.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2010-01-14  9:32                       ` Balbir Singh
     [not found]                     ` <661de9471001140132o23f44a4fjb1849d865f96d19a@mail.gmail.com>
     [not found]                       ` <661de9471001140132o23f44a4fjb1849d865f96d19a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-14 11:42                         ` Vivek Goyal
2010-01-08 16:33                 ` Vivek Goyal
     [not found]                   ` <20100108163352.GB22219-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-01-12 23:34                     ` Ben Blum
     [not found]                       ` <20100112233453.GB5098-/0J7IIbLF8FCM1neWV3AGuCmf2DRS9x2@public.gmane.org>
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
     [not found]                           ` <20100112233709.GD5098-/0J7IIbLF8FCM1neWV3AGuCmf2DRS9x2@public.gmane.org>
2010-01-14  9:15                             ` Jens Axboe
     [not found]                           ` <20100114091557.GO13771@kernel.dk>
     [not found]                             ` <20100114091557.GO13771-tSWWG44O7X1aa/9Udqfwiw@public.gmane.org>
2010-01-14  9:29                               ` Li Zefan
2009-12-31  5:10 [PATCH v4 0/4] cgroups: support for module-loadable subsystems Ben Blum

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=20100107081432.GC16656@andrew.cmu.edu \
    --to=bblum-om76b2iv3ylqjuslxsepgw@public.gmane.org \
    --cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=lizf-BthXqXjhjHXQFUHtdCDX3A@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox