<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2528</bug_id>
          
          <creation_ts>2012-06-01 14:41:08 +0000</creation_ts>
          <short_desc>A bitbake build should automatically use all cores.</short_desc>
          <delta_ts>2014-03-21 12:37:56 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>21 March 2014: Reset documentation flag to &quot;Done&quot;</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy MacLeod">randy.macleod</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>evadeflow</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21790</commentid>
    <comment_count>0</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2012-06-01 14:41:08 +0000</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26315</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-10-08 08:15:25 +0000</bug_when>
    <thetext>*** Bug 3246 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40057</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-01-28 11:59:52 +0000</bug_when>
    <thetext>Fixed in mater http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ecb981390085637725c6f6f11509d866a9476c49</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41569</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-03-21 12:37:56 +0000</bug_when>
    <thetext>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 &quot;Done&quot;.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>