Received: by 10.213.65.68 with SMTP id h4csp977794imn; Wed, 28 Mar 2018 17:19:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx48PXYTkHIHGkJNhZet/sjvO75IeSxf/Z/Z/WgcxX1R2YDfcTunwNlEWhtYvKsZVhm604XSy X-Received: by 10.99.163.67 with SMTP id v3mr3846813pgn.298.1522282746105; Wed, 28 Mar 2018 17:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522282746; cv=none; d=google.com; s=arc-20160816; b=lASxnM4bFt2+9EMG66+P8S5degYnxRnwWF4+LKXTLP3/iCf00tPMhNd5gBl8qaefGW ughwBtly4DcTkL7ZvkGCGSwR4pwZwJTY6ZbLRHsevYfTPYTn8kg5lDmtGQoFyJi9reN+ Gas/LPshRk1eaOlAGNUG2AbF1nfrk75BgxNYnsoKCblUVjOuT8jMaZMOAaARzJL2b8Fj Re4ElXbE1z5MUu2ONVANJ3GXGd+L1jbx7QQ6b1wQWoZMAruIQcxD1m+1q4N+z2Qeq5qF tF5RNadeg2FCgbK53k3Xhu8uCIVtB5zsvKr+SwAeStRDNJRXIeMSUzHRZy9lo48vWOh9 FV4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=JsE3QhvLD1tk/peJ0TYG6b6KDjs4S3DavlTVCt1oSTA=; b=UoiJr82bCvM/gNCJpDcpYM3sd5vsjtDPX2MFaApEP7f339ob4THIVnGpSTQvPFE78w OGDcR0KPrbMf2LlAfnE0sEoECcAH4UA6lgnnlRdBofkNOzlLiNaIn73iqS6JuSaAGlhR vCKmz5aMh6E65eTT03z3y/RndL2J2VqlaVGEYP3Vvf1Vj+ye6ZQWsMLZpe6KkReMZL/z uBFCWSQAyxLdYxP/ZmblRfJTmjBpU6fv23kpbrLi6oSi52zkfiK706IfVHBR+uFCa9yH nHzussIJb3IU/sgFWYJvuZaahX3qwyEYnXN8I6Jcy4sXjZykkIIgwOmnh0YE0nbjN9yr d60w== ARC-Authentication-Results: i=1; mx.google.com; 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 j8-v6si5087612pli.9.2018.03.28.17.18.51; Wed, 28 Mar 2018 17:19:06 -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; 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 S1750979AbeC2AR7 (ORCPT + 99 others); Wed, 28 Mar 2018 20:17:59 -0400 Received: from mga03.intel.com ([134.134.136.65]:13538 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbeC2AR6 (ORCPT ); Wed, 28 Mar 2018 20:17:58 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2018 17:17:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,374,1517904000"; d="scan'208";a="212171952" Received: from ray.jf.intel.com (HELO [10.7.201.137]) ([10.7.201.137]) by orsmga005.jf.intel.com with ESMTP; 28 Mar 2018 17:17:57 -0700 Subject: Re: [PATCH 00/11] Use global pages with PTI To: Ingo Molnar , Thomas Gleixner References: <20180323174447.55F35636@viggo.jf.intel.com> <20180327200719.lvdomez6hszpmo4s@gmail.com> Cc: Linus Torvalds , Linux Kernel Mailing List , linux-mm , Andrea Arcangeli , Andrew Lutomirski , Kees Cook , Hugh Dickins , =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= , the arch/x86 maintainers , namit@vmware.com From: Dave Hansen Message-ID: <0d6ea030-ec3b-d649-bad7-89ff54094e25@linux.intel.com> Date: Wed, 28 Mar 2018 17:17:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180327200719.lvdomez6hszpmo4s@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 1. https://ark.intel.com/products/97933/Intel-Atom-Processor-C3955-16M-Cache-up-to-2_40-GHz 2. https://github.com/antonblanchard/will-it-scale/blob/master/tests/lseek1.c