From owner-dev-commits-src-all@freebsd.org Tue Jun 22 09:29:36 2021 Return-Path: Delivered-To: dev-commits-src-all@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 D58CA659CA8; Tue, 22 Jun 2021 09:29:36 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (heemeyer.club [IPv6:2001:19f0:6400:80a1:5054:ff:fe7a:a27d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4G8LhJ1JgHz3pQb; Tue, 22 Jun 2021 09:29:35 +0000 (UTC) (envelope-from dchagin@heemeyer.club) Received: from heemeyer.club (localhost [127.0.0.1]) by heemeyer.club (8.16.1/8.16.1) with ESMTP id 15M9TT46048491; Tue, 22 Jun 2021 12:29:29 +0300 (MSK) (envelope-from dchagin@heemeyer.club) Received: (from dchagin@localhost) by heemeyer.club (8.16.1/8.16.1/Submit) id 15M9TTLI048490; Tue, 22 Jun 2021 12:29:29 +0300 (MSK) (envelope-from dchagin) Date: Tue, 22 Jun 2021 12:29:29 +0300 From: Dmitry Chagin To: Dimitry Andric Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 23408297fbf3 - main - Merge llvm-project 12.0.1 rc2 Message-ID: References: <202106191811.15JIB4nu002236@gitrepo.freebsd.org> <2A6DC940-653A-4B96-8103-DC3DE3F134AD@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2A6DC940-653A-4B96-8103-DC3DE3F134AD@FreeBSD.org> X-Rspamd-Queue-Id: 4G8LhJ1JgHz3pQb X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of dchagin@heemeyer.club has no SPF policy when checking 2001:19f0:6400:80a1:5054:ff:fe7a:a27d) smtp.mailfrom=dchagin@heemeyer.club X-Spamd-Result: default: False [-1.80 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[dchagin]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[freebsd.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:19f0:6400:80a1:5054:ff:fe7a:a27d:from]; AUTH_NA(1.00)[]; SPAMHAUS_ZRD(0.00)[2001:19f0:6400:80a1:5054:ff:fe7a:a27d:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[dchagin@freebsd.org,dchagin@heemeyer.club]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:2001:19f0:6400::/38, country:US]; FROM_NEQ_ENVFROM(0.00)[dchagin@freebsd.org,dchagin@heemeyer.club]; MAILMAN_DEST(0.00)[dev-commits-src-all,dev-commits-src-main]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2021 09:29:36 -0000 On Sun, Jun 20, 2021 at 09:46:32PM +0200, Dimitry Andric wrote: > On 20 Jun 2021, at 14:49, Dmitry Chagin wrote: > > > > On Sat, Jun 19, 2021 at 06:11:04PM +0000, Dimitry Andric wrote: > >> The branch main has been updated by dim: > >> > >> URL: https://cgit.FreeBSD.org/src/commit/?id=23408297fbf3089f0388a8873b02fa75ab3f5bb9 > >> > >> commit 23408297fbf3089f0388a8873b02fa75ab3f5bb9 > >> Merge: cac129e60300 e4bbddaec868 > >> Author: Dimitry Andric > >> AuthorDate: 2021-06-19 10:06:00 +0000 > >> Commit: Dimitry Andric > >> CommitDate: 2021-06-19 18:09:28 +0000 > >> > >> Merge llvm-project 12.0.1 rc2 > >> > >> This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and > >> openmp to llvmorg-12.0.1-rc2-0-ge7dac564cd0e, a.k.a. 12.0.1 rc2. > >> > >> PR: 255570 > >> MFC after: 6 weeks > >> > > hi! with 11 clang kernel build time is about 60 sec, with 12.0.0 and > > 12.0.1 rc2 build time increased to 500 sec. > > Did you previously have llvm/clang assertions turned off (via > MK_LLVM_ASSERTIONS=no)? > no, I found the reason. I tried to build a kernel without optimization, set CFLAGS=-O and forgot to remove it before building the world. > I did a few measurements of "make -j32 buildkernel", on > main-n247475-9d1cafb3049, with clang 11.0.1 and clang 12.0.1 (both with > assertions turned off, and statically linked: > > clang 11.0.1 (n=5): > > real user sys > 138.65 3145.23 285.25 > 129.00 3240.73 290.61 > 126.38 3244.03 284.76 > 128.90 3250.95 268.71 > 136.42 3250.73 267.93 > > clang 12.0.1 (n=5): > > real user sys > 129.16 3306.13 291.84 > 128.18 3308.14 284.32 > 128.77 3301.35 281.90 > 141.37 3293.22 282.20 > 129.93 3304.08 284.47 > > $ ministat -A clang1101-real.txt clang1201-real.txt > x clang1101-real.txt > + clang1201-real.txt > N Min Max Median Avg Stddev > x 5 126.38 138.65 129 131.87 5.3354662 > + 5 128.18 141.37 129.16 131.482 5.5639707 > No difference proven at 95.0% confidence > > $ ministat -A clang1101-user.txt clang1201-user.txt > x clang1101-user.txt > + clang1201-user.txt > N Min Max Median Avg Stddev > x 5 3145.23 3250.95 3244.03 3226.334 45.550423 > + 5 3293.22 3308.14 3304.08 3302.584 5.8070759 > Difference at 95.0% confidence > 76.25 +/- 47.3552 > 2.36336% +/- 1.50191% > (Student's t, pooled s = 32.4697) > > Before I merged 12.0.1, I did the same sort of measurement, but for > "make -j32 buildworld buildkernel" (with CROSS_TOOLCHAIN set so the > bootstrap compiler isn't built), and this showed roughly similar > results: > > $ ministat -A clang1101-real.txt clang1200-real.txt > x clang1101-real.txt > + clang1200-real.txt > N Min Max Median Avg Stddev > x 5 1410.24 1461.04 1434.2 1435.296 18.210247 > + 5 1461.54 1499.69 1462.07 1469.976 16.667199 > Difference at 95.0% confidence > 34.68 +/- 25.4583 > 2.41623% +/- 1.79718% > (Student's t, pooled s = 17.4558) > > $ ministat -A clang1101-user.txt clang1200-user.txt > x clang1101-user.txt > + clang1200-user.txt > N Min Max Median Avg Stddev > x 5 37495.09 37913.2 37750.64 37750.734 165.00886 > + 5 38133.12 38396.77 38390.77 38324.132 113.63363 > Difference at 95.0% confidence > 573.398 +/- 206.617 > 1.51891% +/- 0.552972% > (Student's t, pooled s = 141.67) > > So basically ~2% slower. It's would be a little tricky to find out if > there is any particular upstream commit that might be responsible, > as the difference is so small. > > I think I'll also compare the performance with assertions enabled, and > MK_SHARED_TOOLCHAIN=yes, which should be worse than the above, but still > comparable between 11.0 and 12.0. > > -Dimitry >