zramctl

Setup and control zram devices. Use mkfs or mkswap to format zram devices to partitions. More information: https://manned.org/zramctl.

lsmod | grep -i zram

sudo modprobe zram

sudo modprobe zram num_devices=2

sudo zramctl --find --size 2GB --algorithm lz4

zramctl