]> code.ossystems Code Review - openembedded-core.git/commit
sstate: Switch to ZStandard compressor support
authorHenry Kleynhans <hkleynhans@fb.com>
Tue, 12 Oct 2021 08:56:16 +0000 (09:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Oct 2021 21:36:20 +0000 (22:36 +0100)
commit0710e98f40ec7394567ede1f88f7c7bae306b925
treea07cfa772cae6699e9d758b1e33aa08de8aa0236
parent6c195acb400efeeebdacdd8d081b35f7417a694c
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 'tgz' 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 <hkleynhans@fb.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass
meta/lib/oeqa/selftest/cases/signing.py
meta/lib/oeqa/selftest/cases/sstatetests.py
scripts/sstate-cache-management.sh