Robin's Blog

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.

  1. Acquire a root shell
  2. apt install zram-tools
  3. Edit /etc/default/zramswap and set PERCENT or SIZE.
  4. systemctl reload zramswap - If you are using zramswap this will empty swap, ensure you have enough free memory!

#linux #debian

Reply to this post by email ↪