I have run into a very odd situation on 2 different LM 22.3 systems. I use the guide to create a larger swapfile to help with memory when using gnome-boxes for my VMs. I follow the guide to the letter. But, I did NOT reboot, I just used the
sudo swapon /swapfile command. Then I immediately checked to see the new swapfile was there. It was. Before doing anything else, I also enable zswap as well (also to help with VM usage). I followed that all the way through, rebooted then verified with grep -r . /sys/module/zswap/parameters/ and all looked good. But, for some reason, after completing the zswap, my swapfile showed in the File System folder as the correct size, but if I looked at the system info, it showed no swap for the system and
swapon --show returned nothing. After much trial and error, I found that in order for the swapfile to stay I had to create the new swapfile then reboot before setting up zswap.
I don't know if this has happened to anyone else or not, but it may be helpful to just have people just reboot instead of using the sudo swapon /swapfile command. I never tried to set up the zswap first, but maybe I should have.
But, this is an incredible library of information and I wanted to do my part to try and help keep it as accurate and helpful as possible.
Thanks so much for all the work you put into this.