News for hackers. Stuff that matters.
Re:Do not buy RAM, compress by shakow on Thursday November 19, 2026 @04:38PM (#50566802)
I would argue this article has its conclusion in reverse: for 99.9% of end users, zram is better, as hitting a disk swap means that something went very wrong anyway, and it's better to let the OOM killer do its job (a shame that the default one sucks hard).

Using zswap only makes sense in a server context, where very long-running processes, relative expendability of SSDs and very high concurrency completely change the optimal.

But now, people just parrot this article and paste it everywhere without taking time to stop and think about how it applies to different use cases.

Re:Do not buy RAM, compress by Izkata on Friday November 20, 2026 @01:23PM (#50579426)
From what I'm reading, zswap does the same thing as zram, except when it hits its limits and actually needs to swap to disk it has extra information about what's actually being accessed so it can push the least-recently-used memory to disk. Where when zram hits that point the kernel doesn't distinguish it from disk swap so your recent stuff gets pushed to disk and things you want fast end up slow.
Re:Do not buy RAM, compress by 2001zhaozhao on Friday November 20, 2026 @10:44PM (#50585696)
I had Claude test zram vs zswap on a machine with 32gb RAM and 4 sticks of Intel 16gb Optane as swap, and zram was substantially faster. Just one data point though. zswap is generally the superior option.