How to enable the zRAM module for faster swapping on Linux

If you’ve dealt with Linux long enough, you are fully aware of swap. If you’re relatively new to Linux, this is what you need to understand about a swap partition: The swap partition is a dedicated partition to be used when a system runs out of RAM. When this happens, inactive pages are moved out of RAM and into the swap partition