raphael / linux-samus

Linux 4.16 on Chromebook Pixel 2015
GNU General Public License v2.0
181 stars 36 forks source link

Parallel compilation #165

Closed twoscomplement closed 7 years ago

twoscomplement commented 7 years ago

Cut down build time - the hardware has two real CPU cores, make use of them.

ehegnes commented 7 years ago

As I understand it, build jobs still benefit from hyperthreading. Would -j4 not be more appropriate?

twoscomplement commented 7 years ago

-j4 will be a little faster, with a greater loss of system responsiveness during compilation. I would be happy with -j4, but considered the more conservative -j2 would be less disruptive in general.

-j2, -j3, -j4, I don't mind - but a faster build sure would be nice to have.

ehegnes commented 7 years ago

You make a good case. -j2 does seem like a good compromise.

raphael commented 7 years ago

Thanks! In my experience -j4 is fine and does cut down the time it takes to compile significantly (this is how I compile the kernel for each release). Would you mind adjusting the PR?

twoscomplement commented 7 years ago

done

raphael commented 7 years ago

Thanks!