From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751131AbWIIATA (ORCPT ); Fri, 8 Sep 2006 20:19:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751238AbWIIATA (ORCPT ); Fri, 8 Sep 2006 20:19:00 -0400 Received: from mga06.intel.com ([134.134.136.21]:46934 "EHLO orsmga101.jf.intel.com") by vger.kernel.org with ESMTP id S1751131AbWIIAS7 (ORCPT ); Fri, 8 Sep 2006 20:18:59 -0400 X-ExtLoop1: 1 X-IronPort-AV: i="4.09,135,1157353200"; d="scan'208"; a="123580195:sNHT33763548" Date: Fri, 8 Sep 2006 17:03:52 -0700 From: "Siddha, Suresh B" To: Christoph Lameter Cc: "Siddha, Suresh B" , akpm@osdl.org, linux-kernel@vger.kernel.org, npiggin@suse.de, mingo@elte.hu Subject: Re: [PATCH] Fix longstanding load balancing bug in the scheduler. Message-ID: <20060908170352.C9446@unix-os.sc.intel.com> References: <20060908103529.A9121@unix-os.sc.intel.com> <20060908130028.A9446@unix-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from clameter@sgi.com on Fri, Sep 08, 2006 at 01:19:28PM -0700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 08, 2006 at 01:19:28PM -0700, Christoph Lameter wrote: > On Fri, 8 Sep 2006, Siddha, Suresh B wrote: > > > On Fri, Sep 08, 2006 at 11:40:51AM -0700, Christoph Lameter wrote: > > > The balancing operation is not that frequent and having to treat a special > > > case in the callers would make code more complicated and likely offset the > > > gains in this function. > > > > This solution as such is not accurate and clean :) and my suggestion is > > not making it any more ugly. > > > > With increase in NR_CPUS, cost of cpumask operations will increase and > > we shouldn't penalize the other logical threads or cores sharing the caches by > > bringing in unnecessary cache lines. > > One cacheline sized 128bytes will support all 1024 cpus that IA64 allows. > cacheline align the cpumask? one or more, it is unnecessary for the common case. thanks, suresh