ZRAM is a compressed block device that uses a part of your RAM as a swap partition. It can be used to improve performance on systems with low memory by compressing data in memory. This can help reduce the amount of data that needs to be written to disk, which can improve performance on systems with slow disk I/O.

This is a great solution for cheap VPS with low memory. It can help you to run more services on a single VPS without running out of memory.

Here’s how you can set up ZRAM on your Linux system:

  1. Install ZRAM:
sudo apt-get -uy install zram-config nohang
  1. Enable and start the ZRAM service:
sudo service zram-config start
  1. Check the status of the ZRAM service:
sudo service zram-config status

Sources:

That's it for this post, thanks for reading!