News for hackers. Stuff that matters.
Re:Do not buy RAM, compress by ChrisRR on Thursday November 19, 2026 @05:49AM (#50558466)
> Compressing memory does not come with downsides. It takes a little bit more from your CPU and adds latency to some processes

It sounds like those are downsides

Re:Do not buy RAM, compress by MadameMinty on Thursday November 19, 2026 @06:11AM (#50558614)
"does not come without downsides" + "does come with downsides" race condition
Re:Do not buy RAM, compress by xxs on Thursday November 19, 2026 @06:19AM (#50558683)
That's a terrible statement. Perhaps it can apply to certain setups where compression (and decompression) shows decent results, in lots of applications it'd be a massive downgrade.
Re:Do not buy RAM, compress by Rohansi on Thursday November 19, 2026 @06:24AM (#50558737)
zram does not compress all of your RAM. It only compresses inactive blocks of memory that would be eligible for swap, if you had swap enabled.
Re:Do not buy RAM, compress by aa-jv on Thursday November 19, 2026 @07:12AM (#50559100)
The distinction is in the distribution - is the Linux bootable for an end user or is it for a rack-mount industrial application - since anyway the kernel configuration has to be involved to have zswap effectively applied at kernel runtime.
Re:Do not buy RAM, compress by Rohansi on Thursday November 19, 2026 @06:20AM (#50558693)
It's basically in-memory swap. If you have swap then you already have the added latency (but worse) and I/O usage instead of CPU. Like swap, the downsides only come into play under high memory pressure.
Re:Do not buy RAM, compress by Stitch4223 on Thursday November 19, 2026 @06:56AM (#50558980)
They are not selling it well.

It’s like saying that in order to breathe you have to use your nose or mouth. Which is bad if you want to retain the oxygen that is inside your lungs.

There are always scenario’s where memory compression is an outright bad idea. Just like trying to breathe under water.

Re:Do not buy RAM, compress by Ecno92 on Thursday November 19, 2026 @07:09AM (#50559073)
I believe I have written this not in the best way. (I have uploaded a slightly improved version)

I did not really notice a large performance impact.

Unless you are in an environment where compute performance is critical, I think this is something interesting to try.

Re:Do not buy RAM, compress by aa-jv on Thursday November 19, 2026 @07:11AM (#50559091)
They are downsides in cases where an application has to escalate a critical fault as quickly as possible - indeed where every nanosecond counts - and a process waiting for page restoration is going to be delayed even an intolerable amount.

It should be a user switch and probably will become one in most Linux desktop distributations, I would wager. However, I would not enable it - I run Ubuntu Studio for every last little bit of latency it gives me in a realtime audio-capture application, and on those systems were it to become default-on by way of distro update, I'd be kinda miffed.