Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756127Ab0AGHTn (ORCPT ); Thu, 7 Jan 2010 02:19:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756074Ab0AGHTm (ORCPT ); Thu, 7 Jan 2010 02:19:42 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:57406 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754276Ab0AGHTl (ORCPT ); Thu, 7 Jan 2010 02:19:41 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Thu, 7 Jan 2010 16:16:27 +0900 From: KAMEZAWA Hiroyuki To: Li Zefan Cc: Ben Blum , Andrew Morton , 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 Message-Id: <20100107161627.34b31e0c.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <4B45824B.9030108@cn.fujitsu.com> References: <20091231051050.GA714@andrew.cmu.edu> <20100106160414.bd555474.akpm@linux-foundation.org> <20100107012606.GA25577@andrew.cmu.edu> <20100107120732.97d502bd.kamezawa.hiroyu@jp.fujitsu.com> <4B45824B.9030108@cn.fujitsu.com> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2462 Lines: 71 On Thu, 07 Jan 2010 14:42:19 +0800 Li Zefan wrote: > KAMEZAWA Hiroyuki wrote: > > On Wed, 6 Jan 2010 20:26:06 -0500 > > Ben Blum 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 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. > Hmm, I read the patch slightly. I'm not enough expert to review this patch.. I requst following as TODO. (No objection to the direction/patch.) 1. Add documentation about load/unlod module. It seems module unloading will not succuess while subsystem is mounted. Right ? 2. Making this to be reasonable value. #define CGROUP_SUBSYS_COUNT (BITS_PER_BYTE*sizeof(unsigned long)) I can't find why. 3. show whehter a subsys is a loadable module or not via /proc/cgroups 4. how to test ? load/unload NET_CLS is enough ? Last one is question. 5. Is following path is safe ? find_css_set() { .... read_lock(&css_set_lock); get template including pointer read_unlock(&css_set_lock); use template to build new css_set. Thanks, -Kame -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/