[distcc] Simple way to get SMP scalability

Jonas Jensen jbj at knef.dk
Mon Nov 4 20:44:01 GMT 2002


The distcc docs discuss a lot about the problems when one machine has
several CPUs, and the conclusion is that if one of your machines is a
4-way SMP you have to run 4 processes on all the other machines too.
Here's a 3-line proof-of-concept patch for my proposed solution: if a is
4-way, and b and c are UP you'll set
DISTCC_HOSTS='1%a 2%a 3%a 4%a b c'
and just run one or two processes per "host". What comes before the %
sign can be anything, the important thing is that it's different for
each processor so that different lockfiles are used.

Wouldn't something like this work?

/Jonas Jensen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: distcc-smp.diff
Type: text/x-patch
Size: 460 bytes
Desc: not available
Url : http://lists.samba.org/archive/distcc/attachments/20021104/81f3bb74/distcc-smp.bin


More information about the distcc mailing list