Setup and control zram devices. Use
mkfs
ormkswap
to format zram devices to partitions.
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}}
zramctl