How to set zram using zram-generator?

I decide to set a zram using zram-generator

I did these:

sudo pacman -S zram-generator

kate /etc/systemd/zram-generator.conf

sudo systemctl daemon-reload

sudo systemctl start /dev/zram0

zramctl
>>> 
NAME       ALGORITHM DISKSIZE  DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 lzo-rle         4G  2.3M 49.4K  176K       8 /var/tmp
free
>>>                total        used        free      shared  buff/cache   available
Mem:           15725        1106       12692         701        1926       13642
Swap:              0           0           0

How should I know if the zram has successfully made without filling the RAM? sudo modprobe zram returns nothing now, and KDE Systemguard show my swap as 0GiB

PS: zram-generator has flagged out-of-date on 2021-10-25, version 1.0.1 has been out

I am not sure but “systemd-swap” works here and might be preferred.

Taken straight from the instructions on the github page:

Call zramctl or swapon to confirm that the device has been created and is in use.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.