script to enable zram for raspberry pi
Switch branches/tags
Nothing to show
Clone or download
novaspirit Merge pull request #3 from Cat5TV/master
Make core count dynamic.
Latest commit 98863b2 Feb 5, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information. Update Feb 5, 2018 Make core count dynamic Feb 5, 2018


Script to dynamically enable ZRAM on a Raspberry Pi or other Linux system.

Automatically detects the number of CPU cores to allocate to ZRAM computation, disables existing swap and enables ZRAM swap.

Download the script and copy to /usr/bin/ folder

sudo wget -O /usr/bin/

make file executable

sudo chmod +x /usr/bin/

edit /etc/rc.local file to run script on boot

sudo nano /etc/rc.local

add line before exit 0

/usr/bin/ &