nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpq6478pt2d34uz52z6k3ppjqqwgf4ywks3k5hkd0pnhfnkhcsmtw7q2nytzy (nprofile…ytzy) From my notes when I setup on Chimera:
Load module:
doas modprobe zram
Create a configuration file for the `zram0` device:
cat << EOF | doas tee /etc/dinit-zram.conf > /dev/null
[zram0]
size = 4G
algorithm = lz4
format = mkswap -U clear %0
EOF
Add swap to `fstab`:
echo "/dev/zram0 none swap defaults 0 0" | doas tee -a /etc/fstab > /dev/null
Enable the service:
doas dinitctl enable zram-device@zram0