public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2 0/1] sstate: do not keep intermediate sstate files
@ 2022-02-24  7:36 Uladzimir Bely
  2022-02-24  7:36 ` [PATCH v2 1/1] " Uladzimir Bely
  2022-02-24  7:56 ` [PATCH v2 0/1] " Schmidt, Adriaan
  0 siblings, 2 replies; 6+ messages in thread
From: Uladzimir Bely @ 2022-02-24  7:36 UTC (permalink / raw)
  To: isar-users

Sstate is quite demanding for disk space. And it often causes failures
in CI, related to 'out-of-space'.

This patchset minimizes space usage by intermediate state files by
removing them:
- after sstate-cache populated: with separate task in task queue
- after sstate-cache unpacked: by direct call of this task

Some results shown below for three different cases:

- sstate disabled;
- sstate enabled;
- sstate enabled + cleanup patch.

bullseye-arm64 cross build with full IMAGE_INSTALL list:

$ sudo du -sh build-*
5,7G    build-nosstate
12G     build-sstate
7,6G    build-sstate-cleanup

bullseye-arm64 cross build with empty IMAGE_INSTALL list:

$ sudo du -sh build-*
2,5G    build-nosstate
5,3G    build-sstate
3,4G    build-sstate-cleanup

bullseye-amd64 native build with empty IMAGE_INSTALL list:

$ sudo du -sh build-*
3,2G    build-nosstate
6,4G    build-sstate
4,2G    build-sstate-cleanup


Changes since v1:
- patchset renamed from "sstate: compress rootfs sstate files";
- sstate intermediate files compression replaced by removing;
- dpkg intermediate files are also handled.

Uladzimir Bely (1):
  sstate: do not keep intermediate sstate files

 meta/classes/dpkg-base.bbclass                      | 7 +++++++
 meta/classes/rootfs.bbclass                         | 7 +++++++
 meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 7 +++++++
 3 files changed, 21 insertions(+)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-24 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24  7:36 [PATCH v2 0/1] sstate: do not keep intermediate sstate files Uladzimir Bely
2022-02-24  7:36 ` [PATCH v2 1/1] " Uladzimir Bely
2022-02-24  7:56 ` [PATCH v2 0/1] " Schmidt, Adriaan
2022-02-24  8:19   ` Uladzimir Bely
2022-02-24  9:04     ` Schmidt, Adriaan
2022-02-24 15:57       ` Henning Schild

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox