From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751188AbeC0UHZ (ORCPT ); Tue, 27 Mar 2018 16:07:25 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:35955 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751078AbeC0UHX (ORCPT ); Tue, 27 Mar 2018 16:07:23 -0400 X-Google-Smtp-Source: AIpwx4+g8dS/mHkcVCSic5MVhP+d37Av6Zjv9OVjn2Ysy6fee8d5Jyc6fYgYvM4N+cqzT09N00csCA== Date: Tue, 27 Mar 2018 22:07:19 +0200 From: Ingo Molnar To: Thomas Gleixner Cc: Dave Hansen , Linus Torvalds , Linux Kernel Mailing List , linux-mm , Andrea Arcangeli , Andrew Lutomirski , Kees Cook , Hugh Dickins , =?iso-8859-1?Q?J=FCrgen_Gro=DF?= , the arch/x86 maintainers , namit@vmware.com Subject: Re: [PATCH 00/11] Use global pages with PTI Message-ID: <20180327200719.lvdomez6hszpmo4s@gmail.com> References: <20180323174447.55F35636@viggo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Thomas Gleixner wrote: > > systems. Atoms are going to be the easiest thing to get my hands on, > > but I tend to shy away from them for performance work. > > What I have in mind is that I wonder whether the whole circus is worth it > when there is no performance advantage on PCID systems. I'd still love to: - To see at minimum stddev numbers, to make sure we are not looking at some weird statistical artifact. (I also outlined a more robust measurement method.) - If the numbers are right, a CPU engineer should have a look if possible, because frankly this effect is not expected and is not intuitive. Where global pages can be used safely they are almost always an unconditional win. Maybe we are missing some limitation or some interaction with PCID. Since we'll be using PCID even on Meltdown-fixed hardware, maybe the same negative performance effect already exists on non-PTI kernels as well, we just never noticed? I.e. there are multiple grounds to get to the bottom of this. Thanks, Ingo