Remix.run Logo
homebrewer 14 hours ago

zram has been "obsolete" for years, I don't know why people still reach for it. Linux supports proper memory compression in the form of zswap

https://wiki.archlinux.org/title/Zswap

10 hours ago | parent | next [-]
[deleted]
RealStickman_ 13 hours ago | parent | prev | next [-]

I didn't realize zswap also uses in-memory compression. It might be a combination of poor naming and zram being continuously popular.

rascul 10 hours ago | parent | prev | next [-]

It is not obsolete. It's also useful for other things.

ChocolateGod 14 hours ago | parent | prev | next [-]

Because I'd rather compress ram when running low on memory rather than swapping to my disks. zram is also default on some distros (e.g. Fedora).

homebrewer 13 hours ago | parent [-]

Did you read the link? Additional disk swap is optional, and if for some reason you would still like to have one, it's easy to disable writeback, using just the RAM.

And even if one enables zswap and configures nothing else, compressing RAM and only swapping out to disk under extreme pressure is still the default behavior.

10 hours ago | parent | prev [-]
[deleted]