Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp633025imm; Sat, 1 Sep 2018 14:41:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZT1XIAFJKJU1VfTpVxT8hN2++YFSiG5HMwwt/weg12j9jULWf8Y1ZOG8N/tp1uM0F/aUBe X-Received: by 2002:a62:4e56:: with SMTP id c83-v6mr22522357pfb.240.1535838066644; Sat, 01 Sep 2018 14:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535838066; cv=none; d=google.com; s=arc-20160816; b=EVTAVq0EBr7NAIf8AV9m1UVUF4HJorgGj+R9uLs8P5N+MN/FA8E8+q2rdLVWXq6EYU 8DW0tL8y5ybIMWOdl94Pwuz8ATfdKxxCr9yxsDjfaORzTz8pQ9ZFAUuBcbjLRcySFtzF ZV+HttSImLS7n4fCuRFhHgIkz96SfOjIC15Dk8sEbUJPCZ79o5p3S/4cYDFItDI1Kbn4 UDTQemcMHkQk+yAZhi3Ix1xIi6SrOf/873O/lepgB5F8Xh8VbZIE8+Vd+MY/41bMF8TP HWO37Vk7p5nDUxTClaOBS1HTFFxxfVRzigDw9RCVAgHZjOGrU0oUj7X4Hl8Buz06a5rs s1ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=GkTMCcglEBhcl1YvI/gHbFFZsQjLvmpgheBH3+VO98w=; b=z1DaGaV+EevPuF6emQH8FSZMlgGD1wKEU3ezzvURawsBunPPazjRPHi5tMv5afcO6V CDkqCIFFv7FAg6G1eZ3TogVT4/UrIu/jW6zBKGqLtmpyfVNKd+TVxWnvxCakGRMWJkzg 7WzQkFQcoCR8APabsQYcoM6FozcyrTqn4jIlbDaZXJKm+l0vR7z4BvyYA0uJPxrRQecH Tks53t89+kxfJMyjl3+HIV9aB/zzAI2zWPrI6o+jJUR9SD3pz6xgGf5nFL17XQjll7J1 dv9BMcMgElD0dt9vIo9G4bzPiz7B9lNg0wd43ZPYk/3UK69ifFhEN4HeU8Wx/Jd+jCe1 t3iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QNPGUg40; 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 z4-v6si11919929pgp.580.2018.09.01.14.40.41; Sat, 01 Sep 2018 14:41: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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QNPGUg40; 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 S1727234AbeIBBwN (ORCPT + 99 others); Sat, 1 Sep 2018 21:52:13 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:32779 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbeIBBwN (ORCPT ); Sat, 1 Sep 2018 21:52:13 -0400 Received: by mail-it0-f68.google.com with SMTP id j198-v6so8022517ita.0 for ; Sat, 01 Sep 2018 14:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GkTMCcglEBhcl1YvI/gHbFFZsQjLvmpgheBH3+VO98w=; b=QNPGUg40dTUDloTXgGYbuFXGEImS2PfyUQ+dSwZU2isYyTrU5TIH5RB0K14im5ekrU +Nrk26aG/nRQAUXwFfdrvjJSvnHJdg38QKs7C90kjWpThzuMA2oyRZOfS/HNgmg4qoFM MXQsnOaH1pcClCEsuSlFlMRYrpmB0iByHAPOM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GkTMCcglEBhcl1YvI/gHbFFZsQjLvmpgheBH3+VO98w=; b=l1aEObMzAwHlTfQCWpnq0mHM48e6p/rjMelyEmiKIaEts2LtHJYj/VrGYo4kFExMUw q1mTsI9X6c6yte2A4jWV4HXxhzvqTiiPBIvk9sQ0uyJGNoOCn0Px+Rgt0hD1tYa3Kx/1 0JLlIXNaAZ/ZdUJyQzDm/fX878QJYHl0GKYVD9mXGPK6BzGp4trlBNeURImMzSmZC15t rdQbJiHH4AXjoFIfMpn03Aua3Djo7o++PQUujZahAsPVlVABr2hmP/i1cmvgHRNyS/fW DJWyxllQELk9k+OiOpFE1VjKOHPn8HMOLz8Mc5bd/9iZp3FzhZ8KsE+v+i4TGIu4558+ wrmA== X-Gm-Message-State: APzg51DgEAdV7mra7TNODRIb5LxO1rvaGFB1tKHWN9GcoD8nkfxOEoF7 G14tq53YNMVp+nm2XQfew+4f3RZubmlDZUWuwLk= X-Received: by 2002:a02:702:: with SMTP id f2-v6mr16499858jaf.70.1535837934711; Sat, 01 Sep 2018 14:38:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Sat, 1 Sep 2018 14:38:43 -0700 Message-ID: Subject: Re: Redoing eXclusive Page Frame Ownership (XPFO) with isolated CPUs in mind (for KVM to isolate its guests per CPU) To: jsteckli@amazon.de Cc: David Woodhouse , Konrad Rzeszutek Wilk , juerg.haefliger@hpe.com, deepa.srinivasan@oracle.com, Jim Mattson , Andrew Cooper , Linux Kernel Mailing List , Boris Ostrovsky , linux-mm , Thomas Gleixner , joao.m.martins@oracle.com, pradeep.vincent@oracle.com, Andi Kleen , Khalid Aziz , kanth.ghatraju@oracle.com, Liran Alon , Kees Cook , Kernel Hardening , chris.hyser@oracle.com, Tyler Hicks , John Haxby , Jon Masters Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 31, 2018 at 12:45 AM Julian Stecklina wrote: > > I've been spending some cycles on the XPFO patch set this week. For the > patch set as it was posted for v4.13, the performance overhead of > compiling a Linux kernel is ~40% on x86_64[1]. The overhead comes almost > completely from TLB flushing. If we can live with stale TLB entries > allowing temporary access (which I think is reasonable), we can remove > all TLB flushing (on x86). This reduces the overhead to 2-3% for > kernel compile. I have to say, even 2-3% for a kernel compile sounds absolutely horrendous. Kernel bullds are 90% user space at least for me, so a 2-3% slowdown from a kernel is not some small unnoticeable thing. Linus