Date: Sun, 2 Apr 2006 20:57:30 +1200 (NZST) From: Andrew McNaughton <andrew@scoop.co.nz> To: Kris Kennaway <kris@obsecurity.org> Cc: freebsd-smp@freebsd.org, Olaf Klein <ok@monkeytower.net> Subject: Re: smp and portupgrade Message-ID: <20060402204922.G18985@a2.scoop.co.nz> In-Reply-To: <20060401172122.GA9071@xor.obsecurity.org> References: <009301c65418$cc029f30$65fd24c0@Eric> <64659004-E643-4044-AAED-076E0CC91977@foolishgames.com> <01a901c65493$77ad2740$65fd24c0@Eric> <442DC9B6.2090200@paradise.net.nz> <442EAA0A.8030704@he.iki.fi> <442EB37A.4080909@monkeytower.net> <20060401172122.GA9071@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 1 Apr 2006, Kris Kennaway wrote: > On Sat, Apr 01, 2006 at 07:08:10PM +0200, Olaf Klein wrote: >> Hi, >> >> i wonder how to make use of multiple processors or kernels when using >> portupgrade. Something like 'make -j10 buildworld' should be possible >> for portupgrade too?! >> Or is it like buildkernel: not recommended to use multiple threads? > > Well, buildkernel is fine to use with -j (not sure where you read > otherwise), but ports cannot be built this way. The main issue seems to be that various targets in the ports system not waiting for the previous target to be built. Eg 'install' starts without waiting for 'build'. Depending on the particular port however 'make -j 10 build' very often does work. I appreciate that it's quite a lot of work to implement, but... It would be nice if the ports system itself were multi-thread clean. Presumably we'd want a flag in each appropriate port's makefile which enabled a multi-threaded build where this is known to work. Equally, it would be nice if portupgrade were able to work on separate ports in parallel where dependency structures allow for it. Are there any fundamental reasons why such things couldn't work? Andrew ------------------------------------------------------------------- Andrew McNaughton http://www.scoop.co.nz/ andrew@scoop.co.nz Mobile: +61 422 753 792 pgp keyid: 70F6C32D -- "We are trying to figure out how you conduct a war against something other than a nation-state and how ... you conduct a war in countries that you are not at war with," -- Donald Rumsfeld, 27 Jan 2006
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060402204922.G18985>