Zram

From campisano.org
Jump to navigation Jump to search

Disable swap

  • disable the current swap
swapoff -a
  • disable the swap also after a reboot

edit /etc/fstap and comment the relative lines

Install zram-tools

apt-get install zram-tools
zramswap status

Tune your zram

  • stop zram
zramswap stop
  • edit zram config

edit /etc/default/zramswap, I'm using those settings

ALGO=lz4
PERCENT=25
PRIORITY=100
  • start zram again
zramswap start

Reference