Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422704AbWCXLyf (ORCPT ); Fri, 24 Mar 2006 06:54:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422708AbWCXLyf (ORCPT ); Fri, 24 Mar 2006 06:54:35 -0500 Received: from mail04.syd.optusnet.com.au ([211.29.132.185]:38882 "EHLO mail04.syd.optusnet.com.au") by vger.kernel.org with ESMTP id S1422704AbWCXLye (ORCPT ); Fri, 24 Mar 2006 06:54:34 -0500 From: Con Kolivas To: Mike Galbraith Subject: Re: [2.6.16-mm1 patch] throttling tree patches Date: Fri, 24 Mar 2006 22:54:08 +1100 User-Agent: KMail/1.9.1 Cc: lkml , Ingo Molnar , Andrew Morton , Nick Piggin , Peter Williams References: <1143198208.7741.8.camel@homer> <1143198964.7741.23.camel@homer> <1143199295.7741.29.camel@homer> In-Reply-To: <1143199295.7741.29.camel@homer> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603242254.09643.kernel@kolivas.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1452 Lines: 35 On Friday 24 March 2006 22:21, Mike Galbraith wrote: > patch 4/6 > > This patch implements the throttling. > > Throttling is done via computing a slice_avg, which is the upper limit > of what a task's sleep_avg may be and be sane. When a task begins to > consume more CPU than it's sleep_avg indicates it should, the task will > be throttled. A task which conforms to expectations can save credit for > later use, which allows interactive tasks to do a burst of activity > without being throttled. When their reserve is exhausted however, > that's the end of high ussage at high priority. Looks ok. The description of credit still sounds cryptic. > +#define C1 (CREDIT_C1 * MAX_BONUS * HZ) > +#define C2 (CREDIT_C2 * MAX_BONUS * HZ + C1) > +#define C3 (MAX_BONUS * C2) Macro names that short are asking for trouble... ... else looks good. After we've cleaned out all the sched patches from -mm it would be nice to get this work in. The values of C1 and particularly C2 _sound_ large but may well be appropriate since you've been hard at work on this. I'll have to have a play for myself (if I ever find spare cycles on my miniscule selection of hardware) with them when they hit -mm. Cheers, Con - 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/