Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762843AbYFGQQy (ORCPT ); Sat, 7 Jun 2008 12:16:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760833AbYFGQQr (ORCPT ); Sat, 7 Jun 2008 12:16:47 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:37430 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760542AbYFGQQq (ORCPT ); Sat, 7 Jun 2008 12:16:46 -0400 Subject: Re: [patch] Re: PostgreSQL pgbench performance regression in 2.6.23+ From: Peter Zijlstra To: Mike Galbraith Cc: Ingo Molnar , Greg Smith , Dhaval Giani , lkml , Srivatsa Vaddagiri In-Reply-To: <1212848179.4668.3.camel@marge.simson.net> References: <1211440207.5733.8.camel@marge.simson.net> <20080522082814.GA4499@linux.vnet.ibm.com> <1211447105.4823.7.camel@marge.simson.net> <1211452465.7606.8.camel@marge.simson.net> <1211455553.4381.9.camel@marge.simson.net> <1211456659.29104.20.camel@twins> <1211458176.5693.6.camel@marge.simson.net> <1211459081.29104.40.camel@twins> <1211536814.5851.18.camel@marge.simson.net> <20080523101000.GA13964@elte.hu> <1211537717.5851.22.camel@marge.simson.net> <1211586407.4786.5.camel@marge.simson.net> <1211867950.5505.47.camel@marge.simson.net> <1212732780.13981.43.camel@marge.simson.net> <1212838682.5571.6.camel@marge.simson.net> <1212843008.4934.16.camel@marge.simson.net> <1212844027.19205.82.camel@lappy.programming.kicks-ass.net> <1212848179.4668.3.camel@marge.simson.net> Content-Type: text/plain Date: Sat, 07 Jun 2008 18:16:19 +0200 Message-Id: <1212855380.19205.96.camel@lappy.programming.kicks-ass.net> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1683 Lines: 33 On Sat, 2008-06-07 at 16:16 +0200, Mike Galbraith wrote: > On Sat, 2008-06-07 at 15:07 +0200, Peter Zijlstra wrote: > > On Sat, 2008-06-07 at 14:50 +0200, Mike Galbraith wrote: > > > Since I tested mysql+oltp and made the dang pdf of the results, I may > > > as well actually attach the thing . > > > > > > BTW, I have a question wrt avg_overlap. When a wakeup cause the current > > > task to begin sharing CPU with a freshly awakened task, the current task > > > is tagged.. but the wakee isn't. How come? If one is sharing, so is > > > the other. > > > > avg_overlap is about measuring how long we'll run after waking someone > > else. The other measure, how long our waker shares the cpu with us, > > hasn't proven to be relevant so far. > > Yeah wrt relevance, I've been playing with making it mean this and that, > with approx 0 success ;-) If it's a measure of how long we run after > waking though, don't we need to make sure it's not a cross CPU wakeup? The idea was to dynamically detect sync wakeups, who's defining property is that the waker will sleep after waking the wakee. And who's effect is pulling tasks together on wakeups - so that we might have the most benefit of cache sharing. So if we were to exclude cross cpu wakeups from this measurement we'd handicap the whole scheme, because then we'd never measure that its actually a sync wakeup and wants to run on the same cpu. -- 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/