<?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>3995</bug_id>
          
          <creation_ts>2013-03-08 03:29:24 +0000</creation_ts>
          <short_desc>Disk space monitor setting in local.conf.sample is incorrect</short_desc>
          <delta_ts>2013-04-12 08:21:42 +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.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>ke.zou</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30558</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-03-08 03:29:24 +0000</bug_when>
    <thetext>Branch: Poky/master
Git rev: d823759b4594143d522eae0b2a2498436a6dcb1e

The default setting for disk space monitor in local.conf.sample is not correct:
BB_DISKMON_DIRS = &quot;\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K&quot;

With the same directory (e.g. TMPDIR), the ABORT action will overwrite the previous STOPTASKS action, so the STOPTASKS action will never be active.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30666</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-03-13 07:16:54 +0000</bug_when>
    <thetext>The current problem is that one disk partition only can have one action, I will enhance monitordisk.py to let one disk partition can have many actions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30879</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-03-20 02:32:26 +0000</bug_when>
    <thetext>The bitbake related code has merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=af9f5843d997455af66a2a1b63de530d14f1ff2b

I will send a patch for updating the samples in local.conf.sample.extended</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32031</commentid>
    <comment_count>3</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2013-04-12 08:21:42 +0000</bug_when>
    <thetext>Tested in 12.Apr.2013 master branch

Test step:
1.
change Disk space threshold in conf/local.conf to a big one
for instance:
BB_DISKMON_DIRS = &quot;\
    STOPTASKS,${TMPDIR},70G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K&quot;

2.
build any image. Task stopped with log:

Build Configuration:
BB_VERSION        = &quot;1.18.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;powerpc-poky-linux&quot;
MACHINE           = &quot;qemuppc&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20130412&quot;
TUNE_FEATURES     = &quot;m32 fpu-hard ppc603e&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:2a3f6772aadbe378259c87c05ab6f091866b63ef&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
WARNING: The free space of /home/kurtzou/git/poky/build/tmp (rootfs) is running low (62.326GB left)
ERROR: No new tasks can be excuted since the disk space monitor action is &quot;STOPTASKS&quot;!
NOTE: Tasks Summary: Attempted 626 tasks of which 626 didn&apos;t need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.



3. change threshold of every DIR and try. piece of logs below:

WARNING: The free space of /home/kurtzou/git/poky/build/downloads (rootfs) is running low (62.296GB left)
ERROR: No new tasks can be excuted since the disk space monitor action is &quot;STOPTASKS&quot;!
NOTE: Tasks Summary: Attempted 626 tasks of which 626 didn&apos;t need to be rerun and all succeeded.

WARNING: The free space of /home/kurtzou/git/poky/build/sstate-cache (rootfs) is running low (62.285GB left)
ERROR: No new tasks can be excuted since the disk space monitor action is &quot;STOPTASKS&quot;!
NOTE: Tasks Summary: Attempted 626 tasks of which 626 didn&apos;t need to be rerun and all succeeded.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>