On Feb 9, 2006, at 9:20 AM, Chris Espinosa wrote: On Feb 9, 2006, at 9:05 AM, Brad Oliver wrote: When I build with Xcode on my main G5, I have 6 PPC CPUs available around the house. Xcode will use those, and it will build *8* files at a time. When I build on the Intel iMac, it will usually build 2 files at a time (no other Intel Macs around). However, the other day it was building *6* files at a time.
Are you building universal binaries? Just a hunch - maybe it's distributing 6 files to the PPCs (for ppc compilation) and 2 more to the x86 (for x86 compilation). On your Intel box, perhaps it is building 6 PPC files (all on the PPCs you have) and no x86. The best way to check might be to watch the commandline output in xcode and see - it's hard to guess without more info.
No, it doesn't do this. Distributed compilation is currently limited to CPUs of the same architecture as the distribution host.
Try (from the command line) defaults read com.apple.Xcode PBXNumberOfParallelBuildSubtasks This should be unset, and the default is "number of CPUs in my machine." If it's set to, say, 8, then there's your answer.
I believe there is a bug in Xcode 2.2.1 and/or distcc which sends one task to each CPU@localhost, plus two tasks to each distcc process per CPU@distcc (or one task to each distcc process, two processes per CPU@distcc). I normally set PBXNumberOfParallelBuildSubtasks to 3, on a dual-processor machine, which is much faster than setting it to 2 or default, as it requires the extra task to saturate both CPU's.
|