Set up zramswap on Debian 12
I strongly recommend zramswap for all systems. It seems to be faster than disk swap, and it saves precious SSD write cycles.
- Acquire a root shell
apt install zram-tools
- Edit
/etc/default/zramswap
and setPERCENT
orSIZE
. systemctl reload zramswap
- If you are using zramswap this will empty swap, ensure you have enough free memory!