<?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>4392</bug_id>
          
          <creation_ts>2013-04-23 06:36:53 +0000</creation_ts>
          <short_desc>[Performance] sstate.bbclass: turn off some cache files&apos; generation</short_desc>
          <delta_ts>2013-10-03 15:00:10 +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>core</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32501</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-04-23 06:36:53 +0000</bug_when>
    <thetext>We save the following sstate cache files currently:
packagedata.tgz
packagedata.tgz.siginfo
package.tgz.siginfo
package.tgz
populate-sysroot.tgz
populate-sysroot.tgz.siginfo
populate-lic.tgz.siginfo
populate-lic.tgz
deploy-rpm.tgz
deploy-rpm.tgz.siginfo

The end user only needs populate-sysroot.tgz and deploy-rpm.tgz in theory, maybe we can add a configure variable to let the user turn off the other files&apos; generation (also turn off the .siginfo) to save the build time and disk space.

We may add some variables like: (turn on all of generation by default)

SSTATE_MODE[siginfo] = &quot;0&quot;
SSTATE_MODE[packagedata] = &quot;0&quot;
SSTATE_MODE[package] = &quot;0&quot;
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32503</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-23 07:23:59 +0000</bug_when>
    <thetext>The end user does at least need packagedata and populate-lic, otherwise those have to get rebuilt from scratch. The only data that is not strictly needed is package and that is required if you change package formats for example.

Before we start making things configurable, I&apos;d like to see performance numbers about the speed improvements this would give. I&apos;m not sure its worth adding extra code paths just for one sstate target.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32510</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-04-23 08:25:22 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The end user does at least need packagedata and populate-lic, otherwise
&gt; those have to get rebuilt from scratch. The only data that is not strictly
&gt; needed is package and that is required if you change package formats for
&gt; example.
&gt; 
&gt; Before we start making things configurable, I&apos;d like to see performance
&gt; numbers about the speed improvements this would give. I&apos;m not sure its worth
&gt; adding extra code paths just for one sstate target.

Hi RP, thanks for the review, it&apos;s not easy to disable the generation of these files, I will try it later to get the performance numbers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37570</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-03 15:00:10 +0000</bug_when>
    <thetext>Setting to VERIFIED as per above 2 comments. Please open a new bug if necessary.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>