Wiki Table of Contents

Zram

Zram is a kernel feature that provides a form of virtual memory compression. It increases performance by avoiding paging to disk and using a compressed block device in RAM instead, inside which paging takes place until it is necessary to use the swap space on a hard disk drive.

In MX-15, a script to enable this feature is installed by default: /usr/local/bin/zram. To use it, copy it to the /etc/init.d directory with this command:

sudo cp /usr/local/bin/zram /etc/init.d

And then run an update:

sudo update-rc.d zram defaults

Links

  • Technical details: https://www.kernel.org/doc/Documentation/blockdev/zram.txt
  • Arch Wiki: https://wiki.archlinux.org/index.php/maximizing_performance#Zram_or_zswap

v. 20160812

Leave a Comment