[uClinux-dev] parallel compiles

David McCullough David_Mccullough at securecomputing.com
Wed Feb 6 20:13:39 EST 2008


Jivin Mike Frysinger lays it down ...
> is there a reason for forcing -j1 in sub-packages ?  we've dropped the -j1 in 
> {lib,user}/Makefile for the DIRS target and generally had great success.  you 
> can really feel the difference on an 8 or 16 proc system.  i also replaced 
> the -j1 for the _only targets with -j$(HOST_NCPU).

Interesting result,  do you have an measured build times with and
without the change ?  It would be nice to know,  and if the gains
justify the fixing of any potentially broken sub dirs :-)

> if a package fails to build in parallel, i think the correct answer is fix the 
> package in question.  if that is too burdensome, you can always force single 
> jobs in the one package directory rather than forcing everyone else.

It was merely an incremental approach,  we have/had quite a lot of "older"
packages in there and biting things off in small chunks keeps the build
machine running happily ;-).

If you have a patch,  send it in and I'll try it here and see how bad it
is for our builds,  if it's relatively isolated I am happy to fix up
some bits and include it,  anything that speeds builds is good,

Cheers,
Davidm

-- 
David McCullough,  david_mccullough at securecomputing.com,   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com


More information about the uClinux-dev mailing list