Skip to contentSkip to conversation

distcc/ccache?

DISCUSSION Jon Masters 5 participants 6 messages Dec 8, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

Anyone happen to know if poky plays nicely with distcc?

Jon.

#1 lore raw
Quoted 1 line · Jon Masters

Anyone happen to know if poky plays nicely with distcc?

I think most success has been with icecc in the past and there is a icecc class which has code to enable that. It turns out that compiling isn't the main bottleneck in builds though and icecc isn't something we test in Poky at this time, we just provide the same class OE has which may or may not work.

Cheers,

Richard

#2 lore raw
Quoted 8 lines · Richard Purdie
Quoted 1 line · Jon Masters

Anyone happen to know if poky plays nicely with distcc?

I think most success has been with icecc in the past and there is a icecc class which has code to enable that. It turns out that compiling isn't the main bottleneck in builds though and icecc isn't something we test in Poky at this time, we just provide the same class OE has which may or may not work.

The openembedded class has been working recently but indeed, that's not the bottleneck you're likely to run into anymore.

Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#3 lore raw
In reply to Richard Purdie
Quoted 8 lines · Richard Purdie
Quoted 1 line · Jon Masters

Anyone happen to know if poky plays nicely with distcc?

I think most success has been with icecc in the past and there is a icecc class which has code to enable that. It turns out that compiling isn't the main bottleneck in builds though and icecc isn't something we test in Poky at this time, we just provide the same class OE has which may or may not work.

Thanks. Someone else pointed me to Icecream, too. I traditionally do the toolchain copy manually to each build host at home, but apparently if I read up on and use Ice it will do all of that toolchain management too.

Thanks,

Jon.

#4 lore raw

Op 8 dec 2010, om 16:21 heeft Jon Masters het volgende geschreven:

Quoted 11 lines · Richard Purdie
Quoted 8 lines · Jon Masters
Quoted 1 line

Anyone happen to know if poky plays nicely with distcc?

I think most success has been with icecc in the past and there is a icecc class which has code to enable that. It turns out that compiling isn't the main bottleneck in builds though and icecc isn't something we test in Poky at this time, we just provide the same class OE has which may or may not work.

Thanks. Someone else pointed me to Icecream, too

I'm having a massive reply-to fail here since this list does NOT munge reply-to for a change :)

#5 lore raw
In reply to Richard Purdie
Quoted 8 lines · Richard Purdie
Quoted 1 line · Jon Masters

Anyone happen to know if poky plays nicely with distcc?

I think most success has been with icecc in the past and there is a icecc class which has code to enable that. It turns out that compiling isn't the main bottleneck in builds though and icecc isn't something we test in Poky at this time, we just provide the same class OE has which may or may not work.

While not distributed compiling related, the following might add some perspective as to what to expect with more compile nodes.

I tried a poky-image-sdk (qemux86_64) build on a 4 socket Westmere machine (40 physical cores total, 80 hardware threads). I set my local.conf to:

BB_NUMBER_THREADS = "160"
PARALLEL_MAKE = "-j 160"

After a warm-up build (get everything downloaded) I cleaned tmp and sstate-cache and did another build. This one build took 118 minutes to complete.

$ time bitbake poky-image-sdk

<time passes & bitbake spews messages like g++ and a buggy stl program>

NOTE: Tasks Summary: Attempted 5619 tasks of which 300 didn't need to be rerun and 0 failed.

real    117m56.025s
user    961m28.822s
sys     464m27.318s

I checked the CPU load periodically, often finding it under 10%. While not a scientific test, what this tells me is that the build is relatively serialized and/or much of the process is blocked on I/O. It also suggests that a really big machine isn't all that helpful in speeding up builds (although 117m is nothing to be ashamed of!).

One could likely run four parallel builds on this system and have them complete in about the same amount of time. I ran 4 copies of the above load (even leaving the parallelism settings at 160). All 4 builds completed in between 186 and 192 minutes. The system load average about 120 (just eyeballing it), with peaks as high as 700. All four builds used the same disk, suggesting build dependencies leading to build serialization is the primary bottleneck. So while you definitely want a good number of CPUs to build, that number tapers off rapidly. Somewhere around 10 I'd guess (for single builds). I'd have to run a number of more tests to be sure.

Anyway, hopefully that adds a datapoint of some use.

Signature · 2 lines
Darren Hart
Yocto Linux Kernel