From nobody Sun Dec 07 18:31:09 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dPYbX3q7Rz6KpFj for ; Sun, 07 Dec 2025 18:31:20 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dPYbX1HVPz3FRf for ; Sun, 07 Dec 2025 18:31:20 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-b7636c96b9aso514155366b.2 for ; Sun, 07 Dec 2025 10:31:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765132273; x=1765737073; darn=freebsd.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:from:to:cc:subject:date :message-id:reply-to; bh=mfpKrsA9wty55L4GqY4iLv0Dh7sQaCsUMmqajBME1Z4=; b=T2noiQNWoV9BA/LsUoTz7fGYenrZ6kZ8AgcIBU+qudwbTKpnMjD0iZqkxUCuvcIHnB dOrDfSWIfox7kDX62r7bc/WG1O37l4a+5mxiMMOZIh9DIvRQRDKa0E6C9E7sDo/mj/Vt DeCnI5iMr0zrDf26X2PzZESLQhD9xIuQ1bAAfKPjiJxx+kz0xbntLE/iTcT/pL4CuPsg CVUT6mgQHty4P7bZPRgGgyh4VDS728Ye/8CzAtDrQvTkPIN+D3NPVJ30uV2lrsCgBD1A 8MH3Mo95wlTzQL4QKazdLHheDIi3RLfqbMB/0/CyqDBcPfF1laVlYfW4vGAz+qsQdSSE VYSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765132273; x=1765737073; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:date:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=mfpKrsA9wty55L4GqY4iLv0Dh7sQaCsUMmqajBME1Z4=; b=Pewa/iUpNoJ8mQIhG9dJWiuJX01lzfhaYY2lYVUXvhJv6lCwVFhh9cikiAkCpqwR/l AUR6tO0XHaoivpfLCGevu/zppF3MAMeqgr44KEZHTechOSV8u+GwbvuaTDCDq9VP3CQe yuj0eL/K53jbqb08Mh+yc1EhLfNNKNFziqUd6DJ0fwSjaCymUmyEVI4uP3BOwuFqIvUL OO9DiPP9aUv//LyYQ8AJzUdYx48rwyT0Uz0A+V4mnAvPsKGsXIIvm8kMPx30EDxq9RQk 2kKiVTaJTZlq46WWt3ECoNb/2NQYKPTZ/RHd/GhrRTKUrTQmLcAU5+HriCDwxQQXHzGu jamQ== X-Forwarded-Encrypted: i=1; AJvYcCWU4VMhnyviUcwmWcoTGTfh1oR4HAjyZba0QAdOwrbT7n47ErDGe7vB6bu6wt0olVGrG5R16s3ZIQ5/FSqC0q4=@freebsd.org X-Gm-Message-State: AOJu0Ywui9LgNyjAP2A8OOE6swNPn12bmBufzExUn1Sop8Mq6UdzEMO6 zPTGMSH6+NKPjdNQu/jb8+Wuw3iJhkxYImQcayGulNb+0/AMrAcu+wxd X-Gm-Gg: ASbGnctk9rnsW7M0ce4YYKVydk0GF0FoHFy+DAdwikBHDy1wfFdQF08JxMip4qNdXr+ 5UV9fknYpKDaQaQeTtwWI03E7OyTFFgJpLVR3jWiyso5zuYFVsgmH4eWOUOHtPJvOIaPEOy8brE SPEhnjqU1YD6bOsx6mQaLta/TJoIwDlsiJll3A9zy560Oi5Tg9XVI/+ghtldbnMg1GHEkHhDATV YOn6tlnyHofFxOR07+rHXhSakZln5xqrH+KVBMTmEXbDP5pRI8njEKWzzCuq3vAExb1/RVNlrZt w3H6lw0nF5N2qBWaFcU6qsMxTF8x7Gmm7TGTAQQ3TWDd6bDIOl7UWNXSvmx0MTQZ8vTnzYBNqCi BAOemhyMwskrr91ysCwiMpFmDfViMZMZSZshCtbaxW05EeGqquRrLW0b5y+HBGvAfJRbVPHk3pC P1ALXJ6xBubaDcaQ== X-Google-Smtp-Source: AGHT+IG9uK4QTwSb5Tb87FiAHZbkkTmA/XGB7WRUfUH/3JdtaZp5JXIKkqQU/HMpM42uD0EHiUTKPQ== X-Received: by 2002:a17:906:4fcd:b0:b73:70db:49ab with SMTP id a640c23a62f3a-b7a244e41e7mr450338466b.35.1765132272386; Sun, 07 Dec 2025 10:31:12 -0800 (PST) Received: from rimwks.local ([2001:470:1f1b:4dc:f489:3de4:6515:f056]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b79f445967fsm902091466b.10.2025.12.07.10.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Dec 2025 10:31:11 -0800 (PST) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Sun, 7 Dec 2025 20:31:09 +0200 To: Mateusz Guzik Cc: Konstantin Belousov , FreeBSD Current , emaste@freebsd.org Subject: Re: performance regressions in 15.0 Message-ID: <20251207203109.6d58b901@rimwks.local> In-Reply-To: References: <20251206222638.44edcd5c@rimwks.local> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.51; amd64-portbld-freebsd14.3) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dPYbX1HVPz3FRf On Sun, 7 Dec 2025 11:07:48 +0100 Mateusz Guzik wrote: > > > > 15.0: > > > > gmake -s -j 8 19.90s user 3.02s system 773% cpu 2.96s (2.963) > > > > total gmake -s -j 8 19.90s user 3.18s system 774% cpu 2.98s > > > > (2.979) total gmake -s -j 8 20.24s user 2.90s system 770% cpu > > > > 3.00s (3.005) total gmake -s -j 8 19.92s user 3.25s system > > > > 771% cpu 3.00s (3.003) total gmake -s -j 8 20.25s user 2.95s > > > > system 772% cpu 3.01s (3.006) total > > > But 15.0 is definitely dynamically linked. > > > > > > > It was super bad change for all peoples who do local compilation. > > > > I can not understand why FBSD Foundation does not force to revert > > it, it comsumes foundation money while they build OS and ports. > > X2+ time/money for every build. > > For some small ports x16+ build time (super slow on: make configure) > > > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287447 > > Apart from reverting the offending change, one could consider going a > step further and making clang statically linked in the first place. > > This used to be trivially achievable prior to: > > commit 77f6be448408eda1a31b1c98576e6c6bebf6ea6e > Author: Ed Maste > Date: Tue Aug 1 08:48:02 2023 -0400 > > retire SHARED_TOOLCHAIN knob > > Toolchain components were historically statically linked. They > became normal dynamically linked executables in commit 6ab18ea64d19. > There is no need to keep a special case build option for the > toolchain; users who want statically linked toolchain (or any other) > components can use the existing NO_SHARED knob. > > I don't know how plug it it now, hopefully the commit is either > trivially revertable on 14.3 or that NO_SHARED thing is easy to plug > in for the compiler. > > That is to say, if you have time, can you please benchmark a > statically linked clang vs clang which merely reverting the libprivate > change? Should be a small speed up on top. NO_SHARED - it was static link with libc and probably other system libs. Now clang splitted into set of libs, it is a bit different thing.