Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756654AbYJJKWn (ORCPT ); Fri, 10 Oct 2008 06:22:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758003AbYJJKWd (ORCPT ); Fri, 10 Oct 2008 06:22:33 -0400 Received: from one.firstfloor.org ([213.235.205.2]:49392 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757980AbYJJKWc (ORCPT ); Fri, 10 Oct 2008 06:22:32 -0400 Message-ID: <48EF2CE0.3080109@firstfloor.org> Date: Fri, 10 Oct 2008 12:22:24 +0200 From: Andi Kleen User-Agent: Thunderbird 1.5.0.14 (X11/20060911) MIME-Version: 1.0 To: Nick Piggin CC: Dave Jones , x86@kernel.org, Linux Kernel Subject: Re: Update cacheline size on X86_GENERIC References: <20081009171453.GA15321@redhat.com> <200810101428.23662.nickpiggin@yahoo.com.au> <87tzbksxja.fsf@basil.nowhere.org> <200810101945.32111.nickpiggin@yahoo.com.au> In-Reply-To: <200810101945.32111.nickpiggin@yahoo.com.au> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1032 Lines: 27 Nick Piggin wrote: > >>> Anyway, GENERIC kernel should run well on all architectures, and while >>> going too big causes slightly increased structures sometimes, going too >>> small could result in horrible bouncing. >> Exactly. >> >> That is it costs one percent or so on TPC, but I think the fix >> for that is just to analyze where the problem is and size those >> data structures based on the runtime cache size. Some subsystems >> like slab do this already. > > Costs 1% on TPC? Is that 128 byte aligning data structures on > Core2, or 64 byte aligning them on P4 that costs the performance? The first. BTW it was a rough number from memory, in that ballpark. Also the experiment was on older kernels, might be different now. The second would undoubtedly be much worse. -Andi -- 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/