Received: by 10.213.65.68 with SMTP id h4csp262971imn; Fri, 30 Mar 2018 05:10:50 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/qoGG+1x86zafDwUjiutVcLmWSvwO72C00gpc5jzregtBinF27iEd0dN3Jn1CvJkuVkJcO X-Received: by 2002:a17:902:604f:: with SMTP id a15-v6mr12963887plt.184.1522411850100; Fri, 30 Mar 2018 05:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522411850; cv=none; d=google.com; s=arc-20160816; b=C4eQmTDfOW9iX+iU6hO/4w01Ly8XCaHs+4Kqc6E9802zLKR0CIUdkQ5i9EtwXiJuPH fT+OYti60W219ia9X8TMX5FXhS4mzIySXG87QapdEwLT5+a2sJTg6z4ETN8gzX5hU8iy APr4AWif/cNuy6pQyDVuVWx4hNaYczmEFRbjEK32CncsRWems4694ZZWBDBsco+pptEg h4YPAy5hyVc5EtOvXLJLCtwwN/XVPqatD9tqCgZ9ZJUcOHvwl+VUVRHF5S2OzgAX2V7G gk575l9Org8aPCCD+KkuTEDOpo8rS5weo7xGMHaHQJ0D/3hs8WGhlkdFLflmWJWYTGMO qhEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=XvEIZBY7CpTMGIa6sblcsbQjFJdUpHLLdW3ilEOxiQI=; b=yEbuuMdV3licZiASh2gs6C8vRwVNGw/WVczRFpEBs1Q8BHGedUlG0szTIWDuw1jnPr o6gjYATDlDXCbKQKnh0BYh3w6RIX4vMuM9l40fdx7B0RPh1YAuWU7QZ0l09SGpimLn9m zl3ILVRsKLVX2KkuNaM9GA2SBsvyPkUhyXyeaC/ahNPwAVH4qyRv9Vie2r+gTTgIdwxa 5vDrbwx1iP2IyrZ6UnFdRAsKnx/2ks4fOgVTbBXYzkF5MjWB5ID4GjGK5YHikNLY4dST aC6hwt6MuNNJpMFyp66+6go1MSOFszoAXDz8SzyHfgqVYovuQ9Z72tF1PlRspS/y9MBm WRZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UDnyg1ku; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v24si6082087pff.274.2018.03.30.05.10.35; Fri, 30 Mar 2018 05:10:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UDnyg1ku; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751282AbeC3MJZ (ORCPT + 99 others); Fri, 30 Mar 2018 08:09:25 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:43263 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbeC3MJY (ORCPT ); Fri, 30 Mar 2018 08:09:24 -0400 Received: by mail-wr0-f194.google.com with SMTP id p53so7878092wrc.10 for ; Fri, 30 Mar 2018 05:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XvEIZBY7CpTMGIa6sblcsbQjFJdUpHLLdW3ilEOxiQI=; b=UDnyg1kuP6L4yG04omx1eihQkGqKRKLMhdsPzLGrHyiGzA1H4gCb1FtkAs6Vpcsmvg ta1Q9XJ1EiW58ZK4XJ0c4IsWS60dGa+sl5PlmKeZ7d6y3jrnnktf07ReSaEM4nRr5mPQ /ceq7vPg0pPNURBcseEhZ4oQWcrYrk1wZN7+EdKU6r+1FV8GcqbpWTpHOlN1dc6HYBN1 JEJgEp0Swa2iM+pBfXyyD5XFN8R4iVJ/PYaXC7R/aMMU6dE7TZFjJibnfvBAXNzzIIkI oVFfsH4Hgq7VcQfSFQL5z0cT4e2j9ow71ohz1B9KB2og8vzoxHe/xnc8oa+5wBumhVip uSqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=XvEIZBY7CpTMGIa6sblcsbQjFJdUpHLLdW3ilEOxiQI=; b=JUJXYec2W9Jmn9KGpTBxD3nHcr1Kc6ZcuiCDVmK20EuU+a3276t9+rraxI8JUcRkgy bq3PJ8RYdcDgADqxx3sGa2mET+sqXgYvPOXR4ArIue1uYw3foi/wwqAn7x4QSRWy4e1e 789SYwhX6MbOuWmbpcftH2UimZZyb29InnRbGffI6YDHEiDSo8HNcduiHFnTbZuIRYrS xtvAl1Yf7V6rDoaEsdIs7Mv/oFSW6/d5awwiCv7vC69AJryM4Q9J2omOFWmG3avVKUG2 PQmI03vZIyARwvgh8EB9Zf4cY3iYjOyDpZzlh+5De73AQ7CI03gdaqR+Asqoki/1W8o6 dMDw== X-Gm-Message-State: AElRT7EAJIzms7uJlJOmlwwh/p7Ski2leYRa85CkdOpkGJ+QfbqH09/O Eeo/qHjII1jjqG4LhJLaVog= X-Received: by 10.223.132.103 with SMTP id 94mr9059979wrf.275.1522411763246; Fri, 30 Mar 2018 05:09:23 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id s125sm3231847wmf.4.2018.03.30.05.09.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Mar 2018 05:09:22 -0700 (PDT) Date: Fri, 30 Mar 2018 14:09:20 +0200 From: Ingo Molnar To: Dave Hansen Cc: Thomas Gleixner , 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: <20180330120920.btobga44wqytlkoe@gmail.com> References: <20180323174447.55F35636@viggo.jf.intel.com> <20180327200719.lvdomez6hszpmo4s@gmail.com> <0d6ea030-ec3b-d649-bad7-89ff54094e25@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d6ea030-ec3b-d649-bad7-89ff54094e25@linux.intel.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Dave Hansen wrote: > On 03/27/2018 01:07 PM, Ingo Molnar wrote: > > * 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 was waiting on trying to find a relatively recent Atom system (they > actually come in reasonably sized servers [1]), but I'm hitting a snag > there, so I figured I'd just share a kernel compile using Ingo's > perf-based methodology on a Skylake desktop system with PCIDs. > > Here's the kernel compile: > > No Global pages (baseline): 186.951 seconds time elapsed ( +- 0.35% ) > 28 Global pages (this set): 185.756 seconds time elapsed ( +- 0.09% ) > -1.195 seconds (-0.64%) > > Lower is better here, obviously. > > I also re-checked everything using will-it-scale's llseek1 test[2] which > is basically a microbenchmark of a halfway reasonable syscall. Higher > here is better. > > No Global pages (baseline): 15783951 lseeks/sec > 28 Global pages (this set): 16054688 lseeks/sec > +270737 lseeks/sec (+1.71%) > > So, both the kernel compile and the microbenchmark got measurably faster. Ok, cool, this is much better! Mind re-sending the patch-set against latest -tip so it can be merged? At this point !PCID Intel hardware is not a primary concern, if something bad happens on them with global pages we can quirk global pages off on them in some way, or so. Thanks, Ingo