I am running 16.04 on a laptop with a 1 GB SSD with 20 GB ram. File system is btrfs and I didn't create swap. It has not caused me any problems for more than a year. However, I would like to try out using ZRAM for swap and read the followning here: https://seravo.fi/2016/perfect-btrfs-setup-for-a-server
"To install zram simply run: apt install zram-config. After next reboot there will automatically be a zram device that the system uses for swapping. It does not matter how much RAM a system has, because at some point the kernel will anyway swap something our from active memory to swap to use the active memory more efficiently."
So I did that and when I do cat /proc/swaps after a reboot I get:
Filename Type Size Used Priority
/dev/zram0 partition 2553148 0 5
/dev/zram1 partition 2553148 0 5
/dev/zram2 partition 2553148 0 5
/dev/zram3 partition 2553148 0 5
So I now seem to have swap in ZRAM. What I wonder is if this is all I need to do. I do not need to create and enable a swapfile in ZRAM? I am asking since I read here on Ask Ubuntu: ZRAM vs. regular swap partition
that, quote: "You can then format it for swap with mkswap /dev/zram0 and enable swapping on it with swapon /dev/zram0."
It's a bit confusing since it according to the first site I referenced all I need to to is enable ZRAM and the system will use it while it on AskUbuntu seems like I will have to create and enable swap in ZRAM.
Could someone please clarify this?