Question: how to enable zswap ubuntu?
Answer: Hold down Shift at boot to enter GRUB's menu.
Edit the commands for Ubuntu to include zswap. enabled=1 at the end of the linux line.
Press F10 to boot.