<?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>14692</bug_id>
          
          <creation_ts>2022-01-17 09:56:52 +0000</creation_ts>
          <short_desc>Use pressure stall information to stop queueing tasks</short_desc>
          <delta_ts>2023-10-25 19:08:19 +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>4.1</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Belloni">alexandre.belloni</reporter>
          <assigned_to name="Randy MacLeod">randy.macleod</assigned_to>
          <cc>Aryaman.Gupta</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tvgamblin</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92332</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2022-01-17 09:56:52 +0000</bug_when>
    <thetext>The kernel now exports the information on the pressure the system experiences in /proc/pressure.

It would be great to use that information and avoid starting new tasks when the cpu, memory or io pressure is too high.

A variable should allow the user to configure the threshold and behaviour, similar to what BB_DISKMON_DIRS does. However, a new action needs to be created as STOPTASKS will stop the build and we want the bitbake to resume starting tasks once the pressure goes down.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96899</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:39 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96991</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandre Belloni">alexandre.belloni</who>
    <bug_when>2023-10-25 11:20:03 +0000</bug_when>
    <thetext>Does this need to be closed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96998</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-25 19:08:19 +0000</bug_when>
    <thetext>Fixed by a variety of commits:
https://git.openembedded.org/bitbake/log/?qt=grep&amp;q=pressure

The main / first one being:

https://git.openembedded.org/bitbake/commit/?id=502e05cbe67fb7a0e804dcc2cc0764a2e05c014f

It needs some tuning in conjunction with he jobserver RFC posted here: 

https://lore.kernel.org/openembedded-core/20230828124834.376779-1-martin@geanix.com/#r

but it&apos;s useful and helpful as is.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>