Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755010AbYHTObA (ORCPT ); Wed, 20 Aug 2008 10:31:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751380AbYHTOav (ORCPT ); Wed, 20 Aug 2008 10:30:51 -0400 Received: from yx-out-2324.google.com ([74.125.44.29]:43540 "EHLO yx-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777AbYHTOau (ORCPT ); Wed, 20 Aug 2008 10:30:50 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:from; b=HiMFu6nMNkCUIjTAOK8m42Kb3C3lNzQm3zkH4h4dvmJvmFGMZVUD5cOcWYZPjyRb6g efKRbg7x6N9UFHbq6swpsY4gc+6AAQT+H7AqrI1bUtAAUfEb/7hriVdzGgfJ/G/QP9Fk HQuAlniLz/eOCdS+2nEnljJkFeo54nPOT6Mr4= Date: Wed, 20 Aug 2008 18:32:09 +0400 To: Peter Zijlstra Cc: Ingo Molnar , "Zhang, Yanmin" , Dhaval Giani , LKML , Srivatsa Vaddagiri , Aneesh Kumar KV , Balbir Singh , Chris Friesen Subject: Re: VolanoMark regression with 2.6.27-rc1 Message-ID: <20080820143209.GA32156@x200.localdomain> References: <1912217169.25608.228.camel@ymzhang> <1218180605.8625.64.camel@twins> <20080811185008.GA29291@linux.vnet.ibm.com> <1912726331.25608.235.camel@ymzhang> <20080817115035.GA32223@linux.vnet.ibm.com> <20080818052155.GA5063@linux.vnet.ibm.com> <1219217089.8781.27.camel@ymzhang> <1219218089.10800.404.camel@twins> <20080820105141.GA18226@elte.hu> <1219239137.8651.52.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1219239137.8651.52.camel@twins> User-Agent: Mutt/1.5.13 (2006-08-11) From: adobriyan@gmail.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1481 Lines: 44 On Wed, Aug 20, 2008 at 03:32:17PM +0200, Peter Zijlstra wrote: > On Wed, 2008-08-20 at 12:51 +0200, Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > > > And I must admit to having overlooked the effect on wake_affine.. > > > > > > Chris, could you see the effect of this on smp group fairness? > > Just realized my brainfart.. > > --- > Subject: sched: load-balance bias fixes > From: Peter Zijlstra > Date: Wed Aug 20 15:28:51 CEST 2008 > > Yanmin spotted a regression with my patch that introduces LB_BIAS: > > commit 93b75217df39e6d75889cc6f8050343286aff4a5 > Author: Peter Zijlstra > Date: Fri Jun 27 13:41:33 2008 +0200 > > And I just spotted the brainfart - I should have replaced min/max with avg > instead of removing it completely. > --- linux-2.6.orig/include/linux/kernel.h > +++ linux-2.6/include/linux/kernel.h > @@ -367,6 +367,12 @@ static inline char *pack_hex_byte(char * > (void) (&_max1 == &_max2); \ > _max1 > _max2 ? _max1 : _max2; }) > > +#define avg(x, y) ({ \ > + typeof(x) _avg1 = ((x)+1)/2; \ > + typeof(x) _avg2 = ((y)+1)/2; \ ITYM, typeof(y) > + (void) (&_avg1 == &_avg2); \ > + _avg1 + _avg2; }) -- 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/