From owner-freebsd-ports@freebsd.org Wed Apr 12 08:43:24 2017 Return-Path: Delivered-To: freebsd-ports@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 B0DB5D3856F for ; Wed, 12 Apr 2017 08:43:24 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9ECA1B24 for ; Wed, 12 Apr 2017 08:43:24 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9E1BAD3856C; Wed, 12 Apr 2017 08:43:24 +0000 (UTC) Delivered-To: ports@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 9DBB1D3856A for ; Wed, 12 Apr 2017 08:43:24 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 1338DB21 for ; Wed, 12 Apr 2017 08:43:23 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: (qmail 5034 invoked by uid 89); 12 Apr 2017 08:43:15 -0000 Received: from unknown (HELO ?192.168.250.192?) (mg@grem.de@46.244.253.72) by mail.grem.de with ESMTPA; 12 Apr 2017 08:43:15 -0000 Mime-Version: 1.0 (1.0) Subject: Re: LLVM port(s) take very long time to package From: Michael Gmelin X-Mailer: iPhone Mail (14E304) In-Reply-To: <20170412034308.GA56148@FreeBSD.org> Date: Wed, 12 Apr 2017 10:43:14 +0200 Cc: ports@FreeBSD.org Message-Id: <79A96B5B-8E4C-4E2E-8108-BA4F05CBFA4F@freebsd.org> References: <20170412034308.GA56148@FreeBSD.org> To: Alexey Dokuchaev Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2017 08:43:24 -0000 > On 12. Apr 2017, at 05:43, Alexey Dokuchaev 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=