On 06/02/10 18:53, Bryan Kadzban wrote:
> Bruce Dubbs wrote:
>> Bryan Kadzban wrote:
>>> Bruce Dubbs wrote:
>>>> I did some testing tonight using the environment variable
>>>> MAKEFLAGS=-j2.
>>> I assume you have a dual-core CPU -- have you tried -j3?  Any higher?
>>
>> Chapter 6 binutils:
>>
>> time make -j2 tooldir=/usr  68 seconds
>> time make -j3 tooldir=/usr  60 seconds
>>
>> time make -j2 check         55 seconds
>> time make -j3 check         53 seconds
>>
>>   From jhalfs -j1
>> Chapter 5 binutils   91 seconds
>> Chapter 6           170 seconds
>
> So a *much* bigger improvement going from 1 to 2, than from 2 to 3.
> Very likely not worth going higher than your CPU-count then.

CPUs or logical cores? I like to set it at the number of logical cores. 
I only have 32 bit intel machines but this works for me

if grep -q siblings /proc/cpuinfo
    then
    export JOBS=-j$(grep siblings /proc/cpuinfo|uniq|cut -d " " -f 2)
fi
echo make $JOBS

Most things build fine with make $JOBS but (as others have noted)
make $JOBS install has caused problems for me so I avoid it as not worth 
the trouble.
The only package that won't build parallel (openssl) isn't in LFS. I 
think Mplayer used to cause problems too but it's been a while since 
I've built that.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to