Go back to topic: How To Set And Use ZRAM swap
**The **zram** module is controlled by **systemd**, so there's no need for | **The **zram** module is controlled by **systemd**, so there's no need for a fstab entry**, so let's load the module |
Now we have to set disk size. I have decreased dom0's `maxmem` size to 1536MB so for sure all of that will be used, and the rest it'll be taken - from RAM! So I blindly set | Now we have to set disk size. I have decreased dom0's `maxmem` size to 1536MB so for sure all of that will be used, and the rest it'll be taken - from RAM! So I blindly set 8GB and watching its use. > $ sudo bash -c "echo 8G > /sys/block/zram0/disksize" |
disksize=" | disksize="8G" #Set this accordingly to available RAM |