Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9772189rwd; Wed, 21 Jun 2023 11:37:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HweyfTgS4pavVT1xGTJtQIv0lxjc4gfrMiSDmAiUf0425VgFqtHZr0QZM4zHhlBbgj7XU X-Received: by 2002:a05:6a20:549e:b0:104:35ec:c25c with SMTP id i30-20020a056a20549e00b0010435ecc25cmr7122479pzk.41.1687372631685; Wed, 21 Jun 2023 11:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687372631; cv=none; d=google.com; s=arc-20160816; b=ZyQNkA39N5uSFfsewJLnks6VemLUQJ2yKiMvgjcAy2ItbkACAwR7qggtES1aGOdCJA 5fqUwV21yEJbWxyqs8XicGIKGAz/+Vp7o6d6TXGuTnDAsA8A9sMeE1VXhZhX1EUW8KLy ffO0/3btcgtuZvguC22SvLF+buVddDmA7fO7k44HTH58TyOXD58jnpSK2tfnVRYPJGpO UDXosupG42s+DsHHhhcK28iKEy9eYw9/Z1xkxeSupiVG9btmqFTYw/GQf6//65ApWuVv haG7sHL4ZH6ojDRPa4otq3awxjxaAKXHWd6JGq2BpfzfvZCEugwlXkpCabsavj9bW9KI 7hXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=2N+RflCXP1PzqPiaKt451iYwf1h+9b0LuKAtNyBxB34=; b=OvARR3HYG0iEbyF3hz5kOUsiXAXAjJP4n/TB5sVainDBsgIC3LYyCoiCLu12q2GWHh WKfNu5ty4zGVXBLE3j5T4EE3sYszgMHT/5b1ShhDt1lzVylRdIj479oEmNfU6orJmark ilpew9eq9Li9g9arwKkhlUR9YhaebKgJRDW36eCwTPKyxBh1CFxBO1rMxQKKM/Q8ml0e 1Bx0k4dzOCSii+gACBaJc5SBENaS5jwtucd0aj2PoHpKLBIha/JULD3LvQ3GR3XEPuyp toJGiXgx/itXn0dttb6TryXNYH/POkg4VXypw5RyDx/uRszi9ajrZTmMoGKD6iRdeSzc eYeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=vZJh1OHf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l17-20020a637011000000b005533ded45c5si5068759pgc.17.2023.06.21.11.36.58; Wed, 21 Jun 2023 11:37:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20221208.gappssmtp.com header.s=20221208 header.b=vZJh1OHf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229733AbjFUST6 (ORCPT + 99 others); Wed, 21 Jun 2023 14:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbjFUSTx (ORCPT ); Wed, 21 Jun 2023 14:19:53 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C83410D for ; Wed, 21 Jun 2023 11:19:33 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1b520c77de0so30893945ad.0 for ; Wed, 21 Jun 2023 11:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20221208.gappssmtp.com; s=20221208; t=1687371572; x=1689963572; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=2N+RflCXP1PzqPiaKt451iYwf1h+9b0LuKAtNyBxB34=; b=vZJh1OHfFxruZ2w3nH0qXkjMYYeCkv5Ua0zyfpVuCpMtXRcvouQouNPsAdKWRXXMry zrn8M/JnD32mu7zYsKdevgjmGMGXzb2lX5l0oAnBUm/LsUWwpDicYlkVholIJaspBMsU c+q1kszWrccgcS/g9a56qdy9GEW0T9LRlDyzZYFWjLqVv2IS+qcUW9ETjUhhNPaYI9QF YxBNbBdJlEeGSIcfkdKq4oDUITp8UBaZdOui11Ubpm9V7h+E+4TFC1Ge8XKoYubJjSab X67Dz8Wo9qk5i0/fhx9xWwI4WmhH8MsGD1R1hjNTmVHT8NQKlYI5wJZDrrrY6glsnvbm HClA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687371572; x=1689963572; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2N+RflCXP1PzqPiaKt451iYwf1h+9b0LuKAtNyBxB34=; b=bg8urD3akoTKBZSBim3e6Zh/+Kdc2F3mosw5rebg0fPaedPnu+s5vsrQfGTMPdw37s SiNQ0N+gzUcNWxII97KwQDO3840FlmQGPBak44DAAE7POxzNLlg19N2TtlWZckj7ePEi XYYBDhRE6RLgYvm7AC9W9BMFSTOI25MWlCDcanawH/ZlvsC1i5Y+dSRaC/TF2L+DAtLi gJ/j7RfxeQLhjx04y17iiq/S8Jhxt801U0335eTQ//xGTwb1D6jDsAQ/l4iLPqGYUPqQ GacnYr4ihqwOLrlnMebgShjAFDFPDG6DGP18SJx+7khRvi1c107eNQ2zUsWsGYLGu9EG WiEg== X-Gm-Message-State: AC+VfDyC5ZiW5zVVWZu4OWZhqw86ebPABKD1VMVEoUD07Xb5G3VWMGzr iI5N5T+hdZdgpa1whHji2J1GQA== X-Received: by 2002:a17:902:d48f:b0:1af:ea40:34e6 with SMTP id c15-20020a170902d48f00b001afea4034e6mr7449439plg.60.1687371572484; Wed, 21 Jun 2023 11:19:32 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id jw9-20020a170903278900b001b50f35aff1sm3805118plb.140.2023.06.21.11.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 11:19:31 -0700 (PDT) Date: Wed, 21 Jun 2023 11:19:31 -0700 (PDT) X-Google-Original-Date: Wed, 21 Jun 2023 11:18:52 PDT (-0700) Subject: Re: [PATCH v2 0/4] riscv: enable HAVE_LD_DEAD_CODE_DATA_ELIMINATION In-Reply-To: <87wmzwn1po.fsf@all.your.base.are.belong.to.us> CC: Conor Dooley , jszhang@kernel.org, llvm@lists.linux.dev, Paul Walmsley , aou@eecs.berkeley.edu, Arnd Bergmann , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org From: Palmer Dabbelt To: bjorn@kernel.org, ndesaulniers@google.com, nathan@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Jun 2023 10:51:15 PDT (-0700), bjorn@kernel.org wrote: > Conor Dooley writes: > > [...] > >>> So I'm no longer actually sure there's a hang, just something slow. >>> That's even more of a grey area, but I think it's sane to call a 1-hour >>> link time a regression -- unless it's expected that this is just very >>> slow to link? >> >> I dunno, if it was only a thing for allyesconfig, then whatever - but >> it's gonna significantly increase build times for any large kernels if LLD >> is this much slower than LD. Regression in my book. >> >> I'm gonna go and experiment with mixed toolchain builds, I'll report >> back.. > > I took palmer/for-next (1bd2963b2175 ("Merge patch series "riscv: enable > HAVE_LD_DEAD_CODE_DATA_ELIMINATION"")) for a tuxmake build with llvm-16: > > | ~/src/tuxmake/run -v --wrapper ccache --target-arch riscv \ > | --toolchain=llvm-16 --runtime docker --directory . -k \ > | allyesconfig > > Took forever, but passed after 2.5h. Thanks. I just re-ran mine 17/trunk LLD under time (rather that just checking top sometimes), it's at 1.5h but even that seems quite long. I guess this is sort of up to the LLVM folks: if it's expected that DCE takes a very long time to link then I'm not opposed to allowing it, but if this is probably a bug in LLD then it seems best to turn it off until we sort things out over there. I think maybe Nick or Nathan is the best bet to know? > CONFIG_CC_VERSION_TEXT="Debian clang version 16.0.6 (++20230610113307+7cbf1a259152-1~exp1~20230610233402.106)" > > > Björn