Hi Michael

On 23.11.2021 10:14, Michael Opdenacker wrote:
Greetings,

On 11/19/21 5:06 PM, Michael Opdenacker wrote:
Signed-off-by: Michael Opdenacker <michael.opdenac...@bootlin.com>
---
  documentation/dev-manual/common-tasks.rst | 25 ++++++++++++++++++++++-
  1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/documentation/dev-manual/common-tasks.rst 
b/documentation/dev-manual/common-tasks.rst
index 3eead147a3..37612c84b7 100644
--- a/documentation/dev-manual/common-tasks.rst
+++ b/documentation/dev-manual/common-tasks.rst
@@ -6242,8 +6242,11 @@ Changing the listed common targets is as easy as editing 
your version of
  ``conf-notes.txt`` in your custom template configuration directory and
  making sure you have ``TEMPLATECONF`` set to your directory.
+Conserving Disk Space
+=====================
+
  Conserving Disk Space During Builds
-===================================
+-----------------------------------
To help conserve disk space during builds, you can add the following
  statement to your project's ``local.conf`` configuration file found in
@@ -6257,6 +6260,26 @@ building a recipe once the recipe is built. For more 
information on
  :ref:`rm_work <ref-classes-rm-work>` class in the
  Yocto Project Reference Manual.
+Purging Duplicate Shared State Cache Files
+-------------------------------------------
+
+After multiple build iterations, the Shared State (sstate) cache can contain
+duplicate cache files for a given package, while only the most recent one
+is likely to be reusable. The following command purges all but the
+newest sstate cache file for each package::
+
+   sstate-cache-management.sh --remove-duplicated 
--cache-dir=build/sstate-cache
+
+This command will ask you to confirm the deletions it identifies.
+
+Note::
+
+   The duplicated sstate cache files of one package must have the same
+   architecture, which means that sstate cache files with multiple
+   architectures are not considered as duplicate.
+
+Run ``sstate-cache-management.sh`` for more details about this script.
+
  Working with Packages
  =====================
Did anyone have time to have a look at what I wrote ? There may be
better ways to purge the sstate cache files.
Thanks in advance
Michael.

The description looks good to me. By other ways you mean other usage scenarios of sstate-cache-management.sh script or by means of something else?

Vyacheslav

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#158827): 
https://lists.openembedded.org/g/openembedded-core/message/158827
Mute This Topic: https://lists.openembedded.org/mt/87255323/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to