If you’re using Ubuntu and want to improve your system’s performance, especially on machines with limited RAM, ZRAM is a great solution, as it creates a compressed block device in RAM, which helps to manage memory more efficiently.
ZRAM is a Linux kernel module that allows you to create a compressed block device in RAM, that effectively increases the amount of usable memory on your system by compressing data stored in RAM, which can be especially useful for systems with limited physical memory, allowing them to run more applications simultaneously without slowing down.
And of course ZRAM works for any other Linux distro too. I’ve long been using it on my Manjaro Linux platform.
This guide will walk you through installing and configuring ZRAM on Ubuntu.