From nobody Wed Dec 24 00:27:03 2025 X-Original-To: dev-commits-src-main@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 4dbXl01q1rz6L997 for ; Wed, 24 Dec 2025 00:27:24 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dbXkx6GTBz3YKV for ; Wed, 24 Dec 2025 00:27:21 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=KRSUnSq0; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1766536037; bh=ncdDoBWU9oPPjXKKAoeXQzO3LQpgMKRsjpqUsvNufp0=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=KRSUnSq0UnmtXdwDFRuXZnG/pmkCBHKjdJB0wmOzCZsZfjDyNu3Q09Fr7NjwxNbSwrGCkzWYTMfGTLOPkjJ7z72Sd0aSFVdD0uEs7YCNicxhiOyFOE/eTWD5jZwUgxOuVroaqaeoNJtVVjfbPttTU9kKomtx34SA63HwVlAKseqcwW9HjgZVzk26BPAKkjy7v55apuwtUzZ1fhlT3bspmqgQLb9pSGD//hLbmcxO6kTHBP9guZAAcIEEew/Qp23jTwsw1Q4R5FM3jf2+PHwVLiFhBChwGhwhjLUZq2m1PdUNm7l0cHOYBFctu4MmSutxVCabcoyRUZOFha7tohEhUA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1766536037; bh=pBS+ty5CwlNboSbDBjst3x8C6lgtv07Y5TyR4q+uB+e=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=JgNPFV2FniqOOr/ORBO389uyxpPR1YGUDIsZn4GGTeYW8LD99URZCySgfZ8fM+6kopu/O9nsNCOdUmEWq9FqD8vK8h3BBqcFSxs9JpkJ7IhZrbrzynoIw+mrIzby56SmOdAMfjJ4wcI1CsydYEfA5Fe3+0kP9SV6+mwe+HhbHRZNashE4E4gsE6C5RW8xmM38mutj07iYhDSGLIxkaETT60TsVjEW+tbPETI2ROcTHOkh8kx9VkXRSXZYNvjb6hXgIW9mzXNPsowPk1+MMUZLz3KGlsCsfsFRyBD7GYQjpitYJVFIRdKmSjVir6mndR3mu1GsNhwYeGZPXqOnYtJTA== X-YMail-OSG: .BmselEVM1m6Oguhzs2ieyI_VFwNBjdZNy9S89W3j_TfeHO47jdrY9VP2MfrleK ZjICX92Qrq.oImlFAiIJnSfT2qnMQeQFKZ_UF6474ViIy3jcfzI_snztg6CpJT0rq7x_ySmYEkAw 1Z.hhnExAQE3oTYCkCDHrmbpnZq1r_I8SwO5OjM1pELTiTwAKHoLbjIhrTg0xud_kg4flwgKkzaV uEKnqqXy6XuYgtTU31uVWvcZmOEQWqq.W32.pOKK9ZZGjFRiAEwljFNqRPqqzJisdnL2jUBV9lBA 4mk63W5VXKykmjc3c00Q4q.l.nwszryS8uQWxoOtOexjSruPxOVwb.QzjdLfbW5tCMR4SCz4WHgr rNkVpcQ8JV46KFdb4Q1zaj28yPoceAKrzWDCOYCV00_OnMBLUiPDFgG3.GQrENDr6huKJjyEPhKS Z4KpvDFrW4rupocUwZY6HE0WFwcVr6hX4MfaFKt7q0700V6oT0wsAxc_Lh.2a_5jcj3.7y05PmWt M4tAKFE6a1lJmw2QvmbeB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TBi_pGjsLad4TQHrFQ0YSon.hkb.Cn2xE66nNKxWwto3xOq af09uYSI9f7_12nBBKZNJJv9lanBlh7kJrS5ZPHcwXASyjdV9gESwQXwpcSqVjVrMhTHjjLhHzRr l04pX7OjhwBAHcZAo0iA90pYNG70r1ZAWC1FMARWYcfMcUjeEBdQjU5A7Bar2ZLYY27XhxuT6Q4G qvrKrKZtxzNuKu2ZdBSb3013SWpq_bP7waWmUoOlMnRnOvI2xn.7mJn3SWkvdFkaGt8tY4jRmtMQ LNaLfSiIWpZuNttwA_e42c4BjncpQcNv.h8OooBbC4OXciX_cePC7Vtg_rUKVHSw7cI5gj7FSLa6 hyWpwzfXU6.29Tq48MvRaA1l0Bgor7N_E_PleHS3kxWaBuRTus38Wo88MGKzufJra9CN915K1uZL 4Eh8DrG2uQcafDH3b8nchbtB6rZ1L_3zpcIkJrFgsqNe.M0ykIW_vS_9bveHRYA5JWZoZCqJ2kKp gYCOkJjWutDv2hdjUUth43FZOACzvGqcyqkXV8vnkB7BrmeGIvElz15gDJuJYfA5EHRewNqqVli8 z9XdRzGFAEGW.0mbEGOOCYc.4aRnrbx8HMyUDzGkYWfRyOBYGJlgCHcRd3dZE6hLoP2vpulqL.Vn otLYYl2BR8Kc9FBG1.2HuVuCzPYHR0qnAdB8ttqJb8Axe9SBZFQCWwcpFNMq4PWOTwFcFj_TZKeX cU88IyCApeqNF7sQ0qYKAkO5pgw-- X-Sonic-MF: X-Sonic-ID: 31f92eea-9454-4ece-9815-6f55adbc8dd7 Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Wed, 24 Dec 2025 00:27:17 +0000 Received: by hermes--production-gq1-54bf57fc64-r4hb5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 81abda61600f6be549776b9076ede795; Wed, 24 Dec 2025 00:27:14 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: git: 8d5a11cd0137 - main - src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob Date: Tue, 23 Dec 2025 16:27:03 -0800 References: <5AA66E35-EA0C-48D4-A0C1-F84FAA18D5FC@yahoo.com> To: Dimitry Andric , dev-commits-src-main In-Reply-To: <5AA66E35-EA0C-48D4-A0C1-F84FAA18D5FC@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3826.700.81) X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FREEMAIL_FROM(0.00)[yahoo.com]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.206:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.206:from] X-Rspamd-Queue-Id: 4dbXkx6GTBz3YKV [I've dropped portmgr, having already sent the one message.] On Dec 23, 2025, at 14:28, Mark Millard wrote: > Dimitry Andric wrote on > Date: Tue, 23 Dec 2025 21:08:31 UTC : >=20 >> On 23 Dec 2025, at 22:04, Dimitry Andric wrote: >>>=20 >>> The branch main has been updated by dim: >>>=20 >>> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D8d5a11cd0137d3ad70f6b06e063ea91a= 776d510a >>>=20 >>> commit 8d5a11cd0137d3ad70f6b06e063ea91a776d510a >>> Author: Dimitry Andric >>> AuthorDate: 2025-06-18 10:06:25 +0000 >>> Commit: Dimitry Andric >>> CommitDate: 2025-12-23 21:01:40 +0000 >>>=20 >>> src.conf: Add WITH_LLVM_LINK_STATIC_LIBRARIES build knob >>>=20 >>> In commit 2e47f35be5dc libllvm, libclang and liblldb were converted = into >>> private shared libraries. This allowed clang, lld, lldb, and other = llvm >>> tools to be linked against these shared libraries, which makes them >>> smaller and avoids duplication. >>>=20 >>> However, this also comes at the cost of some performance, since the >>> dynamic libraries are quite large, and contain lots of long symbols >>> (mangled C++ identifiers). >>>=20 >>> Add a WITH_LLVM_LINK_STATIC_LIBRARIES build knob that can be used to = go >>> back to the previous behavior: libllvm, libclang and liblldb are = built >>> as internal static libraries, i.e. only available during buildworld, = and >>> fully linked into the various executables such as clang, lld, etc. >>>=20 >>> PR: 287447 >>> Reviewed by: emaste >>> MFC after: 1 week >>> Differential Revision: https://reviews.freebsd.org/D50956 >>=20 >> NOTE: toggling this option requires a full clean build, at least = until >> https://reviews.freebsd.org/D52011 lands. >=20 > A significant question question here (after the MFC activity: > for more than main) that is especially significant for the > ampere* port-package builder machines (slower and few of them > vs. the number of types of builds) but also for other of the > more time-taking builder machines: >=20 > Will the poudriere port-package build jails be built based > on using WITH_LLVM_LINK_STATIC_LIBRARIES ? >=20 > (The boot kernel and boot world are not the issue.) >=20 > The performance difference between 14.3-RELEASE and 14.3-STABLE > jails is large on aarch64 in my testing. (No such comparison > is available for ampere* builds: no 14.3-STABLE build history > logs exist to compare against.) >=20 > 14.3-RELEASE predates the shared library change. 14.3-STABLE > currently is using the shared libraries (before being shrunk > some). >=20 > 00:09:18 14.3-RELEASE -> 00:12:19 14.3-STABLE, ratio about 1.32, for = cmake-core-3.31.9 on the Windows Dev Kit 2023 (using all 8 cores) I realized that the modern poudriere-devel in use actually has the real time showing at the end of the build log. Thus checking both the elapsed-time ratio and the user-cpu-time ratio is available for comparison/contrast: # tail -3 = /usr/local/poudriere/data/logs/bulk/*14-aarch64-default/latest-per-pkg/cma= ke-core*.log =3D=3D> = /usr/local/poudriere/data/logs/bulk/official14-aarch64-default/latest-per-= pkg/cmake-core-3.31.9.log <=3D=3D build time: 00:12:50 times end [shell] (user/sys/real): 0m0.000s 0m0.040s 12m50.000s times end [child] (user/sys/real): 76m41.023s 3m49.860s 12m50.000s =3D=3D> = /usr/local/poudriere/data/logs/bulk/release14-aarch64-default/latest-per-p= kg/cmake-core-3.31.9.log <=3D=3D build time: 00:09:19 times end [shell] (user/sys/real): 0m0.029s 0m0.018s 9m19.000s times end [child] (user/sys/real): 57m9.237s 3m2.719s 9m19.000s For 76m41.023s/57m9.237s approx.=3D 1.34 So: not much different than the elapsed time ratio. > (Those, of course, ares not matching contexts to how official > builds are done. But the above avoided any jemalloc 5.3.0 > involvement in causing the time ratio observed. Comparison > and contrasts with 15.0-RELEASE do not avoid such. I could > build other examples.) >=20 > The best match that I have for ampere* numbers that is using > 150arm64 builds and 143arm64 builds: >=20 > 38:25:51 14.3-RELEASE -> 53:33:46 15.0-RELEASE, ratio about 1.39, = for qt6-webengine-6.9.3 on the ampere*'s > 15:24:24 14.3-RELEASE -> 21:26:14 15.0-RELEASE, ratio about 1.39, = for llvm21-21.1.2 on the ampere*'s >=20 > 15.0-RELEASE has the toolchain programs using the shared > libraries. >=20 > These sorts of figures can be explored from the official logs > that exist --but 15.0 has more differences than just use of > the shared libraries by the toolchain programs. >=20 > I'd consider time ratios of 1.3+ significant. =3D=3D=3D Mark Millard marklmi at yahoo.com