• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Building more files than CPUs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building more files than CPUs


  • Subject: Re: Building more files than CPUs
  • From: Shaun Wexler <email@hidden>
  • Date: Thu, 9 Feb 2006 12:14:55 -0800

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.
-- 
Shaun Wexler
MacFOH
http://www.macfoh.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Building more files than CPUs (From: Brad Oliver <email@hidden>)
 >Re: Building more files than CPUs (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Using XCode to target other CPUs?
  • Next by Date: Re: breakpoint in szone_error
  • Previous by thread: Re: Building more files than CPUs
  • Next by thread: Re: Building more files than CPUs
  • Index(es):
    • Date
    • Thread