Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1759483pxv; Fri, 2 Jul 2021 11:26:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP74BpUf6DESjQAKPUIUrSneuq4J/GTHX75Np0a3MIf6hmVCwK6isIqi6S1zDUDj+Heb9O X-Received: by 2002:aa7:ccca:: with SMTP id y10mr1058508edt.47.1625250395311; Fri, 02 Jul 2021 11:26:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625250395; cv=none; d=google.com; s=arc-20160816; b=cFCTXmvjw+7wd5RM8G/Ck8sBAPJmDcTZfNvr9bk+YWC6ZZj2ke4Bprxb7iy764nUXi Yd+lOotbpJ6HwFonGS1ApYpuo1OZNu6BTcHn4zkbJzGzbP3V50O0GF8w0nalyTI2ONl9 BE8UzSr5GxgyTNmFEW9V1jBM9DmHubiLvmfk+sWIxX+3pmIl5gMvc4HAwREbHrTkTsTD o6egLAdSOzV5fu2GiW1MgtePHVyhmxe0ALWkUyetIlbqr/F7xtO6jZ9o43b2gv129QgQ 4ZOrFTVKIQtqwQqvLKti6lccypS79Haq4194zyLoGCj6+27InVGXWvH0UHljM9NYB9uG 0weA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=edd9L3CEPcJHV5zapgkcsAIDFKhBznCgAd4DR45iEkA=; b=dEYSbpbXRKn0I3a14hxM0bzqTCpL4vmIGfGwC5Z5uzoGb/KQxfkkuv9zPo1bzxHFHw owb0rf+ZVFvuQfD7hDQ4bhcjbiarc4YLqUUJ8JqKc7s5tqjiEORRfz33G/YZerPGgB2o cV4eE40Gn1MmQ2Zfeh1ZA1ZLTbwLmcDPqOUC3I2RoNsC6U4nT2jTWHaj++IBj0et2hBv /Yo331MCCeQ2jXB1lkKPWKpynAukw9EZhn4vHZrYIUXc0LAkc1mPV4y727qaPRcZzNhW 5m3+MtgwJukQevIxtbnM0nPPIwy+mDZ1NPeCJz71z9zYGEGrXmhmSYm12GsIcWzmhsTg 4Efw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Gn+Ulz0H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt19si514774ejc.752.2021.07.02.11.26.08; Fri, 02 Jul 2021 11:26:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Gn+Ulz0H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229676AbhGBR30 (ORCPT + 99 others); Fri, 2 Jul 2021 13:29:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbhGBR30 (ORCPT ); Fri, 2 Jul 2021 13:29:26 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA16DC061762 for ; Fri, 2 Jul 2021 10:26:53 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id t17so19481261lfq.0 for ; Fri, 02 Jul 2021 10:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=edd9L3CEPcJHV5zapgkcsAIDFKhBznCgAd4DR45iEkA=; b=Gn+Ulz0H+dsihLGXHosjw4LgAGNp/flTQvg1QBhXBxVUKf9fkGpRmpOdOHN6e0M/nh 6UyQod6JG4Cf0/TOTpVzoZWCzK7ZsiZErIVEZKq4guI0UuJ4hstjhraYbyMlvbMlsjkY DCwsldR0SQfgZGIr3zMpfzjLcr1HNaaX2TPG/8s1lIUC0lTe7BrrsbLo9ikpRLNlOEtt B2eST6v9ZAcInXdCub2D0NcZvt4MsEvfnNzt3lYgL1zRn6dM3JqpLL1gH/5obsaeYIfJ RqU/X9/7zIp3cwxXOv0ldG0AcDMRSjotbwCkYExRMhOuv+BfT8zvuagxMjNgI26aRyGq AKng== 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=edd9L3CEPcJHV5zapgkcsAIDFKhBznCgAd4DR45iEkA=; b=qOxTynHvWtlttGjm0Ty+mB9VU6dYDCSi/H31eBISSbM3NVU5ZCh4iMxy5GYCbYoufP Dy8Dj1Ytbp+IQey+U3+qsVB9NtHyc/frjTHg8dAGRSZGxvICZ0oYqwrtyyVMHZ5UWn6f m3GfhY0hDm8Xtr6nr4NJ7on38XEaNF4XVi28azgiKHthiOquK812SRgyRj+RbgHfl3Kb OJHzJ+V1KCD8qVXW8THmaXvV+NHpd7MlYZYLJVG6fkC6N8l6TzYReE31RgkMGUwlz919 q/JrvVDPyPkPCNgFyyOstD/uVPFrM0WzO6swoXRCmJD2OGu7pcELve69kkj02ihq3ae7 o3Vg== X-Gm-Message-State: AOAM532wpWe5LfjCABE7Fw3kI74D2OKUG/syGxY6+Ts0q8HeEwxfTUB9 X3tgNFgyvDucqAFe7dDgT+vWq6aZaILqW/ShdfWpDg== X-Received: by 2002:a05:6512:3e24:: with SMTP id i36mr520821lfv.368.1625246811859; Fri, 02 Jul 2021 10:26:51 -0700 (PDT) MIME-Version: 1.0 References: <202106281231.E99B92BB13@keescook> <202106291311.20AB10D04@keescook> In-Reply-To: From: Nick Desaulniers Date: Fri, 2 Jul 2021 10:26:40 -0700 Message-ID: Subject: Re: [GIT PULL] Clang feature updates for v5.14-rc1 To: Peter Zijlstra Cc: Bill Wendling , Linus Torvalds , Kees Cook , Linux Kernel Mailing List , Bill Wendling , Catalin Marinas , clang-built-linux , Fangrui Song , Heiko Carstens , Jarmo Tiitto , Lukas Bulwahn , Mark Rutland , Masahiro Yamada , Miguel Ojeda , Nathan Chancellor , Peter Oberparleiter , Sami Tolvanen , Will Deacon Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 2, 2021 at 5:57 AM Peter Zijlstra wrote: > > On Fri, Jul 02, 2021 at 05:46:46AM -0700, Bill Wendling wrote: > > On Tue, Jun 29, 2021 at 2:04 PM Linus Torvalds > > wrote: > > > > > > On Tue, Jun 29, 2021 at 1:44 PM Kees Cook wrote: > > > > > > > > > > And it causes the kernel to be bigger and run slower. > > > > > > > > Right -- that's expected. It's not designed to be the final kernel > > > > someone uses. :) > > > > > > Well, from what I've seen, you actually want to run real loads in > > > production environments for PGO to actually be anything but a bogus > > > "performance benchmarks only" kind of thing. > > > > > The reason we use PGO in this way is because we _cannot_ release a > > kernel into production that hasn't had PGO applied to it. The > > performance of a non-PGO'ed kernel is a non-starter for rollout. We > > try our best to replicate this environment for the benchmarks, which > > is the only sane way to do this. I can't imagine that we're the only > > ones who run up against this chicken-and-egg problem. > > > > For why we don't use sampling, PGO gives a better performance boost > > from an instrumented kernel rather than a sampled profile. I'll work > > on getting statistics to show this. > > I've asked this before; *what* is missing from LBR samples that's > reponsible for the performance gap? Are we able to collect LBR samples from __init code? I can imagine trying to launch perf from init/pid 1, but I suspect at that point it's way too late. Increasingly, boot times of hosts (and virtualized guests) are becoming important to us, both in the datacenters and on mobile. -- Thanks, ~Nick Desaulniers