Ubuntu – How to use zRam

ramswapzram

I installed zRam as described on webupd8.org. I installed it from the terminal. Is that all I have to do or do I have to do some configuration or something? Does the zram-enabler do everything by itself or do I have to set some parameters?

Best Answer

Like Sergey "Shnatsel" Davidoff was quoted in that blog post, this package installs a script to run it as a service. The script automatically configures itself and the service starts up automatically. There is no further configuration needed. The service can be manually controlled via:

sudo service zramswap start|stop|status|restart|reload|force-reload

If you open the deb package with file roller you can see that only two files are installed:

/etc/init/zramswap.conf
/etc/init.d/zramswap

Along with some documentation files. The DEBIAN directory contains package meta data and commands to initialize the service. Thats all there is in the package. The corresponding devices are named after this scheme: /dev/zram[0-9]

Have you installed it via PPA? I recommend doing that.