The time Building the Linux image for the Yún

Building the Linux image for the Yún

http://playground.arduino.cc/Hardware/Yun

I use 8 cores CPU/8GB memory/60GB SSD box, the processing took 2.5 hours (with -j 9) . It took too long since at link "Don't get impatient here, this takes a few hours!" without -j 9. Anything wrong I did? How to speed up the building process. I did prefetch all the source code and save it at dl directory.

lscpu

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                8
On-line CPU(s) list:   0-7
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             2
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            15
Model:                 6
Stepping:              4
CPU MHz:               2992.503
BogoMIPS:              5985.20
Virtualization:        VT-x
L1d cache:             16K
L2 cache:              2048K
NUMA node0 CPU(s):     0-7

I run a 6 core 64 bit machine, 32 gig RAM, 1TB & 2TB raids on sata6, use -j7 V=99 and that seems similar to my build time. I can't say for sure I normally start the build and go drink beer;-) Make or GCC will try to guess how to build quickly so unless you specify -j1 it uses more than one thread.

If you only make small changes it takes 20-30 minutes. The build system puts together an entire system and just parsing the tree takes a lot of time. I know there are ways to limit what is built but haven't investigated them.