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?

I see full CPU usage on both cores with -j3, although I haven't looked
at that with -j2.  I *believe* -j2 will leave part of the available CPU
time unused on two cores.

(I believe this because compilation is both CPU- and I/O-bound, each at
a different point in the process.  If a single make job is writing to
the disk, it obviously isn't using one of the available CPUs.  Allowing
a third job to run will *usually* provide something else that's able to
use the CPU at those times.)

(Although that third job does tend to move around between cores a bit.
Depending on your processor's cache setup, this might negate some or all
of the benefit...)

If you haven't tried it, though, this probably isn't worth doing another
whole run to see what happens.  I'm just curious if you've seen whether
-j3 helps any more.  :-)

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to