Reminder: Enable ZRAM on your Linux system to optimize RAM usage
Posted by type0 1 day ago
Comments
Comment by Kim_Bruning 1 day ago
https://www.kernel.org/doc/html/latest/admin-guide/mm/zswap....
Oh right, definitely. Chrisdown wrote an article comparing the two:
https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-...
Zswap is supposed to degrade more gracefully.
There's even some HN comments on it:
Comment by yjftsjthsd-h 1 day ago
Comment by dlcarrier 1 day ago
Comment by ChocolateGod 1 day ago
If you do, you'll want zswap instead.
Comment by rcxdude 1 day ago
Comment by phh 2 hours ago
Comment by cromka 1 day ago
Comment by esperent 1 day ago
What's the downside? Does it use much CPU?
If I have enough RAM already, should I still enable it?
One article says it can be mapped to /tmp to reduce i/o. Is that a good idea?
This article is light on all of these kind of details.
Comment by BenjiWiebe 1 day ago
Comment by iberator 1 day ago
as for zram: somehow i dislike it. Nowdays ram is plenty and if not: better to have fast OOM than chug of death with swap.
I also remember running NetBSD 1.3.1 and Slackware 3 on 386SZ 26MHZ with 2 mb of ram (nowadays hard limit is 4mb to boot due the large memory pages on x86 afik)
Comment by Neywiny 1 day ago
Comment by sidewndr46 1 day ago
Comment by Neywiny 1 day ago