News for hackers. Stuff that matters.
Re:Do not buy RAM, compress by rustyhancock on Thursday November 19, 2026 @06:34AM (#50558816)
I've used zswap on most of my systems and generally find it beneficial especially as (de)compression can be very fast these days.

What's interesting to note is that I've occasionally wondered why isn't the swap partition compressed.

If you have it on an NVMe drive it probably is as is all data! The controller usually transparently does it as it writes to/from NAND.

So the kernel sees uncompressed fixed block pages and the speed boosts happen with data arriving faster when read or written to flash.

Re:Do not buy RAM, compress by close04 on Thursday November 19, 2026 @10:27AM (#50561351)
> I've used zswap on most of my systems and generally find it beneficial

I started using zswap recently but didn't have the time yet to benchmark and measure the benefit. Does it benefit machines with low amounts of RAM like 1GB (small headless servers) or better not bother?

> If you have it on an NVMe drive it probably is as is all data!

In the consumer SSD space the last controllers I know to do on the fly compression were SandForce [1], probably 15 years ago, when minimizing writes and saving the little capacity available was imperative. I don't think any other desktop SSDs do this now. A bit more common in enterprise models like ScaleFlux CSD.

[1] https://en.wikipedia.org/wiki/SandForce#Products

Re:Do not buy RAM, compress by mkesper on Thursday November 19, 2026 @11:22AM (#50562128)
Where did you get that info? Sounds suspicious.
Re:Do not buy RAM, compress by deltoidmaximus on Thursday November 19, 2026 @01:20PM (#50563894)
I didn't think controllers generally did any compression but I remember once that on old sandforce controllers if you did something like write all zeros it wouldn't actually overwrite anything instead just mapping to another block of zeros. Which sounded more like on device dedupping than compression.