Thursday, January 15, 2009

-j4

I've been aware of make's parallel building capabilities forever. I just never felt motivated to try them out (being usually on my ancient single-core laptop) Now that I'm on a quad-core box full time I figured it'd be worth a shot.

wow.

make -j4 really was close to 4 times as fast on a kernel build.

<3

1 comments:

Chris said...

You can probably get more agressive than that ... We've found that a value of roughly ${CORES}*2 or ${CORES}*2+1 works well for Firefox builds -- e.g., -j4 or -j5 on dual-core and -j8 on quad-core -- depending on what we're compiling. Not sure why this is, but I suspect that with two jobs per core, there's a lower occurrence of stalling waiting for disk (i.e., if one job on a core is stalled, the other probably isn't). Program type and cache size also seem to come into play, YMMV.

-Chris Tyler