Setup and control zram devices. Use
mkfs
ormkswap
to format zram devices to partitions. More information: https://manned.org/zramctl.
lsmod | grep -i zram
zramctl
to configure devices further):sudo modprobe zram
sudo modprobe zram num_devices=2
sudo zramctl --find --size 2GB --algorithm lz4
sudo zramctl