Configure zRam for in-memory swapping on Debian
Very useful for Proxmox deployment where ZFS is used. (It's not smart to use a zvol as disk swap, especially on an SSD.)
- Install zram: apt install zram-tools
- Configure in /etc/default/zramswap
- Restart zram: service zramswap restart
Easy!