Re: [PATCH v13 22/22] mm: zswap: Batched zswap_compress() with compress batching of large folios.

From: Herbert Xu

Date: Mon Dec 08 2025 - 21:33:16 EST


On Tue, Dec 09, 2025 at 01:15:02AM +0000, Yosry Ahmed wrote:
>
> Just to clarify, does this mean that zswap can pass a batch of (eight)
> pages to the acomp API, and get the results for the batch uniformly
> whether or not the underlying compressor supports batching?

Correct. In fact I'd like to remove the batch size exposure to zswap
altogether. zswap should just pass along whatever maximum number of
pages that is convenient to itself.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt