SWAP poor performance?

After several hours of use, I would find myself slightly into the zram swap, and my system performance would take a big dive after that.

I’ve since disabled the systemd-zram-setup@.service service, disabling swap, and have seen a very big performance gain! To keep it safe, I’m using earlyoom incase I run out of memory.

Am I going crazy? Is ZRAM on BTRFS a bad idea as a default?

Added swap, zram

You wouldn’t want to store your swap memory on Btrfs. But zram doesn’t do that anyway. It just tries to make up for the lack of RAM by compressing what is already in RAM. It might not be ideal for all workloads. Disabling it in favor of the OOM service is a perfectly reasonable thing to do.

1 Like

Thanks! That’s all good info to hear.