[PATCH] mm: Add Kcompressd for accelerated memory compression

Nhat Pham nphamcs at gmail.com
Thu May 1 08:12:48 PDT 2025


On Thu, May 1, 2025 at 7:02 AM Johannes Weiner <hannes at cmpxchg.org> wrote:
>
>
> The way you implemented this adds time-and-space overhead even on
> systems that don't have any sort of swap compression enabled.
>
> That seems unnecessary. There is an existing method for asynchronous
> writeback, and pageout() is naturally fully set up to handle this.
>
> IMO the better way to do this is to make zswap_store() (and
> zram_bio_write()?) asynchronous. Make those functions queue the work
> and wake the compression daemon, and then have the daemon call
> folio_end_writeback() / bio_endio() when it's done with it.

+1.



More information about the linux-arm-kernel mailing list