From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755347Ab0JNJU1 (ORCPT ); Thu, 14 Oct 2010 05:20:27 -0400 Received: from canuck.infradead.org ([134.117.69.58]:49994 "EHLO canuck.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754827Ab0JNJUX convert rfc822-to-8bit (ORCPT ); Thu, 14 Oct 2010 05:20:23 -0400 Subject: Re: [PATCH v3 2/7] sched: accumulate per-cfs_rq cpu usage From: Peter Zijlstra To: bharata@linux.vnet.ibm.com Cc: linux-kernel@vger.kernel.org, Dhaval Giani , Balbir Singh , Vaidyanathan Srinivasan , Srivatsa Vaddagiri , Kamalesh Babulal , Ingo Molnar , Pavel Emelyanov , Herbert Poetzl , Avi Kivity , Chris Friesen , Paul Menage , Mike Waychison , Paul Turner , Nikhil Rao In-Reply-To: <20101012075109.GC9893@in.ibm.com> References: <20101012074910.GA9893@in.ibm.com> <20101012075109.GC9893@in.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 14 Oct 2010 11:19:56 +0200 Message-ID: <1287047996.29097.173.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2010-10-12 at 13:21 +0530, Bharata B Rao wrote: > +#ifdef CONFIG_CFS_BANDWIDTH > + { > + .procname = "sched_cfs_bandwidth_slice_us", > + .data = &sysctl_sched_cfs_bandwidth_slice, > + .maxlen = sizeof(unsigned int), > + .mode = 0644, > + .proc_handler = proc_dointvec_minmax, > + .extra1 = &one, > + }, > +#endif So this is basically your scalability knob.. the larger this value less less frequent we have to access global state, but the less parallelism is possible due to fewer CPUs depleting the total quota, leaving nothing for the others. I guess one could go try and play load-balancer games to try and mitigate this by pulling this group's tasks to the CPU(s) that have move bandwidth for that group, but balancing that against the regular load-balancer goal of well balancing load, will undoubtedly be 'interesting'...