Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757403Ab2B1WbX (ORCPT ); Tue, 28 Feb 2012 17:31:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46194 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756205Ab2B1WbW (ORCPT ); Tue, 28 Feb 2012 17:31:22 -0500 Date: Tue, 28 Feb 2012 17:31:09 -0500 From: Vivek Goyal To: Peter Zijlstra Cc: Tejun Heo , Li Zefan , containers@lists.linux-foundation.org, cgroups@vger.kernel.org, Andrew Morton , Kay Sievers , Lennart Poettering , Frederic Weisbecker , linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [RFD] cgroup: about multiple hierarchies Message-ID: <20120228223109.GL9920@redhat.com> References: <20120222165714.GC4128@redhat.com> <1329990094.24994.64.camel@twins> <20120223213847.GK19691@redhat.com> <20120223223457.GJ22536@google.com> <20120228211627.GH9920@redhat.com> <1330464100.11248.94.camel@twins> <20120228213526.GI9920@redhat.com> <1330465434.11248.98.camel@twins> <20120228215439.GJ9920@redhat.com> <1330466421.11248.107.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1330466421.11248.107.camel@twins> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2472 Lines: 65 On Tue, Feb 28, 2012 at 11:00:21PM +0100, Peter Zijlstra wrote: > On Tue, 2012-02-28 at 16:54 -0500, Vivek Goyal wrote: > > On Tue, Feb 28, 2012 at 10:43:54PM +0100, Peter Zijlstra wrote: > > > On Tue, 2012-02-28 at 16:35 -0500, Vivek Goyal wrote: > > > > For > > > > cpu controller, it is priority at the group level no fixed minimum/maximum > > > > % shares. And that's a limitation of treating task and group at same level. > > > > > > Depends on what you mean by min/max %, you can do it on the group level > > > by using bandwidth caps (for max) or inverted (max on everybody else, > > > for min). > > > > I was referring to using pure proportional controller. max bandwidth is > > new and I am looking for a quick documentation file which describes > > what are the knobs and how to use it. Did not find any in > > Documentation/cgroups/. Is there any documentation available? > > Its written in C, its at kernel/sched/fair.c ;-) /me does not know enough of scheduler code to parse it fast. But now I found Documentation/scheduler/sched-bwc.txt to explain what max bandwidth control is. > > > I am assuming that max are being specified for groups in some absolute > > quantity. That is fine. It will not still be max %, as again for % you > > need fixed number of entities at any level and that's not the case with > > tasks. > > > > Minimum for one group (max for everyone else) will also only work if > > task and groups are not at same level. > > I'm really not seeing this. Assume I have following hierarchy. root / | \ Tasks G1 G2 Assume I have given upper limit of 20% to G1. (period=50ms, quota=10ms), then it still does not gurantee the minimum bandwidth for G2. If I upper limit G2 also, then I am assuming it just gives minimum gurantee for any tasks in root. (Right now I am assuming just 1 cpu in the system for simplicity). So to get a minimum % bandwdith gurantee for G2, I shall have to move "Tasks" in a children group. Now both upper limit/proportional weight on G3 will help to determine minimum % share of G2. root / | \ G3 G1 G2 | Tasks Please correct me if I have understood the whole thing wrong. Thanks Vivek -- 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/