<?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>10583</bug_id>
          
          <creation_ts>2016-11-02 14:54:18 +0000</creation_ts>
          <short_desc>buildstats.bbclass + pybootchart: record and render system utilization statistics</short_desc>
          <delta_ts>2016-12-14 21:22:48 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Patrick Ohly">patrick.ohly</assigned_to>
          <cc>jose.perez.carranza</cc>
    
    <cc>markus.lehtonen</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          <qa_contact name="Juan Ramos">juan.fernandox.ramos.frayle</qa_contact>
          <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>67865</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-11-02 14:54:18 +0000</bug_when>
    <thetext>To understand where bottlenecks are it is useful to have graphs of CPU, RAM and disk bandwidth utilization during the entire build. In addition, when using rm_work.bbclass, the currently consumed disk space is also interesting.

These values need to be sampled at regular time intervals. Small intervals yield more detailed information, but also consume more disk space.

Code is available: https://github.com/pohly/poky/commits/rmwork

Open questions: should sampling be active by default when buildstats.bbclass is active? How often should be sampled? Is further work needed to reduce the disk space required to store the samples (which would be possible)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68096</commentid>
    <comment_count>1</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-11-08 16:27:33 +0000</bug_when>
    <thetext>RP suggested that sampling should be active by default. The bitbake heartbeat patch needs further work to make the interval configurable and should default to 1s (BB_HEARTBEAT_EVENT = &quot;1.0&quot;). Allowing time units was considered, with no clear consensus (it would be nicer, but there&apos;s no established standard for it). When recording by default, some additional work to lower the amount of stored data and thus the required parsing time would be useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68957</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2016-12-08 17:41:48 +0000</bug_when>
    <thetext>Merged into bitbake and OE-core master (&quot;buildstats: add system state sampling&quot;), with condensed data stored in data files and enabled by default when inheriting buildstats.bbclass.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>