Writing back compressed pages
Writing back compressed pages
Posted Feb 24, 2026 14:21 UTC (Tue) by farnz (subscriber, #17727)In reply to: Compression on the backing device? by PeeWee
Parent article: Modernizing swapping: virtual swap spaces
Reading this week's second half of the merge window article, I noticed this patch for zram to enable compressed page writeback.
That puts compressed pages on the actual backing device - pages first get "swapped" to zram, where they're compressed and placed in the zram memory pool. If the zram memory pool fills, the compressed pages in zram are written as-is to zram's writeback device (along with incompressible pages).
