Compressed swap is a common lever to improve memory density, but there's a lot of confusion about how to best use it out there, and many people treat zram/zswap as two flavours of the same thing when they are really far more nuanced.

So what works, what doesn't, and why? In this article I go over the tradeoffs, the work we are doing upstream, and a little about what the future looks like. I am, as always, happy to answer questions :-)

https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-what.html

Debunking zswap and zram myths

zswap and zram are fundamentally different approaches with different philosophies. If in doubt, use zswap.

@cdown Do we know when diskless zswap is going to become a thing? As you're aware of why we did zram instead of zswap in Fedora, I'd be interested in knowing when we could "swap" to zswap.
@neal @cdown Linux box with 128 GB RAM here. Have set up zram and zswap of 64 GB, never saw even 1 byte of swap being used.