<div dir="ltr">The default appears to be lzo-rle which was introduced by ARM devs as a kernel default back in March 2019 as a way to get better performance.<div><br></div><div>They demonstrated a 27% improvement over lzo.<br><div><br></div><div><a href="https://www.phoronix.com/scan.php?page=news_item&px=ZRAM-Linux-5.1-Better-Perform">https://www.phoronix.com/scan.php?page=news_item&px=ZRAM-Linux-5.1-Better-Perform</a><br></div><div><br></div><div>I would suggest getting some evidence to backup a suggestion to change a default like this.</div></div><div><br></div><div>What use cases does zstd give better compression?</div><div>What use cases does zstd perform better?<br></div><div>When is lzo/lzo-rle/zstd the suggested choice?</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 11, 2019 at 6:44 AM Rafael David Tinoco <<a href="mailto:rafaeldtinoco@ubuntu.com">rafaeldtinoco@ubuntu.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Fabio,<br>
<br>
On 11/12/2019 09:01, Fábio Lima wrote:<br>
> Package zram-config now defaults compression algorithm to lzo.<br>
> What about to change to zstd?<br>
> <br>
> Inserting into line 21 of /usr/bin/init-zram-swapping would do it:<br>
> `echo zstd > /sys/block/zram${DEVNUMBER}/comp_algorithm`<br>
<br>
You can open a bug against zram-config package:<br>
<br>
<a href="https://packages.ubuntu.com/focal/zram-config" rel="noreferrer" target="_blank">https://packages.ubuntu.com/focal/zram-config</a> -> bug reports<br>
<br>
And suggest that change in a patch.<br>
<br>
Perhaps, instead of hard coding the comp_algorithm, having a debconf<br>
option to a high priority would be more appropriate, as you can always<br>
default to one specific algorithm.<br>
<br>
> zram-config is something real useful. In a context of inexpensive RAM, It<br>
> is more wise disable swap on disk and use a compressed zram.<br>
> zstd is an algo perfect for that. It best balance compression ratio and cpu<br>
> usage.<br>
<br>
<br>
-- <br>
Ubuntu-devel-discuss mailing list<br>
<a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com" target="_blank">Ubuntu-devel-discuss@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br>
</blockquote></div>