You can enable zram on Ubuntu systems using:
sudo apt-get install zram-config
This is nothing but a simple service script, that makes a new compressed swap partition 50% of the size of your memory.
Example: 32GB system memory results in a 16GB ZRAM partition.
Of course, you can modify this script to your liking.
The question is:
The ZRAM patchset and support is known to be "in-and-out" of the kernel. Some versions of the kernel has it enabled - in Ubuntu, some had it disabled. This was due to various bugs and issues. But time passed.
How safe, stable is zram on recent kernels?
Is it suitable for production use?
How does it handle with 32GB/48GB RAM?