$ yay -S zramd
$ sudo systemctl enable --now zramd
And I commented the tmpfs partition in /etc/fstab file. After rebooting I run
$ swapon --show
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 8G 0B 100
Supposedly everything is working fine so far, but I have a doubt about it. In my previous installation this Swap partition was almost always being used (between 500 MB and 4 GB aprox), but now it is almost always in zero by doing the same things like my previous installation. How can I be sure Zram is working properly?
Pdta: I’m using widget Simple Monitor (from KDE) to check status of cores, ram and swap.
$ sudo systemctl status /dev/zram0
â—Ź dev-zram0.device - /dev/zram0
Follows: unit currently follows state of sys-devices-virtual-block-zram0.device
Loaded: loaded
Active: active (plugged) since Sun 2023-06-11 20:09:28 -05; 4h 32min ago
Device: /sys/devices/virtual/block/zram0
Many applications create their own caches and flush them on SSD more frequently than swap.
For example, many people use web browser that downloads multiple media / video streaming on SSD then delete them after watching. People do not notice any problem when using good quality SSD.
In my experience it is highly beneficial on lower RAM machines. I use zram on 4GB machines, it is more useful there then on machines with more RAM.
The only time I would avoid zram is if your CPU is not fast enough to handle the compression. In those cases the compression overhead may cause performance to decrease.
Sure but my comment was in reference to using zram with less than 8GB of RAM. The hibernation(suspend to disk) is true no matter how much RAM you have.
But the trade-off is that swap is so much higher performing. It all depends on your use case and workload. For me, the effective performance is much higher on zram with 4GB for my workload but it can be different someone else with a different workload.
My only point was that stating you need at least 8GB of RAM for zram to be a good option differs from my experience.
But since he told that it was not showing, so it reminded of my issue when ZRAM was activated but was not showing in both HTOP and System Monitor. So I thought this might be of help, as it helped me during that time.
I just uninstalled zramd and installed zram-generator, but after 1 hour (and some minutes) playing AoE4, well my Swap partition shows 0GB as used, so weird