All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>,
	"hkleynhans@fb.com" <hkleynhans@fb.com>,
	"poky@lists.yoctoproject.org" <poky@lists.yoctoproject.org>
Cc: "rmikey@fb.com" <rmikey@fb.com>
Subject: Re: [poky] [PATCH] sstate: Add ZStandard compressor support
Date: Fri, 01 Oct 2021 14:16:42 +0100	[thread overview]
Message-ID: <99fdc768454aa12f73bb863f19e6026dda17f76a.camel@linuxfoundation.org> (raw)
In-Reply-To: <9e6cc87314854416861d13b5d1ec887c@axis.com>

On Fri, 2021-10-01 at 13:13 +0000, Peter Kjellerstedt wrote:
> > -----Original Message-----
> > From: poky@lists.yoctoproject.org <poky@lists.yoctoproject.org> On Behalf
> > Of Henry Kleynhans via lists.yoctoproject.org
> > Sent: den 1 oktober 2021 12:11
> > To: poky@lists.yoctoproject.org
> > Cc: hkleynhans@fb.com; rmikey@fb.com
> > 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 <hkleynhans@fb.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?

Cheers,

Richard




  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

Reply instructions:

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99fdc768454aa12f73bb863f19e6026dda17f76a.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=hkleynhans@fb.com \
    --cc=peter.kjellerstedt@axis.com \
    --cc=poky@lists.yoctoproject.org \
    --cc=rmikey@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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.