From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 8D2D43858D1E for ; Sat, 5 Aug 2023 00:38:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8D2D43858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org References: <87bkfta1mf.fsf@redhat.com> <87350ytwbk.fsf@Rainer.invalid> User-agent: mu4e 1.10.4; emacs 30.0.50 From: Sam James To: ASSI Cc: binutils@sourceware.org Subject: Re: GNU Binutils 2.41 release Date: Sat, 05 Aug 2023 01:38:06 +0100 Organization: Gentoo In-reply-to: <87350ytwbk.fsf@Rainer.invalid> Message-ID: <87sf8y8gsf.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: ASSI writes: > Nick Clifton via Binutils writes: >> We are pleased to announce that version 2.41 of the GNU Binutils project >> sources have been released and are now available for download at: > [=E2=80=A6] > > I see massive performance degradation in ld on Cygwin when linking > libraries or executables with a large number of objects. > > For example compiling protobuf-21.12: > > binutils-2.39: 1420.820u 143.747s 3:20.37 780.8% 0+0k 0+0io 4153107= 3pf+0w > binutils-2.40: 1429.088u 140.548s 3:18.48 790.8% 0+0k 0+0io 4161563= 7pf+0w > binutils-2.41: 1496.555u 524.457s 10:07.31 332.7% 0+0k 0+0io 4157011= 2pf+0w > > The linking step alone: > > binutils-2.39: 14.212u 2.614s 0:20.54 81.8% 0+0k 0+0io 1909884= pf+0w > binutils-2.40: 13.371u 0.839s 0:20.46 69.4% 0+0k 0+0io 1910885= pf+0w > binutils-2.41: 85.507u 373.960s 7:55.39 96.6% 0+0k 0+0io 1905021= pf+0w > > I have another much larger application where the linking went from > seconds to over an hour. > > The fact that a lot of that extra time is spent in system might provide > a clue for finding the culprit. BUt there's extra time in user as well > and it seems to scale superlinearly with the number of objects. It's > possible that objdump performance has also suffered, I've not yet > checked this in detail. > Please file a bug with the details so we can discuss it there and collect some reproducers. > > Regards, > Achim.