Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Apr 2017 10:43:14 +0200
From:      Michael Gmelin <grembo@freebsd.org>
To:        Alexey Dokuchaev <danfe@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: LLVM port(s) take very long time to package
Message-ID:  <79A96B5B-8E4C-4E2E-8108-BA4F05CBFA4F@freebsd.org>
In-Reply-To: <20170412034308.GA56148@FreeBSD.org>
References:  <20170412034308.GA56148@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 12. Apr 2017, at 05:43, Alexey Dokuchaev <danfe@FreeBSD.org> wrote:
>=20
> Hi there porters,
>=20
> It had been annoying me for a while, so I figured I try asking here:
> LLVM ports (particularly, llvm39-3.9.1) take abnormally long time to
> package, e.g. right now it took 43 minutes (tmpfs-backed build area,
> pkg-1.10.0_2.txz, AMD A8 APU @1900 MHz, plenty of RAM, no swap).
>=20
> pkg was eating 100% (of a single core) during that time, so it looks
> like it's actually busy (not waiting for I/O or something), but with
> what?  And can it be fixed?  LLVM ports are real PITA to (re)build,
> and while ccache helps to greatly reduce the build times, 3/4-hour
> package time still cripples it.
>=20

It's probably busy compressing the package. Try setting PKG_NOCOMPRESS=3D1 i=
n /etc/make.conf (works ok when just building a package with make, didn't te=
st with poudriere[0]). When creating packages, the current compression algor=
ithm can't take advantage of multiple cores, so it's kind of a bottleneck on=
 modern machines.

-m

[0] probably not, but it seems like bdrewery is working on this https://gith=
ub.com/freebsd/poudriere/issues/459=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?79A96B5B-8E4C-4E2E-8108-BA4F05CBFA4F>