Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755386AbYGIVU5 (ORCPT ); Wed, 9 Jul 2008 17:20:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751953AbYGIVUt (ORCPT ); Wed, 9 Jul 2008 17:20:49 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49436 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751967AbYGIVUt (ORCPT ); Wed, 9 Jul 2008 17:20:49 -0400 Message-ID: <48752AC2.7080700@zytor.com> Date: Wed, 09 Jul 2008 17:16:50 -0400 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: "Eric W. Biederman" CC: Jeremy Fitzhardinge , Mike Travis , Christoph Lameter , Ingo Molnar , Andrew Morton , 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> <4874F4F2.9010603@goop.org> <4874F7D9.5060607@linux-foundation.org> <4874FD52.8070000@sgi.com> <4874FFC4.7050505@linux-foundation.org> <487502FB.3090106@sgi.com> <487507A1.2020100@goop.org> <4875212E.6090404@goop.org> In-Reply-To: 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: 713 Lines: 20 Eric W. Biederman wrote: > Jeremy Fitzhardinge writes: > >>> Or we could do something completely evil. And use the other segment >>> register for the stack canary. >>> >> That would still require gcc changes, so it doesn't help much. > > We could use %fs for the per cpu variables. Then we could set %gs to whatever > we wanted to sync up with gcc No swapfs instruction, and extra performance penalty because %fs is used in userspace. -hpa -- 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/