Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: sstate compression
Date: Wed, 04 Jan 2012 15:33:09 +0000	[thread overview]
Message-ID: <1325691189.20759.14.camel@ted> (raw)
In-Reply-To: <1325689535.28005.59.camel@phil-desktop>

On Wed, 2012-01-04 at 15:05 +0000, Phil Blundell wrote:
> Has anybody experimented with the effects of using different/no
> compression for the sstate packages? 
> 
> I happened to notice that, for one of my builds, oe was spending a
> noticeable amount of time gzipping the tarfiles for sstate.  Obviously
> this indicates that I should get myself a better computer, but I do
> wonder whether there is a different tradeoff that can be made here.
> 
> Taking one of my webkit sstate archives as an example, the uncompressed
> tarfile is 112M. 
> 
> gzip (default compression) reduces this to 28M in about 4.2 seconds.
> gzip -1 reduces it to 33M in about 1.75 seconds.
> lzop reduces it to 40M in about 0.75 seconds.
> 
> Presumably the same sort of considerations apply to the compressed data
> inside .ipks, though of course the file sizes there tend to be rather
> smaller so I guess the impact is less.
> 
> I'm currently setting GZIP="-1" in my local configuration since that's
> easy to arrange and seems to produce a worthwhile benefit.  It's not
> totally obvious to me whether switching to lzo would be a net win or a
> loss, but either way this would involve hacking sstate.bbclass and I was
> too lazy to do that so far.

There has already been a patch allowing different compression mechanisms
from Matthew posted on this mailing list. Its not been merged yet as I'd
really prefer one format and we didn't (and still don't) have good
statistics about what the tradeoffs are.

Where the sstate tarballs are hitting the network, size probably is more
important than speed. There are also a number of oustanding bugs todo
with bootstrap of sstate alongside gzip-native, tar-native and so on
since things can fail when these are half installed in a sysroot and
something executes using them :/.

Cheers,

Richard




  reply	other threads:[~2012-01-04 15:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04 15:05 sstate compression Phil Blundell
2012-01-04 15:33 ` Richard Purdie [this message]
2012-01-04 16:31   ` McClintock Matthew-B29882
2012-01-04 16:32     ` Chris Larson
2012-01-04 16:41       ` Phil Blundell
2012-01-04 16:47         ` Richard Purdie
2012-01-04 16:53           ` Phil Blundell
2012-01-04 16:58             ` Richard Purdie
2012-01-04 16:55           ` McClintock Matthew-B29882

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=1325691189.20759.14.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox