From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8D9C4B6EEB for ; Tue, 20 Apr 2010 00:49:11 +1000 (EST) Received: from f199130.upc-f.chello.nl ([80.56.199.130] helo=dyad.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.69 #1 (Red Hat Linux)) id 1O3sHa-0002Mo-7h for linuxppc-dev@ozlabs.org; Mon, 19 Apr 2010 14:49:06 +0000 Subject: Re: [PATCH 1/5] sched: fix capacity calculations for SMT4 From: Peter Zijlstra To: Michael Neuling In-Reply-To: <28214.1271626457@neuling.org> References: <20100409062118.D4096CBB6C@localhost.localdomain> <1271161766.4807.1280.camel@twins> <2906.1271219317@neuling.org> <1271426308.1674.429.camel@laptop> <28214.1271626457@neuling.org> Content-Type: text/plain; charset="UTF-8" Date: Mon, 19 Apr 2010 16:49:03 +0200 Message-ID: <1271688543.1488.253.camel@laptop> Mime-Version: 1.0 Cc: Suresh Siddha , Gautham R Shenoy , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Ingo Molnar List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2010-04-19 at 07:34 +1000, Michael Neuling wrote: > > Are there any numbers available on how much they gain? It might be worth > > to stick in real numbers instead of this alleged 15%. > > I get some gain numbers but obviously the workloads makes a huge > difference. From a scheduler perspective, I assume an > average/representative gain is best rather than an optimistic or > pessimistic one? Yeah, average would be best. > We'll have different gains for SMT2 and SMT4, so we could change the > gain dynamically based on which SMT mode we are in. Does that seem like > something we should add as an arch hook? That's the sort of thing you can use arch_scale_smt_power() for. But be weary to not fall into the same trap I did with x86, where I confused actual gain with capacity (When idle the actual gain is 0, but the capacity is not).