Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390Ab0L0USM (ORCPT ); Mon, 27 Dec 2010 15:18:12 -0500 Received: from terminus.zytor.com ([198.137.202.10]:59964 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750873Ab0L0USJ (ORCPT ); Mon, 27 Dec 2010 15:18:09 -0500 Message-ID: <4D18F475.8090604@zytor.com> Date: Mon, 27 Dec 2010 12:17:57 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tejun Heo CC: Shaohua Li , Sam Ravnborg , lkml , Andrew Morton , eric.dumazet@gmail.com, linux-arch@vger.kernel.org Subject: Re: [PATCH RESEND percpu#for-next] percpu: align percpu readmostly subsection to cacheline References: <20101227133719.GD488@htj.dyndns.org> In-Reply-To: <20101227133719.GD488@htj.dyndns.org> 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: 970 Lines: 26 On 12/27/2010 05:37 AM, Tejun Heo wrote: > Currently percpu readmostly subsection may share cachelines with other > percpu subsections which may result in unnecessary cacheline bounce > and performance degradation. > > This patch adds @cacheline parameter to PERCPU() and PERCPU_VADDR() > linker macros, makes each arch linker scripts specify its cacheline > size and use it to align percpu subsections. > > This is based on Shaohua's x86 only patch. > > Signed-off-by: Tejun Heo > Cc: Shaohua Li > --- > Shaohua, can you please verify this achieves the same result? If no > one objects, I'll route it through the percpu tree. > For x86: Acked-by: H. Peter Anvin -- 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/