From owner-freebsd-stable@freebsd.org Wed Jul 24 16:08:11 2019 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6CED7B0AF6 for ; Wed, 24 Jul 2019 16:08:11 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4E1BE8C4F4; Wed, 24 Jul 2019 16:08:11 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id E7F3B2D4D3; Wed, 24 Jul 2019 16:08:10 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::e5f9:9d28:2d74:eb2] (unknown [IPv6:2001:470:7a58:0:e5f9:9d28:2d74:eb2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C8EBF3F6C9; Wed, 24 Jul 2019 18:08:09 +0200 (CEST) From: Dimitry Andric Message-Id: <8373E39A-46E7-41AB-BC1F-8CDF65F47287@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_E93DF405-33A0-4C2C-8A25-F819BDCDB244"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Buildworld times (was Re: svn commit: r350256 - in stable/12: . contrib/compiler-rt/lib/sanitizer_common contrib/libunwind/src contrib/llvm/lib/DebugInfo/DWARF contrib/llvm/lib/MC contrib/llvm/lib/Object contrib/llvm/lib/Ta...) Date: Wed, 24 Jul 2019 18:02:09 +0200 In-Reply-To: Cc: freebsd-stable@freebsd.org To: mike tancsa References: <201907231840.x6NIeWeq024894@repo.freebsd.org> <0CB72C19-405C-41F0-8967-96F363228ED6@FreeBSD.org> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 4E1BE8C4F4 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.978,0]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jul 2019 16:08:11 -0000 --Apple-Mail=_E93DF405-33A0-4C2C-8A25-F819BDCDB244 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 24 Jul 2019, at 17:12, mike tancsa wrote: >=20 > On 7/24/2019 9:45 AM, Dimitry Andric wrote: >> On 24 Jul 2019, at 14:47, mike tancsa wrote: >>> On 7/23/2019 2:40 PM, Dimitry Andric wrote: >>>> Author: dim >>>> Date: Tue Jul 23 18:40:32 2019 >>>> New Revision: 350256 >>>> URL: https://svnweb.freebsd.org/changeset/base/350256 >>>>=20 >>> Hi, >>>=20 >>> Not sure if this is just a difference in the versions or more = things >>> are being compiled, but I noticed a buildworld on my Ryzen went from = ~ >>> 31min to just over 40min. Is this expected ? >> Most likely this is because it will now build a bootstrap compiler, >> whereas previously your system may have skipped this step. Can you >> compare the results when setting MK_SYSTEM_COMPILER=3Dno and >> MK_SYSTEM_LINKER=3Dno ? >=20 > Adding those two to src.conf and make.conf still shows 40min >=20 > time make -j14 buildworld > /var/log/build.out ; time make -j14 > buildkernel > /var/log/build.out. > [Creating objdir /usr/obj/usr/src/amd64.amd64...] > 25312.621u 1237.984s 40:09.72 1101.8% 45579+3473k 656666+3288880io > 214633pf+0w > 1675.467u 173.497s 2:37.90 1170.9% 37728+3167k 207118+3329460io > 61829pf+0w >=20 > Should I be setting these vars somewhere else ? Ah, setting them in src.conf, make.conf or the environment will be overridden from Makefile.inc1, unfortunately. It will then show something like: make[1]: "/home/dim/src/stable-12/Makefile.inc1" line 343: = SYSTEM_COMPILER: libclang will be built for bootstrapping a = cross-compiler. make[1]: "/home/dim/src/stable-12/Makefile.inc1" line 348: = SYSTEM_LINKER: libclang will be built for bootstrapping a cross-linker. E.g, it detects that your system compiler is of a lower version than the compiler in the source tree, and will thus bootstrap the latter. Can you compare the timings when setting MK_SYSTEM_COMPILER=3Dyes and MK_SYSTEM_LINKER=3Dyes? In that case, both before and after r350256, = the results should be fairly similar, I expect. -Dimitry --Apple-Mail=_E93DF405-33A0-4C2C-8A25-F819BDCDB244 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXTiBAQAKCRCwXqMKLiCW o6TnAKDQ3CA6qhEP/aLmJ6NQBVWSFxcpOgCgzWxInDBtyiTbCL59yGOv4gJUvN8= =gPwH -----END PGP SIGNATURE----- --Apple-Mail=_E93DF405-33A0-4C2C-8A25-F819BDCDB244--