Bug 2528 - A bitbake build should automatically use all cores.
Summary: A bitbake build should automatically use all cores.
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Low enhancement
Target Milestone: Future
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: 21 March 2014: Reset documentation fl...
: 3246 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-01 14:41 UTC by Randy MacLeod
Modified: 2014-03-21 12:37 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Done (doc changes complete)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy MacLeod 2012-06-01 14:41:08 UTC
bitbake or rather poky requires that the user specify the number of jobs and the number of packages to build in parallel. The default should be determined automatically. Furthermore if the user specifies too many jobs and tasks, the oom-killer can be invoked. There should be a mechanism to automate fairly optimal builds. 

On some smaller systems, we've seen the oom-killer run even with packages = 4, jobs =4 for example. In that case it was the qemu package that was always killed. We were able to use the make option: -l [load], --load-average[=load]
     Specifies that no new jobs (commands) should be started 
     if there are others jobs running and the load average is 
     at least load (a floating-point number). 
to get a fast but controlled build. Perhaps bitbake should also monitor the load average to decide is additional packages should be started.
Comment 1 Richard Purdie 2012-10-08 08:15:25 UTC
*** Bug 3246 has been marked as a duplicate of this bug. ***
Comment 3 Scott Rifenbark 2014-03-21 12:37:56 UTC
Hi, 

The documentation portion of this bug is fixed.  Two instances within the manual set were adjusted to reflect the fix.

http://www.yoctoproject.org/docs/1.6/yocto-project-qs/yocto-project-qs.html#building-image

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#var-PARALLEL_MAKE

The variable glossary for BB_NUMBER_THREADS had already been changed to reflect the new default.

I am setting the documentation flag to "Done".

Scott