Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965699AbeAKTfp (ORCPT + 1 other); Thu, 11 Jan 2018 14:35:45 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:56702 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933811AbeAKTfo (ORCPT ); Thu, 11 Jan 2018 14:35:44 -0500 Date: Thu, 11 Jan 2018 19:34:31 +0000 From: Alan Cox To: Josh Poimboeuf Cc: Olivier Galibert , Dave Hansen , Borislav Petkov , Linus Torvalds , Alexei Starovoitov , Andy Lutomirski , Willy Tarreau , Peter Zijlstra , LKML , X86 ML , Brian Gerst , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Greg Kroah-Hartman , Kees Cook Subject: Re: [RFC PATCH v2 6/6] x86/entry/pti: don't switch PGD on when pti_disable is set Message-ID: <20180111193431.7e2d7f63@alans-desktop> In-Reply-To: <20180111192601.cck3eq26vorybudk@treble> References: <20180111182147.masunghp5km6igjq@ast-mbp.dhcp.thefacebook.com> <20180111183207.dah7imbuvuhvrrk6@treble> <4e32af93-f632-ae17-eed4-c7023c1b9cc5@linux.intel.com> <20180111190700.y4hultq3awxuw6fj@pd.tnic> <6144aefc-767f-ff36-b424-f63f4bd4c579@linux.intel.com> <20180111192601.cck3eq26vorybudk@treble> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Thu, 11 Jan 2018 13:26:01 -0600 Josh Poimboeuf wrote: > On Thu, Jan 11, 2018 at 08:19:35PM +0100, Olivier Galibert wrote: > > Wouldn't the time taken by an easy syscall like getuid be a clear indicator? > > I think only if you had a baseline measurement to compare against. getuid can also be cached by a smart libc. getppid() is what micro benchmarks seem to favour. Alan