Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752322AbYGIV0r (ORCPT ); Wed, 9 Jul 2008 17:26:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755175AbYGIV0f (ORCPT ); Wed, 9 Jul 2008 17:26:35 -0400 Received: from gw.goop.org ([64.81.55.164]:51453 "EHLO mail.goop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755126AbYGIV0e (ORCPT ); Wed, 9 Jul 2008 17:26:34 -0400 Message-ID: <48752CF0.20908@goop.org> Date: Wed, 09 Jul 2008 14:26:08 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: "H. Peter Anvin" CC: Arjan van de Ven , Ingo Molnar , "Eric W. Biederman" , Mike Travis , Andrew Morton , Christoph Lameter , Jack Steiner , linux-kernel@vger.kernel.org Subject: Re: [RFC 00/15] x86_64: Optimize percpu accesses References: <20080709165129.292635000@polaris-admin.engr.sgi.com> <20080709200757.GD14009@elte.hu> <48751B57.8030605@goop.org> <20080709133958.612635f0@infradead.org> <4875231F.1020506@zytor.com> <487524A0.6020304@goop.org> <487529AE.3060505@zytor.com> In-Reply-To: <487529AE.3060505@zytor.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1082 Lines: 24 H. Peter Anvin wrote: > Either way, I really suspect that the right thing to do is to use > negative offsets, with the possible exception of a handful of things > (40 bytes or less, perhaps like current) which can get small positive > offsets and end up in the "super hot" cacheline. > > The sucky part is that I don't believe GNU ld has native support for a > "hanging down" section (one which has a fixed endpoint rather than a > starting point), so it requires extra magic around the link (or > finding some way to do it with linker script functions.) If you're going to do another linker pass, you could have a script to extract all the percpu symbols and generate a set of derived zero-based ones and then link against that. Or generate a vmlinux with relocations and "relocate" all the percpu symbols down to 0. J -- 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/