Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753869AbZA3QFT (ORCPT ); Fri, 30 Jan 2009 11:05:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751690AbZA3QFG (ORCPT ); Fri, 30 Jan 2009 11:05:06 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:57248 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525AbZA3QFF (ORCPT ); Fri, 30 Jan 2009 11:05:05 -0500 Date: Fri, 30 Jan 2009 08:04:01 -0800 (PST) From: Linus Torvalds X-X-Sender: torvalds@localhost.localdomain To: Peter Zijlstra cc: Jens Axboe , Steven Rostedt , Andrew Morton , LKML , Rusty Russell , npiggin@suse.de, Ingo Molnar , Thomas Gleixner , Arjan van de Ven Subject: Re: [PATCH -v3] use per cpu data for single cpu ipi calls In-Reply-To: <1233318733.4495.174.camel@laptop> Message-ID: References: <20090128173039.cbc29e81.akpm@linux-foundation.org> <1233218954.7835.11.camel@twins> <1233253380.4495.123.camel@laptop> <1233254680.4495.126.camel@laptop> <20090130112310.GI30821@kernel.dk> <1233318733.4495.174.camel@laptop> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) 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: 998 Lines: 26 On Fri, 30 Jan 2009, Peter Zijlstra wrote: > > Signed-off-by: Steven Rostedt > Signed-off-by: Peter Zijlstra Acked-by: Linus Torvalds My only question is whetherr we might even drop the kmalloc() some day: I suspect that the CSD_FLAG_LOCK is essentially never a contention point, and the cost (and occasional synchronization) of kmalloc() quite possibly overwhelms any theoretical scaling ability. If another CPU hasn't even received its IPI before the same CPU sends the next one, I'm not sure we _want_ to send one, in fact. But that's a secondary issue, and isn't a correctness thing, just a "do we really need three different allocations?" musing.. Linus -- 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/