[distcc] Simple way to get SMP scalability

mbp at samba.org mbp at samba.org
Mon Nov 4 22:48:01 GMT 2002


On  4 Nov 2002, Jonas Jensen <jbj at knef.dk> wrote:
> 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?

Yes, that would be fine as a workaround.  

-- 
Martin



More information about the distcc mailing list