Install zram compressed swap on Ubuntu: ======================================== Instead of using disk space for swap contents, you can try to compress contents in ram instead. Does use some CPU usage though. 1. Check what swap partitions you have: cat /proc/swaps If there is no /dev/zram0, continue on. 2. edit the /etc/fstab file to remove old swap partition and file since there are no longer used. *Also run swapoff -a to un mount any old swap partitions. 3. Install this package: sudo apt install zram-config 4. Once installed, reboot the system. You should now have zram enabled! *Can prove by running this command: cat /proc/swaps ----------------------------------------------------------------------------- Source: https://fosspost.org/enable-zram-on-linux-better-system-performance/ Date in Vivaldi: September 7th 2023 ----------------------------------- To Uninstall ZRAM (ZSWAP): sudo apt purge zram-config -y sudo swapoff -a sudo reboot Date: August 4th 2025