Compression on the backing device?
Compression on the backing device?
Posted Feb 22, 2026 2:48 UTC (Sun) by cesarb (subscriber, #6266)In reply to: Compression on the backing device? by PeeWee
Parent article: Modernizing swapping: virtual swap spaces
> Experience with transparent filesystem compression suggests performance gains for rather little CPU time, since the actual I/O is reduced by the compression ratio.
I don't think it would be worth it, at least for normal 4K pages, since AFAIK the unit of I/O in modern systems is also 4K; that is, even if you could compress a page's contents to a single byte, you'd still have to write a full 4K.
(IIRC, the transparent filesystem compression in btrfs works in blocks of 128K)
