From owner-freebsd-stable@freebsd.org Thu Jul 25 19:30:30 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 4E181AC92E for ; Thu, 25 Jul 2019 19:30:30 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene.sentex.ca (unknown [IPv6:2607:f3e0:0:3::18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "pyroxene.sentex.ca", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A8E7991BAA; Thu, 25 Jul 2019 19:30:29 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:c95b:26e6:56f7:7413] ([IPv6:2607:f3e0:0:4:c95b:26e6:56f7:7413]) by pyroxene.sentex.ca (8.15.2/8.15.2) with ESMTPS id x6PJUPGG088755 (version=TLSv1.2 cipher=AES128-SHA bits=128 verify=NO); Thu, 25 Jul 2019 15:30:27 -0400 (EDT) (envelope-from mike@sentex.net) 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...) To: Dimitry Andric Cc: freebsd-stable@freebsd.org References: <201907231840.x6NIeWeq024894@repo.freebsd.org> <0CB72C19-405C-41F0-8967-96F363228ED6@FreeBSD.org> <8373E39A-46E7-41AB-BC1F-8CDF65F47287@FreeBSD.org> <801c0dd8-7a50-d93f-77f6-999aaa91a295@sentex.net> <2B4E531D-F26E-4615-8F46-0869ED951138@FreeBSD.org> From: mike tancsa Message-ID: Date: Thu, 25 Jul 2019 15:30:26 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <2B4E531D-F26E-4615-8F46-0869ED951138@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: A8E7991BAA X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::18 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [0.67 / 15.00]; ARC_NA(0.00)[]; RDNS_NONE(1.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[sentex.net]; NEURAL_HAM_LONG(-0.55)[-0.550,0]; LONG_SUBJ(1.70)[227]; IP_SCORE(-1.72)[ipnet: 2607:f3e0::/32(-4.94), asn: 11647(-3.57), country: CA(-0.09)]; MX_GOOD(-0.01)[cached: smtp.sentex.ca]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.966,0]; NEURAL_HAM_MEDIUM(-0.98)[-0.984,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; HFILTER_HOSTNAME_UNKNOWN(2.50)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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: Thu, 25 Jul 2019 19:30:30 -0000 On 7/25/2019 12:09 PM, Dimitry Andric wrote: > Hmmm, is the logic reversed somehow ? The good news is if nothing is >>> defined, it does the right thing. >> The idea is that the default is to *not* bootstrap the compiler, if the >> system compiler is new enough. E.g. if you build r350256 from a system >> built before r350256, it will normally automatically bootstrap >> everything. >> >> E.g., your previous builds did not have to bootstrap, and now they do, >> which is why they take longer. >> >> So the only good way to compare is to force MK_SYSTEM_COMPILER=yes and >> MK_SYSTEM_LINKER=yes, so both buildworlds will do the same thing. >> >> I did a few tests on a relatively fast machine, and buildworld with >> those settings on took approximately the same time at r350255 and >> r350256. I'm now repeating those experiments to feed the results to >> ministat. Thanks again for verifying and explaining all this.  I was interpreting MK_SYSTEM_LINKER=yes as "along with building world, build the compiler and linker from scratch first" vs "using the existing installed system linker and compiler to build world" and as you pointed out, when its a version difference it gets overridden. > Repeating buildworld 3 times for r350255 and r350256 (with both The times on my machines all look normal now too!     ---Mike