• Root/
  • Linux/
  • zram
  • zram

    zram creates block device that can be used for swap or RAM disk. Typical use case, assisted by readily available tooling is to use it as higher-priority swap. Written blocks are compressed, resulting in "more swap" (for easily compressible data).

    Note: zram and zswap will interfere with each other, if both are used.

    Benefits

    Issues

    Installation and configuration sudo apt install zram-config System restart is necessary for zram-config to handle zram configuration as swap automatically. Use of zram of swap can be verified without additional packages using cat /proc/swaps

    zramctl

    zramctl --output-all