<div dir="ltr">....Or even better: refactor the script and use zramctl. The man page even has samples and howtos to setup a zram swap.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em qua., 11 de dez. de 2019 às 09:01, Fábio Lima <<a href="mailto:fabio@fabiolima.eti.br">fabio@fabiolima.eti.br</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">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>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.<br>zstd is an algo perfect for that. It best balance compression ratio and cpu usage.<br clear="all"><div><br></div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---------------------------------------------------</div><div>Fábio Lima (<a href="mailto:fabio@fabiolima.eti.br" target="_blank">fabio@fabiolima.eti.br</a>)</div><div><a href="https://www.linkedin.com/in/fabiolimabr" target="_blank">https://www.linkedin.com/in/fabiolimabr</a><br></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>---------------------------------------------------</div><div>Fábio Lima (<a href="mailto:fabio@fabiolima.eti.br" target="_blank">fabio@fabiolima.eti.br</a>)</div><div><a href="https://www.linkedin.com/in/fabiolimabr" target="_blank">https://www.linkedin.com/in/fabiolimabr</a><br></div></div></div></div></div></div></div>