Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752938Ab0L1AtN (ORCPT ); Mon, 27 Dec 2010 19:49:13 -0500 Received: from mga01.intel.com ([192.55.52.88]:32306 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862Ab0L1AtK (ORCPT ); Mon, 27 Dec 2010 19:49:10 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,237,1291622400"; d="scan'208";a="640899873" Subject: Re: [PATCH RESEND percpu#for-next] percpu: align percpu readmostly subsection to cacheline From: Shaohua Li To: Tejun Heo Cc: Sam Ravnborg , lkml , "hpa@zytor.com" , Andrew Morton , "eric.dumazet@gmail.com" , "linux-arch@vger.kernel.org" In-Reply-To: <20101227133719.GD488@htj.dyndns.org> References: <20101227133719.GD488@htj.dyndns.org> Content-Type: text/plain; charset="UTF-8" Date: Tue, 28 Dec 2010 08:48:21 +0800 Message-ID: <1293497301.10593.27.camel@sli10-conroe> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 969 Lines: 26 On Mon, 2010-12-27 at 21:37 +0800, 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. yes, the x86 part works. Thanks, Shaohua -- 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/