<?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>5854</bug_id>
          
          <creation_ts>2014-02-20 12:01:36 +0000</creation_ts>
          <short_desc>Investigate sstate package compression improvements</short_desc>
          <delta_ts>2023-06-29 16:43:06 +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.7</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard> </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40489</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-02-20 12:01:36 +0000</bug_when>
    <thetext>We should look to see if there are any benefits in using xz (LZMA) to compress sstate packages over the current gzip, weighing up not only disk usage but also time to decompress on average hardware (and presumably availability of xz packages on supported host distros as well.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51747</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-06-17 09:05:07 +0000</bug_when>
    <thetext>An old, old patch (that was not merged) that relates to this:

http://lists.openembedded.org/pipermail/openembedded-core/2011-December/052656.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76843</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-09-14 15:20:52 +0000</bug_when>
    <thetext>We did try xz but the issue is the build slow down in generating these.

There is perhaps the idea of a server side process which converted .tgz -&gt; tar.xz. This would mean the code checking sstate servers for multiple different compression types. Or we could have the code just decompress automatically and use a standard extension. Regardless, more thought needed...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95845</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-06-29 14:49:21 +0000</bug_when>
    <thetext>We switched to zstd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95866</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-06-29 16:43:06 +0000</bug_when>
    <thetext>Already changed in October 2021:

sstate: Switch to ZStandard compressor support
This patch switches the compressor from Gzip to ZStandard for ssate cache
files.

Zstandard compression provides a significant improvement in
decompression speed as well as improvement in compression speed and disk
usage over the &apos;tgz&apos; format in use.  Furthermore, its configurable
compression level offers a trade-off between time spent compressing
sstate cache files and disk space used by those files.  The reduced disk
usage also contributes to saving network traffic for those sharing their
sstate cache with others.

Zstandard should therefore be a good choice when:
* disk space is at a premium
* network speed / resources are limited
* the CI server can sstate packages can be created at high compression
* less CPU on the build server should be used for sstate decompression

Signed-off-by: Henry Kleynhans &lt;hkleynhans@fb.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;



https://git.openembedded.org/openembedded-core/commit/?id=0710e98f40ec7394567ede1f88f7c7bae306b925</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>