You must log in or # to comment.
If this is accurate, why does Fedora use zram by default?
https://fedoraproject.org/wiki/Changes/SwapOnZRAM
Seems like the author has some legitimate credentials, and I have explicitly noticed the OOM on Fedora SilverBlue when processing shaders in Steam (possible memory leak in Baldurs Gate 3, but still a hard crash when OOM).
He addresses that later under the title “zram on Fedora”.
Basically because Fedora wants to eliminate disk swap entirely. They have systemd-oomd configured to mitigate the downsides.
So, is the TL;DR “Don’t use zram. Use zswap only when you want to use swap.”?
More or less.
- Zswap is better than zram because it’s integrated with the kernel. Swap in zram is more of a hack.
- zram can kill your file cache unnecessarily, which leads to more disk reads.
- Don’t use zram without an oom killer.
- They’re working on zswap to not require any disk swap at all, basically killing the last reason why one might want to use zram over zswap.



