From: "Richard Purdie" <email@example.com>
To: Peter Kjellerstedt <firstname.lastname@example.org>,
Cc: "email@example.com" <firstname.lastname@example.org>
Subject: Re: [poky] [PATCH] sstate: Add ZStandard compressor support
Date: Fri, 01 Oct 2021 14:16:42 +0100 [thread overview]
Message-ID: <email@example.com> (raw)
On Fri, 2021-10-01 at 13:13 +0000, Peter Kjellerstedt wrote:
> > -----Original Message-----
> > From: firstname.lastname@example.org <email@example.com> On Behalf
> > Of Henry Kleynhans via lists.yoctoproject.org
> > Sent: den 1 oktober 2021 12:11
> > To: firstname.lastname@example.org
> > Cc: email@example.com; firstname.lastname@example.org
> > Subject: [poky] [PATCH] sstate: Add ZStandard compressor support
> > This patch adds support to optionally use the Zstandard compressor 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 <email@example.com>
> > ---
> > meta/classes/sstate.bbclass | 49 +++++++++++++++++++++++-------
> > scripts/sstate-cache-management.sh | 40 ++++++++++++------------
> > 2 files changed, 58 insertions(+), 31 deletions(-)
> > diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> > index 92a73114bb..a73d631679 100644
> > --- a/meta/classes/sstate.bbclass
> > +++ b/meta/classes/sstate.bbclass
> > @@ -1,17 +1,30 @@
> > SSTATE_VERSION = "3"
> > +SSTATE_USE_ZSTD ?= "0"
> > +SSTATE_ZSTD_CLEVEL ?= "3"
> > +SSTATE_ZSTD_NTHREADS ?= "0"
> Do we really need to make this configurable? Can't we just decide
> to use zstd and be done with it?
I have to admit I was also wondering that. We started requiring zstd on the host
system so it may just be better to switch over?
next prev parent reply other threads:[~2021-10-01 13:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-01 10:11 [PATCH] sstate: Add ZStandard compressor support hkleynhans
2021-10-01 13:13 ` [poky] " Peter Kjellerstedt
2021-10-01 13:16 ` Richard Purdie [this message]
2021-10-01 13:44 ` Joshua Watt
2021-10-01 14:19 ` Henry Kleynhans
2021-10-01 13:52 ` Joshua Watt
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.