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.
ZRAM added compressed_writeback in 7.0, it needs to be explicitly enabled.