From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756152AbZBKL6b (ORCPT ); Wed, 11 Feb 2009 06:58:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754724AbZBKL6X (ORCPT ); Wed, 11 Feb 2009 06:58:23 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:40233 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754691AbZBKL6X (ORCPT ); Wed, 11 Feb 2009 06:58:23 -0500 Subject: Re: cgroup, RT reservation per core(s)? From: Peter Zijlstra To: balbir@linux.vnet.ibm.com Cc: Rolando Martins , linux-kernel@vger.kernel.org, Paul Menage , Srivatsa Vaddagiri In-Reply-To: <20090211115357.GG16317@balbir.in.ibm.com> References: <1234209174.5951.165.camel@laptop> <1234271177.23438.24.camel@twins> <1234281602.23438.96.camel@twins> <1234295613.4699.1.camel@laptop> <1234352534.23438.130.camel@twins> <20090211115357.GG16317@balbir.in.ibm.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 11 Feb 2009 13:00:13 +0100 Message-Id: <1234353613.23438.131.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2009-02-11 at 17:23 +0530, Balbir Singh wrote: > * Peter Zijlstra [2009-02-11 12:42:14]: > > > On Wed, 2009-02-11 at 11:33 +0000, Rolando Martins wrote: > > > > > Hi again, > > > > > > is there any way to have multiple "distinct" sched domains, i.e.: > > > mount -t cgroup -o cpu none /dev/sched_domain_0 > > > .... setup sched_domain_0 (ex: 90% RT, 10% Others) > > > mount -t cgroup -o cpu none /dev/sched_domain_1 > > > .... setup sched_domain_1 (ex: 20% RT, 80% Others) > > > Then give sched_domain_0 to cpuset A and sched_domain_1 to B? > > > > Nope. > > > > We currently only support a single instance of a cgroup controller. > > > > I see the use for what you propose, however implementing that will be > > 'interesting'. > > I am confused, if you cpusets, you get your own sched_domain. If you > mount cpusets and cpu controller together, you'll get what you want. > Is this a figment of my imagination. You might need to use exclusive > CPUsets though. afaiui he wants a cgroup hierarchy per exclusive sched domain.