enabling lz4 compression in zswap (ie, making zswap more efficient)
I've found the solution in this Russian Debian Forum. I had to run these extra steps
sudo su
echo lz4 >> /etc/initramfs-tools/modules
echo lz4_compress >> /etc/initramfs-tools/modules
update-initramfs -u
reboot
And run dmesg | grep -i zswap
, to see
[ 0.715952] zswap: loaded using pool lz4/zbud
Excited to see how the performance improves.
edit: I have written my steps in this guide. You can check if you face issues enabling zswap.