Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Apr 2007 21:31:37 +0200
From:      "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de>
To:        Benjamin Lutz <mail@maxlor.com>
Cc:        ports@freebsd.org, Robert Noland <rnoland@2hip.net>, pav@freebsd.org
Subject:   Re: parallel builds revisited
Message-ID:  <461E8919.1080702@gmx.de>
In-Reply-To: <200704122056.51123.mail@maxlor.com>
References:  <200704100452.40574.mail@maxlor.com>	<1176391950.1820.3.camel@rnoland-ibm.acs.internap.com>	<461E5F39.1030603@gmx.de> <200704122056.51123.mail@maxlor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Benjamin Lutz wrote:
> I've looked at your patches and programs, and I'm starting to have a 
> fairly clear idea of solution should look like. I would like to see:
> 
> * Integration into the existing ports framework. No new scripts or files
>   should be required. The whitelist file needs to go.

That's what we all want. Just a couple of lines in bsd.port.mk

> * Configuring the number of jobs should be automatic (but overridable),
>   based on kern.smp.cpus.

I think the ports should only set something like:
USE_JBUILD=yes
and the users should be able to use something like:
WITH_JBUILD=n
to set the number of threads.

Automatic setting of n would be something like kern.smp.cpus * 2,
but you should at least have 256m per thread, for some ports even 512m.

> Btw, do you think it's possible that a port can only be built with, n 
> parallel make jobs, but will fail with n+1?

No. I do not think this can be the case.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?461E8919.1080702>