Writing back compressed pages
Writing back compressed pages
Posted Feb 24, 2026 22:35 UTC (Tue) by PeeWee (subscriber, #175777)In reply to: Writing back compressed pages by farnz
Parent article: Modernizing swapping: virtual swap spaces
But Zram writeback is not really automatic [PDF] (page 7) and least of all LRU-based, because all the swap subsystem sees is yet another swap space and all zram sees is yet another block. A low-cost polling approach, i.e. long(-ish) sleep intervals, might be too late to the party when sudden memory spikes happen. Maybe hacking something that monitors PSI (pressure stall info), but then you are already reinventing kernel wheels.
