On Sun, 20 Jun 2021 23:26:35 +0200 Marco d'Itri <m...@linux.it> wrote:
> On Jun 20, Andres Freund <and...@anarazel.de> wrote:
>
> > Since version 28 kmod supports zstd compression [1]. As using xz module 
> > compression
> > makes building kernels painfully slow, and zstd achieves pretty decent 
> > ratios
> > at a much lower compression time, it would be good to have support for that
> > zstd in kmod.
> The Debian kmod package supports lzma, but has never enabled support for
> xz.

These days, lzma/xz support is combined into one, and thus currently
kmod in sid does provide support for xz

(sid-amd64)root@ottawa:~# dpkg-query -W kmod
kmod 29-1
(sid-amd64)root@ottawa:~# kmod --version
kmod version 29
-ZSTD +XZ -ZLIB +LIBCRYPTO -EXPERIMENTAL

> If you are interested to pursue this then please provide statistics
> (space saved, time and memory for compression and decompression) for
> zstd and xz and use cases.

zstd offers lower memory usage, lower cpu time usage, whilst having
decent compression ratios (less than xz, but more than anything else).
Overall the speed of zstd outperforms the compression ratio loss as
has been measured multiple times in terms of boot speed context.

libzstd would not be an additional dependency on most systems, as
libapt-pkg6.0 already depends on libzstd.

Please consider enabling libzstd support.

Regards,

Dimitri.

Reply via email to