From: Tejun Heo Subject: Re: [PATCHSET cgroup/for-3.8] netcls_cgroup: implement hierarchy support Date: Mon, 19 Nov 2012 11:01:05 -0800 Message-ID: <20121119190105.GL15971@htj.dyndns.org> References: <1353123062-23193-1-git-send-email-tj@kernel.org> <50AA3B5E.3080701@bmw-carit.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=zYdFKkVL3OaPTzYKoHkxgh7XmrIPUGoy/C0skKDdOVM=; b=P4qjJ/I94PT3+tq6tRaHWGUqgK4nuHgGd040ZGm1AVKdjVUzVCPxprFZ26mN69YtyD K5LEugnuI1gNorsYccij6ynd62xI16uI/8dYNofLxCDeV7Js//Tjcfs6qBc+Koxj56KT cb6OPg34+xZCg8fOk5pAVaufnCmS0lDokGgDHXsNi27noqkRkc5SZqFNMjUpLGYrV9Gn oHCxTr1UCshWclXeoTnnSOExsNWDd1/ISv8wPzsfiS2wUt6/HdlTUdVHSGy+dtMX3lWp PBWVb1S9XyR1XIMbugkqSak5XUslLZdSCYixZmxuQnadghRVSn1HbQ7RuyjRNeMjyGdD 8/6Q== Content-Disposition: inline In-Reply-To: <50AA3B5E.3080701-98C5kh4wR6ohFhg+JK9F0w@public.gmane.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Daniel Wagner Cc: nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org, tgraf-G/eBtMaohhA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, davem-fT/PcQaiUtIeIZ0/mPfg9Q@public.gmane.org Hello, Daniel. On Mon, Nov 19, 2012 at 02:59:58PM +0100, Daniel Wagner wrote: > Sorry to bring this up again: how should to root cgroup behave? If > the ultimate goal to have only one single hierarchy then I would > assume it is important that the semantic for all controllers are the > same. As you pointed out the networking controllers are kind of a > strange beast in the zoo of the cgroup controllers. But still I > would assume that all root controllers behave the same. memcg or > cpu* are not expected to do any work in the root cgroup. I think the implemented behavior is fine. memcg or cpu* don't do anything on root cgroup as it doesn't make much (or any) sense. For net_prio and cls, I don't see any reason to treat root cgroup differently and how that would cause conflict when mounted together with other controllers. So, yeah, things seem okay to me. Thanks. -- tejun