<?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>15182</bug_id>
          
          <creation_ts>2023-08-04 10:54:55 +0000</creation_ts>
          <short_desc>Document the method to prune sstate-cache of old entries</short_desc>
          <delta_ts>2023-12-15 17:33:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>unspecified</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>4.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yoann Congal">yoann.congal</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>jester</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yoann.congal</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>96197</commentid>
    <comment_count>0</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2023-08-04 10:54:55 +0000</bug_when>
    <thetext>We should put in the manual the method to prune sstate-cache of old entries

Maybe here : https://docs.yoctoproject.org/dev-manual/disk-space.html#purging-duplicate-shared-state-cache-files ?

This method is flying around regularly :
[12:18:58 pm] &lt;rburton&gt; LetoThe2nd: i use find $SSTATE -type f -atime +$DAYS -delete
[12:19:22 pm] &lt;rburton&gt; where SSTATE is your sstate directory and DAYS is now many days old something needs to be before deleted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96239</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-08-10 15:44:06 +0000</bug_when>
    <thetext>I&apos;m missing something...

What&apos;s the added value of the suggested command...
find $SSTATE -type f -atime +$DAYS -delete

... when the docs already suggest to use:
sstate-cache-management.sh --remove-duplicated --cache-dir=build/sstate-cache

This documented and dedicated command seems to do the job. How is the above &quot;find&quot; command different or better?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96241</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-08-10 21:36:25 +0000</bug_when>
    <thetext>I suspect but haven&apos;t recently confirmed that it&apos;s simply much, much faster.
If you don&apos;t have a big sstate-cache tree around to make copies of and confirm this assertion, let me know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96242</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-08-10 21:38:28 +0000</bug_when>
    <thetext>Also see:
https://lists.yoctoproject.org/g/yocto/message/57052</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97585</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2023-12-15 17:33:51 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/yocto-docs/commit/?id=6fd067639e7d6ae87bda9ea8795ebf54b8827056</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>