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/zramswapand setPERCENTorSIZE. systemctl reload zramswap- If you are using zramswap this will empty swap, ensure you have enough free memory!