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] <rburton> LetoThe2nd: i use find $SSTATE -type f -atime +$DAYS -delete [12:19:22 pm] <rburton> where SSTATE is your sstate directory and DAYS is now many days old something needs to be before deleted
I'm missing something... What'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 "find" command different or better?
I suspect but haven't recently confirmed that it's simply much, much faster. If you don't have a big sstate-cache tree around to make copies of and confirm this assertion, let me know.
Also see: https://lists.yoctoproject.org/g/yocto/message/57052
https://git.yoctoproject.org/yocto-docs/commit/?id=6fd067639e7d6ae87bda9ea8795ebf54b8827056