[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Possible abuse of dpkg-deb -z9 for xz compressed binary packages



On Tue, 02 Sep 2014, Jonathan Dowland wrote:
> On Tue, Sep 02, 2014 at 01:45:30PM +0200, Adam Borowski wrote:
> > For any standardish font, taking any extra memory is a no-no.  You might be
> > running in a chroot on a 256MB RAM phone, etc.
> > 
> > On the other hand, for a 400MB game, not using -z9 is a pure waste of space.
> 
> They're all arch: all though, right, so in practice no buildds are actually
> building these packages?

Extreme mode uses more CPU than the equivalent non-extreme mode during
*compression*.  Memory requirements are just a little higher in extreme
mode.  It changes nothing on the decompressor side.  It can produce a larger
compressed stream than the non-extreme mode.

Higher compression modes have MUCH higher memory requirements both for the
compressior and the decompressor.  For -z9, it is as bad as ~670MiB to
compress, and ~65MiB to decompress.  -z6 requires ~94MiB to compress, and
~9MiB to decompress.

Refer to the xz manpage for details.

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: