Zram
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
- zram - Wikipedia
- zram.txt - kernel.org/doc
- prevent system freeze/unresponsiveness due to swapping run away memory usage - Super User
- zram vs zswap vs zcache Ultimate guide: when to use which one - Ask Ubuntu
- Difference between ZRAM and ZSWAP - Stack Overflow
- zram opinated benchmarks - reddit r/Fedora
- Zram swap on Debian and Linux Mint - Daniel Wayne Armstrong