From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH RESEND percpu#for-next] percpu: align percpu readmostly subsection to cacheline Date: Tue, 25 Jan 2011 14:32:13 +0100 Message-ID: <20110125133213.GV27510@htj.dyndns.org> References: <20101227133719.GD488@htj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:46877 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772Ab1AYNcS (ORCPT ); Tue, 25 Jan 2011 08:32:18 -0500 Content-Disposition: inline In-Reply-To: <20101227133719.GD488@htj.dyndns.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Shaohua Li , Sam Ravnborg , lkml , "hpa@zytor.com" , Andrew Morton e On Mon, Dec 27, 2010 at 02:37:19PM +0100, 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. Applied to percpu#for-2.6.39. Thanks. -- tejun From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:46877 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772Ab1AYNcS (ORCPT ); Tue, 25 Jan 2011 08:32:18 -0500 Date: Tue, 25 Jan 2011 14:32:13 +0100 From: Tejun Heo Subject: Re: [PATCH RESEND percpu#for-next] percpu: align percpu readmostly subsection to cacheline Message-ID: <20110125133213.GV27510@htj.dyndns.org> References: <20101227133719.GD488@htj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101227133719.GD488@htj.dyndns.org> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Shaohua Li , Sam Ravnborg , lkml , "hpa@zytor.com" , Andrew Morton , eric.dumazet@gmail.com, linux-arch@vger.kernel.org Message-ID: <20110125133213.xdK2CNdm0MWEPXf-8Y2XwJvZPy3av6Ncg0zMg0C88Ds@z> On Mon, Dec 27, 2010 at 02:37:19PM +0100, 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. Applied to percpu#for-2.6.39. Thanks. -- tejun