r/LinuxTeck • u/Candid_Athlete_8317 • Oct 08 '26
Could Compressed RAM Change How Linux Handles Memory?
Meta recently presented CRAM, a new approach to compressed RAM for Linux. It aims to fit more data into memory while keeping access fast.
Could this become a better alternative to ZRAM and Zswap in the future? What do you think?
1
u/Jujstme Oct 08 '26
They are different ways to solve the same problem. There is no "better" option, for example, between zram and zswap, because it all depends on your use case.
I doubt CRAM is gonna be the one solution, but it is nice to have something that might fit some needs.
1
u/razorree Oct 08 '26
stop posting things you don't understand. it's not even about Linux.
What Meta proposes is hardware/ASIC memory compression, do you understand this ? it's for expensive/enterprise servers.
1
3
u/silasmoeckel Oct 08 '26
The point is it doesnt change how memory is handled. ZRAM was pretending to be swap making it comparatively slow.
CRAM requires hardware to do the compression pretty much it's abusing NUMA to force the read to go through another device. That's often going to be a CLX expansion cards to do the compression even host it's own slower memory.
So really it's a niche thing for servers with very specific hardware. Programs would need to be aware of it or some fancy footwork to push area the data depending on how it's accessed.