News for hackers. Stuff that matters.
Re:Do not buy RAM, compress by jmakov on Thursday November 19, 2026 @02:14PM (#50564797)
Looking at the solution AMD bought, looks like Linux has a lot of room to improve regarding moving (compressed) inactive pages to disk: https://www.amd.com/en/products/software/mext.html
Re:Do not buy RAM, compress by quotemstr on Thursday November 19, 2026 @02:53PM (#50565360)
FWIW, DAMON (https://docs.kernel.org/mm/damon/design.html#operation-actio...) has supported explicit control over Linux working sets for a while now. For whatever reason, ISTM few people know about it, but it's a nice subsystem with a lot of policy flexibility.
Re:Do not buy RAM, compress by zamalek on Thursday November 19, 2026 @02:58PM (#50565433)
> If my understanding is correct, both ZRAM and ZSWAP write uncompressed pages to disk.

ZRAM added compressed_writeback in 7.0, it needs to be explicitly enabled.

Re:Do not buy RAM, compress by jmakov on Thursday November 19, 2026 @03:03PM (#50565522)
Yes, but if a 4k page compresses to 1k, a 4k block on the disk still gets used - 1k + 3k of zero padding. Meaning if 100GB of data compresses 5:1, 100GB needs to be written to the disk instead of 20GB.
Re:Do not buy RAM, compress by mrheosuper on Thursday November 19, 2026 @11:26PM (#50570159)
Do they map ram page 1:1 to disk block ? I imagine if this is done by CPU, you can compress multiple ram page into single disk block.