From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 20 22:26:31 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0444B16A41F for ; Fri, 20 Jan 2006 22:26:31 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC81243D45 for ; Fri, 20 Jan 2006 22:26:30 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 6AA0D1A3C1B; Fri, 20 Jan 2006 14:26:30 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 9F85F54C16; Fri, 20 Jan 2006 17:26:29 -0500 (EST) Date: Fri, 20 Jan 2006 17:26:29 -0500 From: Kris Kennaway To: babkin@users.sf.net Message-ID: <20060120222629.GA43985@xor.obsecurity.org> References: <2209162.1137777933811.JavaMail.root@vms075.mailsrvcs.net> <20060120193741.GC39932@xor.obsecurity.org> <43D15C19.314EC346@verizon.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <43D15C19.314EC346@verizon.net> User-Agent: Mutt/1.4.2.1i Cc: Wesley Shields , freebsd-hackers@freebsd.org, Brandon Flowers , Kris Kennaway , Mike Meyer , Gary Thorpe , Ashok Shrestha , Dag-Erling Sm?rgrav Subject: Re: speed up port compiling using RAM (tmpfs) ??? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2006 22:26:31 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 20, 2006 at 04:54:33PM -0500, Sergey Babkin wrote: > Kris Kennaway wrote: > >=20 > > On Fri, Jan 20, 2006 at 11:25:33AM -0600, Sergey Babkin wrote: > > > >From: =3D?ISO646-US?Q?Dag-Erling_Sm=3D3Frgrav?=3D > > > > > > >Gary Thorpe writes: > > > >> This effectively means that you cannot take advantage of SMP to > > > >> compile FreeBSD's ports collection. That sounds like a big > > > >> limitation...especially for people trying to speed up bulk builds. > > > > > > > >We cannot be held responsible for race conditions in the Makefiles of > > > >third-party software. > > > > > > Well, maybe we can then build multiple ports in parallel. > > > I guess the way to do it would be to run the top-level make with > > > -j but then disable it when calling the makefiles of the > > > individual ports. Not that I have any idea how to actually > > > do that. > >=20 > > It's harder than that, because you need to impose dependency > > information and mutual exclusion between different makes. e.g. they > > can't both be compiling the same port at the same time, which will > > happen if you just do the naive thing. >=20 > That's the part that "make -j" is supposed to take care of, > since it should build in parallel only the targets independent > of each other. If (as I said) you impose the correct dependency information. Currently there is no such information provided. kris --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD0WOVWry0BWjoQKURAmg7AJ4x5OFpC9huDmKvSmSO6ovToDyeVQCdEzeF 3tYtPn2aB3jjCMKdXO4E4ag= =0PRL -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--