From owner-freebsd-toolchain@freebsd.org Wed Mar 29 15:53:24 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C532D20E16; Wed, 29 Mar 2017 15:53:24 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C16A567685; Wed, 29 Mar 2017 15:53:23 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 649735A9F15; Wed, 29 Mar 2017 15:53:16 +0000 (UTC) Date: Wed, 29 Mar 2017 15:53:16 +0000 From: Brooks Davis To: Mark Millard Cc: Dimitry Andric , FreeBSD Ports , FreeBSD PowerPC ML , FreeBSD Toolchain , FreeBSD Current Subject: Re: FYI: what it takes for RAM+swap to build devel/llvm40 with 4 processors or cores and WITH__DEBUG= (powerpc64 example) Message-ID: <20170329155316.GK59667@spindle.one-eyed-alien.net> References: <3EDEF0B7-59C5-4648-9737-6682E18645BC@dsl-only.net> <39C60316-F905-490D-B0AB-BC24D7F351A2@dsl-only.net> <7F94CE59-D2CC-4D6F-B1CD-FF3D1F8EDCE7@FreeBSD.org> <45E32F4F-A238-47AA-8E1E-7AD4D9E857D9@dsl-only.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="m1UC1K4AOz1Ywdkx" Content-Disposition: inline In-Reply-To: <45E32F4F-A238-47AA-8E1E-7AD4D9E857D9@dsl-only.net> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2017 15:53:24 -0000 --m1UC1K4AOz1Ywdkx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 27, 2017 at 03:25:04AM -0700, Mark Millard wrote: > On 2017-Mar-27, at 2:41 AM, Dimitry Andric wrote: >=20 > > On 26 Mar 2017, at 23:36, Mark Millard wrote: > >>=20 > >> I upgraded from llvm40 r4 to final. An interesting result was > >> its creation of a backup package for llvm40-4.0.0.r4: > >>=20 > >> about 13 cpu-core-hours running pkg create > >>=20 > >> (Remember: I've been building with WITH_DEBUG=3D ) Its > >> single-threaded status stands out via elapsed time > >> approximately matching. > >>=20 > >> I'll note that it was somewhat under 6 elapsed hours for > >> staging to have been populated (-j4 with 4 cores present > >> helps for this part). > >>=20 > >> (Of course these elapsed-time figures are rather system > >> dependent, although the ratio might be more stable.) > >>=20 > >>=20 > >>=20 > >> Also interesting was: > >>=20 > >> Installed packages to be REMOVED: > >> llvm40-4.0.0.r4 > >>=20 > >> Number of packages to be removed: 1 > >>=20 > >> The operation will free 49 GiB. > >=20 > > Yes, this is big. But there is no real need to build the llvm ports > > with debug information, unless you want to hack on llvm itself. And > > in that case, you are better served by a Subversion checkout or Git > > clone from upstream instead. > >=20 > > -Dimitry >=20 > FYI: >=20 > Historically unless something extreme like this ends up > involved I build everything using WITH_DEBUG=3D or explicit > -g's in order to have better information on any failure. >=20 > This is extreme enough that next time I synchronize > /usr/ports and it has a devel/llvm40 update I'll > likely rebuild devel/llvm40 without using WITH_DEBUG=3D . > I'm more concerned with the time it takes than with > the file system space involved. In the case of LLVM, enabling debug builds does a LOT more than adding symbols. It's much more like enabling WITNESS and INVARIANTS in your kernel, except that the performance of the resulting binary is much worse than a WITNESS kernel (more like 10x slowdown). As Dimitry points out, these builds are of questionable value in ports so garbage collecting the knob might be the sensable thing to do. -- Brooks --m1UC1K4AOz1Ywdkx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJY29hrAAoJEKzQXbSebgfA6cgH/1FWA1dO2yctl/WJzfe4cF2E 1QRc3LUXX/DR9NktYS1GyLUJvgSncqNBMTBIwgeto5JxESn5A9fwry9L3koVCNFC GyjK+y1mNakVnZsFpe42QxKg53xv2Mi2ummNuatebC23a6ari++l/ioPIpR0tI+h nXRlH+PQYmXRnZvFoB2knVOXp5U++UkeoqJ0RnT17hHnwvLVwMlRdFyC+IoAuVZb xHb7bwm7yk0zo66onLfMcuj7MlIOgncg5l6KB42MTh6uIKY23LNl3qYernRbodnj 9t6eKI1mnD3nA10G8b0MBoUoDPb9/MkubIm4jRC1ag0k7Dj7YdHE8Wh/pLOyfxY= =MI2X -----END PGP SIGNATURE----- --m1UC1K4AOz1Ywdkx--