This script will enable ZRAM on a Raspberry Pi or any other personal computer
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.
Install Parch Zram from your Raspberry Pi's shell promt:
git clone https://github.com/behdanisohrab/parch-zram
cd parch-zram
makepkg -sic
sudo systemctl enable parch-zram.service
git clone https://github.com/behdanisohrab/parch-zram
cd parch-zram
sudo chmod +x install.sh
sudo ./install.sh
You can donate to me for this project in IRR from the link below: