Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp803808pxy; Fri, 30 Apr 2021 17:26:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoxjdR9YTbF393deXVPHrjSPoq55AvYxsT6V8gMsW3wO0F+2M+WOu/KVbT60qsVIq0fIyG X-Received: by 2002:aa7:d3c2:: with SMTP id o2mr8918636edr.111.1619828790747; Fri, 30 Apr 2021 17:26:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619828790; cv=none; d=google.com; s=arc-20160816; b=a4FnIpSwwzDbkA2Tp9VGOaXXzkUX9p6i6OgjdFoJ+v8LIYS4u8+vndKMTuz+O3kR/A 8+GyCFrJr+W7gHk4uKaSJcAr8kHE1m4sCj42sP0tRh0eCQAOmKm3zrkPUF/1h8jeCwAo brHd7/NHY7IRxigGjq/xzKPipXng3BOcUNiFRIxgHNwuYrPpZa1qtJNixcuhLRA4LOlq FuxD/+WPuI1RGltW6gaM1Xe9R64eqxfREvObofFTA7lOpZ67m0kIwAFypanI5mFSOgWi pfS+B4ct/sKdmjIoURlCEcH9f/9NLJ9U5IFMuOzGRl1/vi2TawmDe2O1Lcc4MMNxYf/5 rbBA== 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=nUs/JERTrW3HUrDL/wVgoAkdrrpfaLfIyhV+eubJz2w=; b=ftOTRnyeyyvlO6Wrd9ab9nMBFlee9NEhx1RZbzBTh3q4/8nqtKSpNghPxjiMeC2hUA rbUe+lu48ouSS5YGIjJlLjNNPXQaq63j+c7mnmFieFze8oSPKnXmL9GrQXHFe7/nPYDi ozbgykXacocVE3yrf6Ver6mS5LYxuPJKTg7JDenxEQP7qD+P1Oow0tD+ldD8vIQEudMH lEVacJXC3u3tHNTJySDjWmYMratJPXRdSo0WxZQTTLDcxIpPb4+hsbHZZf8KqHsfftDz 3P5ItkHbK11gs2dxaclLqRBRnCV7kPCMMRSYkL7QYrcgl9xx4xCb4rsYyxj6rKacdysE UfOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ovfeJotq; 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 dd25si3320546edb.72.2021.04.30.17.26.07; Fri, 30 Apr 2021 17:26:30 -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=ovfeJotq; 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 S231342AbhEAA0F (ORCPT + 99 others); Fri, 30 Apr 2021 20:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbhEAA0E (ORCPT ); Fri, 30 Apr 2021 20:26:04 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FC4EC06174A for ; Fri, 30 Apr 2021 17:25:15 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id j10so19545269lfb.12 for ; Fri, 30 Apr 2021 17:25:15 -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=nUs/JERTrW3HUrDL/wVgoAkdrrpfaLfIyhV+eubJz2w=; b=ovfeJotqKRsfWrPIH6AIxi/XyxgV6ULfCeDnbzlEglpH+gp/04eFGbHmqgeptZTVki +cRjF3KDoiPmfsOylvLmq9YJ+5oVUtZezoVdzJQRGmHbiHOr5+mcn/S9yT+yZkGYkOVQ 40grV2eLwoILokTAGYdmPUS19V78mI8XFkXWyvWBqM4B4PBTl3cxTyy83t9WHv7BFKlT pxsqNAvzWLJ2uqb98WFaSSM6BmSN8Q65f+C6HBk6/XeCYl3vSbJmmrw7AQUu4IXHpub+ acTOcakDRFyCPDtvu50Db9IB+E5EteLRCjViFP8rcIQPLPDYI2o5yK5wT7SNJn1gqJtf LoLg== 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=nUs/JERTrW3HUrDL/wVgoAkdrrpfaLfIyhV+eubJz2w=; b=P+PWY8tWNBBnYnIR0H1cfVdIxhWjzx9wfN+sgrkZfPbC1fhQynrJGFFcliiPfVjUva qwgExKKH6S/rDowlkBQ1x/CEUthX+YZ3xADcZbg09EPhqCwsrIYMICrKZ2HDf0F42SBK W20Jeu4wM4PF6ZK8/Y5ep8QXzeaZOQ6LvB2hQ2DtJ78aefpvik5vi0YHs6zaeHLYJvop PkvhYbzvCqajclgDvGhUwZelbrgCZeNZ2pzKEF6r5LHnrSVQTE05g0qTEgY02j5Gvp+X X5+jx3uGeHGwxdJg1xRNBPuxJwLSl9PztlSOK7GLpECb9JHq3kuLm5zZCg0acOfUGlli COmA== X-Gm-Message-State: AOAM530vPOw9Yb/L2EJnJgt/kUTjlxYvNqlNhpJTTVoqSwDPxDLg+wW+ PIufKQZcvte4dZkMJbDqPJCHn16qYnZzjkqzcVXJEA== X-Received: by 2002:a05:6512:94d:: with SMTP id u13mr4794407lft.368.1619828713748; Fri, 30 Apr 2021 17:25:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nick Desaulniers Date: Fri, 30 Apr 2021 17:25:02 -0700 Message-ID: Subject: Re: Very slow clang kernel config .. To: Linus Torvalds , Masahiro Yamada Cc: Nathan Chancellor , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 30, 2021 at 5:23 PM Nick Desaulniers wrote: > > On Fri, Apr 30, 2021 at 5:19 PM Nick Desaulniers > wrote: > > > > A quick: > > $ perf record -e cycles:pp --call-graph lbr make LLVM=1 LLVM_IAS=1 > > -j72 allmodconfig > > $ perf report --no-children --sort=dso,symbol > > shows: > > 2.35% [unknown] [k] 0xffffffffabc00fc7 > > + 2.29% libc-2.31.so [.] _int_malloc > > 1.24% libc-2.31.so [.] _int_free > > + 1.23% ld-2.31.so [.] do_lookup_x > > ^ bfd > > + 0.63% ld-2.31.so [.] _dl_lookup_symbol_x > > ^ bfd Ah, no, sorry, these are the runtime link editor/loader. So probably spending quite some time resolving symbols in large binaries. -- Thanks, ~Nick Desaulniers