Setup and control zram devices. Use
mke2fs
ormkswap
to format zram devices to partitions.
lsmod | grep -i zram
zramctl
to configure the devices further):sudo modprobe zram num_devices={{2}}
sudo zramctl --find --size {{2GB}} --algorithm {{lz4}}
zramctl