Remix.run Logo
▲ ChrisRR an hour ago

> 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

▲Rohansi 22 minutes ago | parent | next [-]

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.

▲xxs 23 minutes ago | parent | prev | next [-]

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.

▲Rohansi 18 minutes ago | parent [-]

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.

▲MadameMinty 31 minutes ago | parent | prev | next [-]

"does not come without downsides" + "does come with downsides" race condition

▲ 25 minutes ago | parent | prev [-]
[deleted]