edison-fw / meta-intel-edison

Here is the meta-intel-edison that builds, tries to stay up to date. Master is based on Yocto Poky Gatesgarth LTS 5.10.yy vanilla kernels. It builds a 32bit kernel (Gatesgarth branch 64bit) with ACPI enabled and corresponding rootfs. Telegram group: https://t.me/IntelEdison Web-site:
https://edison-fw.github.io/meta-intel-edison/
MIT License
60 stars 38 forks source link

Improve build time for CPU with more than 4 cores. #62

Closed ochrin closed 5 years ago

ochrin commented 5 years ago

Small fix which let Yocto decides how many threads are needed for building Yocto. It will be normally be set to number of cores. If SETUP_ARGS is not defined with either one or both of these parameters --bb_number_thread=x --parallel_make=y when calling make setup, Yocto will set itself the number of threads to be used and how many cpu to be used for parallel makes. In my case with 16 cores, with the old setup.sh (4 threads, 8 cpus for parallel make) I needed 106mn to build the image with bitbake, with new setup.sh, I need 73mn.

htot commented 5 years ago

Since htot was ahead of edison-fw 5 additional commits were also pushed here. I want to defer those until I have oobe ready and all can go in after review.

56bfa51 LGTM by inspection. Nice improvement in speed too. Probably there will even be a speed improvement on dual cores due to better matching of threads with cores (when using the defaults).

So I'm cherry-picking this last patch and closing this PR.