From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752438AbbEDKXo (ORCPT ); Mon, 4 May 2015 06:23:44 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:46549 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751344AbbEDKXe (ORCPT ); Mon, 4 May 2015 06:23:34 -0400 Message-ID: <554737AE.5040402@huawei.com> Date: Mon, 4 May 2015 17:11:10 +0800 From: Zefan Li User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: Mike Galbraith CC: Ingo Molnar , Peter Zijlstra , Tejun Heo , LKML , Cgroups Subject: Re: [PATCH] sched: Relax a restriction in sched_rt_can_attach() References: <5546C34C.7050202@huawei.com> <1430709236.3129.42.camel@gmail.com> <5546F80B.3070802@huawei.com> <1430716247.3129.44.camel@gmail.com> <1430717964.3129.62.camel@gmail.com> In-Reply-To: <1430717964.3129.62.camel@gmail.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.18.230] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> Some degree of flexibility is provided so that you may disable some controllers >>> in a subtree. For example: >>> >>> root ---> child1 >>> (cpuset,memory,cpu) (cpuset,memory) >>> \ >>> \-> child2 >>> (cpu) >> >> Whew, that's a relief. Thanks. > > But somehow I'm not feeling a whole lot better. > > "May" means if you don't explicitly take some action to disable group > scheduling, you get it (I don't care if I have an off button), but that > would also seemingly mean that we would then have rt tasks in taskgroups > with no bandwidth allocated, ie you have to make group scheduling for rt > tasks meaningless until a bandwidth appeared, and to make bandwidth > appear, you'd have to stop the world, distribute, continue, no? > > The current "just say no" seems a lot more sensible. > I just realized we allow removing/adding controllers from/to cgroups while there are tasks in them, which isn't safe unless we eliminate all can_attach callbacks. We've done so for some cgroup subsystems, but there are still a few of them...