The script uses zramctl under the hood
make sure to remove swap partition from /etc/fstab
-
to auto install script
curl -s https://gist.githubusercontent.com/Davenchy/99df231cfc0034d8fffabda0b7628cef/raw/auto_install.sh | sudo bash -
to auto uninstall script
curl -s https://gist.githubusercontent.com/Davenchy/99df231cfc0034d8fffabda0b7628cef/raw/auto_remove.sh | sudo bash
-
add zram-controller.sh file at /usr/local/bin/ with permissions 0700 with user su
-
add zram.service file at /etc/systemd/system/ with permissions 0600 with user su
-
reload systemd
sudo systemctl daemon-reload -
enable the service and start it
sudo systemctl enable zram.servicesudo systemctl start zram.service -
check zram devices
zramctl
-
make sure to stop the script by calling
sudo systemctl stop zram.serviceor
sudo zram-controller.sh stop -
then remove script files
sudo rm /etc/systemd/system/zram.servicesudo rm /usr/local/bin/zram-controller.sh -
reload systemd
sudo systemctl daemon-reload