From mboxrd@z Thu Jan 1 00:00:00 1970 From: Glauber Costa Subject: Re: [PATCH v4 cgroup/for-3.7] cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested for them Date: Fri, 14 Sep 2012 13:17:14 +0400 Message-ID: <5052F61A.3040602@parallels.com> References: <20120913183402.GG7677@google.com> <20120913192058.GH7677@google.com> <20120913194111.GM4396@redhat.com> <20120913200354.GN7677@google.com> <5052F58E.4050808@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5052F58E.4050808-bzQdu9zFT3WakBO8gow8eQ@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: Tejun Heo Cc: Neil Horman , containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Michal Hocko , Ingo Molnar , Paul Mackerras , "Aneesh Kumar K.V" , Arnaldo Carvalho de Melo , Johannes Weiner , Thomas Graf , cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Paul Turner , Vivek Goyal On 09/14/2012 01:14 PM, Glauber Costa wrote: > On 09/14/2012 12:03 AM, Tejun Heo wrote: >> Hello, Vivek. >> >> On Thu, Sep 13, 2012 at 03:41:11PM -0400, Vivek Goyal wrote: >>> I think for blkio controller, first level of creation itself is wrong if >>> hierarchy is not supported. >>> >>> root >>> / | \ >>> T1 T2 G1 >>> > > I side with Vivek, and I think we should warn first level. It just tends > to be wrong. If memcg is a special case, just special case it. > _but_, I see no reason not to do it. > > While I agree with Michal point that this is not necessary, I don't > think being noisier than we need to be is a crime. Less noisy certainly > can be. > To add to that: If it is "all the same", hierarchy should be set to 1. If anything else, this will make people switch it to shut up the warning, and prevent a potentially broken use case to appear in the future.