zram-config defaulting to zstd

Rafael David Tinoco rafaeldtinoco at ubuntu.com
Wed Dec 11 13:43:32 UTC 2019


Hello Fabio,

On 11/12/2019 09:01, Fábio Lima wrote:
> Package zram-config now defaults compression algorithm to lzo.
> What about to change to zstd?
> 
> Inserting into line 21 of /usr/bin/init-zram-swapping would do it:
> `echo zstd > /sys/block/zram${DEVNUMBER}/comp_algorithm`

You can open a bug against zram-config package:

https://packages.ubuntu.com/focal/zram-config -> bug reports

And suggest that change in a patch.

Perhaps, instead of hard coding the comp_algorithm, having a debconf
option to a high priority would be more appropriate, as you can always
default to one specific algorithm.

> zram-config is something real useful. In a context of inexpensive RAM, It
> is more wise disable swap on disk and use a compressed zram.
> zstd is an algo perfect for that. It best balance compression ratio and cpu
> usage.





More information about the Ubuntu-devel-discuss mailing list