Enabling ZRAM in EndeavourOS

Yeah I see, I did not added sudo, just copied this command from your video description, you forgot to add sudo on description and also didn’t mentioned to reboot lol, and yeah there were no errors

Thanks you guys, I followed your steps deleted all the code on that file and just added:

[zram0]
zram-size = ram / 2
compression-algorithm = lzo-rle
sudo systemctl daemon-reload
sudo systemctl start /dev/zram0

it was still not showing right after that but after reboot the swap memory showed up.
also could you give any suggestion for good configurations, my laptop has soldered ram can’t upgrade it, should i also add normal swap file or add swap-priority or anything else?

But when you did not add sudo you should have gotten error messages when issuing the commands. If you ignore error messages then it is hard to do anything in a reliable way.

If the service is already active you must use restart and you don’t have to aim for /dev/ but to the name of the service.

sudo systemctl restart systemd-zram-setup@zram0.service