[distcc] More efficient multiple file compiles?
Benjamin R. Haskell
distcc at benizi.com
Mon Apr 27 21:41:40 GMT 2009
On Mon, 27 Apr 2009, Fergus Henderson wrote:
> On Mon, Apr 27, 2009 at 2:20 PM, Tom Holly <hollydt at gmail.com> wrote:
> I think mainly I just want to know when in the step by step procedure of
> building/installing/running distcc, does the make -j come into play?
>
>
> Use "make -j" (or "pump make -j") when running distcc, after you have
> already built and installed distcc.
>
How was 'make -j12 CC=distcc <target>' failing for you? That should be
the right invocation, assuming you're not trying to do it before distcc is
installed.
e.g.:
$ cd /usr/src/linux
$ make -j4 CC=distcc
[...]
CC kernel/exec_domain.o
CC arch/x86/kernel/io_delay.o
CC mm/bootmem.o
CC arch/x86/kernel/rtc.o
CC arch/x86/kernel/trampoline.o
CC mm/filemap.o
CC kernel/panic.o
[...]
Notice how it's switching between the kernel/ arch/x86/kernel/ and mm/
directories. That's because the CC steps are being run simultaneously, as
seen by distccmon-text (at a different point in time):
$ distccmon-text
31766 Preprocess buffer.c 192.168.2.23[0]
31755 Compile ipcns_notifier.c 192.168.2.23[1]
31774 Preprocess clockevents.c 192.168.2.23[1]
31781 Compile localhost[2]
-- Ben
More information about the distcc
mailing list