Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760891AbXJYHBZ (ORCPT ); Thu, 25 Oct 2007 03:01:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755998AbXJYHBS (ORCPT ); Thu, 25 Oct 2007 03:01:18 -0400 Received: from E23SMTP02.au.ibm.com ([202.81.18.163]:34422 "EHLO e23smtp02.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754421AbXJYHBR (ORCPT ); Thu, 25 Oct 2007 03:01:17 -0400 Date: Wed, 24 Oct 2007 23:30:34 +0530 From: Gautham R Shenoy To: Christoph Lameter Cc: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, Rusty Russel , Srivatsa Vaddagiri , Dipankar Sarma , Ingo Molnar , Oleg Nesterov , Paul E McKenney , Richard Gooch , Tigran Aivazian , Shoahua Li , Ralf Baechle , Heiko Carstens , Nathan Lynch , David Miller , Paul Jackson , Josh Triplett , Pekka Enberg , Akinobu Mita Subject: Re: [RFC PATCH 0/5] Refcount based Cpu Hotplug. V2 Message-ID: <20071024180034.GB8663@in.ibm.com> Reply-To: ego@in.ibm.com References: <20071024052931.GA22722@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15+20070412 (2007-04-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1828 Lines: 50 On Wed, Oct 24, 2007 at 10:04:41AM -0700, Christoph Lameter wrote: > On Wed, 24 Oct 2007, Gautham R Shenoy wrote: > > > This is the version 2 of the refcount based cpu-hotplug "locking" > > implementation. > > Uggh. This introduces a global lock that has to be taken always when > scanning over cpus? Well, no! we take the global lock only while bumping up the refcount. We don't hold the lock while scanning over the cpus. And this is definitely an improvement over the lock_cpu_hotplug() global mutex we have now. >Is multipe cpus are scanning over processor lists then > we will get into scaling problems. Wasnt there an RCU based implementation > that avoided cacheline bouncing and refcounting? Oh yes! You are probably refering to http://lkml.org/lkml/2006/10/26/73 which was posted a year ago. Unfortunately it didn't get much review, and we moved on towards a bunch of other implementations. Anyway, the first step would be to move away from locks towards a refcount model. Later on we can use rcu + per-cpu refcounts thereby making it scalable on the read side. > > > The patchstack which is based against 2.6.23-mm1 has behaved well > > when it was stress tested with kernbench running while continuously > > performing cpu-hotplug operations on i386, x86_64 and ppc64. > > What was the highest cpu count in testing? 8 cpus on i386 and x86_64. 16 cpus on ppc64. Thanks and Regards gautham. -- Gautham R Shenoy Linux Technology Center IBM India. "Freedom comes with a price tag of responsibility, which is still a bargain, because Freedom is priceless!" - 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/