Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934814AbYBUQt1 (ORCPT ); Thu, 21 Feb 2008 11:49:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1766015AbYBUQtA (ORCPT ); Thu, 21 Feb 2008 11:49:00 -0500 Received: from ms-smtp-03.nyroc.rr.com ([24.24.2.57]:52984 "EHLO ms-smtp-03.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765495AbYBUQs6 (ORCPT ); Thu, 21 Feb 2008 11:48:58 -0500 Date: Thu, 21 Feb 2008 11:48:51 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Gregory Haskins cc: mingo@elte.hu, a.p.zijlstra@chello.nl, tglx@linutronix.de, linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, bill.huey@gmail.com, kevin@hilman.org, cminyard@mvista.com, dsingleton@mvista.com, dwalker@mvista.com, npiggin@suse.de, dsaxena@plexity.net, ak@suse.de, gregkh@suse.de, sdietrich@novell.com, pmorreale@novell.com, mkohari@novell.com Subject: Re: [PATCH [RT] 10/14] adjust pi_lock usage in wakeup In-Reply-To: <20080221152717.4804.56212.stgit@novell1.haskins.net> Message-ID: References: <20080221152504.4804.8724.stgit@novell1.haskins.net> <20080221152717.4804.56212.stgit@novell1.haskins.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 23 On Thu, 21 Feb 2008, Gregory Haskins wrote: > From: Peter W.Morreale > > In wakeup_next_waiter(), we take the pi_lock, and then find out whether > we have another waiter to add to the pending owner. We can reduce > contention on the pi_lock for the pending owner if we first obtain the > pointer to the next waiter outside of the pi_lock. > > This patch adds a measureable increase in throughput. I see how this may decrease contention (slightly less time in holding the pi_lock). But, please, when stating something like: "adds a measurable increase in throughput", show the benchmark numbers. -- Steve -- 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/