Received: by 10.213.65.68 with SMTP id h4csp270486imn; Fri, 30 Mar 2018 05:19:12 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+S2z3yPcnQwCXfWnNpoZCRyIR+Da6UKU+xSRlIcBs85Im+99lNcc1h8FnchywsBBo6UErl X-Received: by 2002:a17:902:407:: with SMTP id 7-v6mr12677334ple.47.1522412352264; Fri, 30 Mar 2018 05:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522412352; cv=none; d=google.com; s=arc-20160816; b=g8lIQDiaIneFqjrm0CMKHQAV64IH6zyKDhLBaCNC1HFcJIvDPQZO8NALeIZLhSdjpR RHDpz4ZIw1wal+MnN0dcjO+f6o+TcfWT/LHTa4yXJ7vh+0OrV0/dFSImqqqHvCGX6ss8 889TZXjwEqvvcahQfhGIc4wfIynHtRCKWD+4EyMQxhLY2zhGJDZzUlKMF4cbq3jA+PJX vc4j8zd08/ZuILaEX77I2EPlqPCc3xnj/5V+3GyIw+zR0JUZWAPHnRMxRZtko3g0KXHw H8/Y1MH2bbQAacrAEO+VUCQoNPyTIeYHcleRYRkbjcjYeRqFL+2MA3MlBBBp/9YqVnHK IgOw== 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=s0vPp+roW3T7x1cTrjZG7I+sZi46RC4mJtiY4mqRoTw=; b=oC5Jws6tEkoSOS2kIsvDkQb4Z6E6vi0yPtcmrJzQ+WQ/Ku4vqisSgS98MsfUmWqoiz YWaftEeVSF9wTgo0m1iRQQp9Im0HgE1uLh2/gHRLS/rrJ5Lhpt9gyvmjwmeWlfgzZsAq ZbpRGsnXb2+EQtnho9MzvNiI7+xF/qaYpUZvMrISIvya1jDqFYVvc/CphjNgpPG5++Rd PSBOIbxN+Qw0nf5HCw7s5XowpQOeOL3JJF+zEWmrfmIjEcqQdKEAdkVuiGd2XI0CoILZ xCVVBJ6ZVaMgHRcGv7ax0a+aDC4lCMsoWfyeHwCoYbV2q/BzVP/PVpKUb3SGMyPni6Vs I6sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FKfu8sbY; 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 o12-v6si8129119plg.650.2018.03.30.05.18.57; Fri, 30 Mar 2018 05:19:12 -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=FKfu8sbY; 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 S1751973AbeC3MRb (ORCPT + 99 others); Fri, 30 Mar 2018 08:17:31 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:56191 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbeC3MR3 (ORCPT ); Fri, 30 Mar 2018 08:17:29 -0400 Received: by mail-wm0-f43.google.com with SMTP id b127so14575417wmf.5 for ; Fri, 30 Mar 2018 05:17:29 -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=s0vPp+roW3T7x1cTrjZG7I+sZi46RC4mJtiY4mqRoTw=; b=FKfu8sbYwYmU8Q8C25/48ovh6mVS7yPKUTekowen26KpYvFx3JAuJNX4rikKEJlpYi SBnwYevtgwhLRK+Zo2EgHzspXz4/BQgJLQMSgSdLRMnBaqDCTR0TKf7ZLlrJonDmdMfD OJswVOpZcuboImohiFGv5P0GlgwIuKcZNkDJ70SwXvaQm9Qv5jWKeW4d/ZWA2Cv4impS lytyVb0OT7zVlIVGqqyNpv/9pzjea7H4tzxIZAf3NxfsmvMwhPeSrx2HOSmbyLMOKcQB pOKmq4oYJQlME4xS3m5/SN/D3L7/qzzd0Aiy5xEpt4HrVpImetK4oCaqdzVZ4L3HeIMn Jz2A== 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=s0vPp+roW3T7x1cTrjZG7I+sZi46RC4mJtiY4mqRoTw=; b=cpC3CEiQH9dk0ZdeYri7P/1yBiAEjJ5jqaPcF38cyhZ4q0v/wxd6ErtNIGUFhUIAYv eUogypLZhylr+rI4NpHJ0M3VpXjOUkldktrNjzpEj/3usFzzQ9CU8pCbOT3eTK1oHAeW ddW1eLMU6dX+jUufRP1vQtu0hUApM0bFwrJ0X52bEEAuzHc5xPT1NAjZw+h15Zq54Q8j yL7Uu5KgaeUAoDOTwjIRjqT3LkKIQI9ptTxHTlbpd5suKW/E6xJSlCzwIz94DdOJvloJ dv3ceLWl3xt+pFlCKWSPFb01hhVrtp112JBFpeyabtNUd9LDXFOMB5paTQlY1LFv4rGq JR2g== X-Gm-Message-State: AElRT7GPXtgfPBveAZwK1c3eO7mQDSIsIjL1CKhkUZ1mD4fGVmfvEadi P2/w8Kmn6pPHDaNLeYndREth1A== X-Received: by 10.28.234.26 with SMTP id i26mr904623wmh.104.1522412248571; Fri, 30 Mar 2018 05:17:28 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id l18sm2793516wmh.24.2018.03.30.05.17.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Mar 2018 05:17:27 -0700 (PDT) Date: Fri, 30 Mar 2018 14:17:25 +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: <20180330121725.zcklh36ulg7crydw@gmail.com> References: <20180323174447.55F35636@viggo.jf.intel.com> <20180327200719.lvdomez6hszpmo4s@gmail.com> <0d6ea030-ec3b-d649-bad7-89ff54094e25@linux.intel.com> <20180330120920.btobga44wqytlkoe@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180330120920.btobga44wqytlkoe@gmail.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 * Ingo Molnar wrote: > > 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. BTW., the expectation on !PCID Intel hardware would be for global pages to help even more than the 0.6% and 1.7% you measured on PCID hardware: PCID already _reduces_ the cost of TLB flushes - so if there's not even PCID then global pages should help even more. In theory at least. Would still be nice to measure it. Thanks, Ingo