Re: [PATCH v7 2/2] mm: support large folios swap-in for sync io devices

From: Shakeel Butt
Date: Wed Aug 21 2024 - 13:31:24 EST


On Wed, Aug 21, 2024 at 03:45:40PM GMT, hanchuanhua@xxxxxxxx wrote:
> From: Chuanhua Han <hanchuanhua@xxxxxxxx>
>
>
> 3. With both mTHP swap-out and swap-in supported, we offer the option to enable
> zsmalloc compression/decompression with larger granularity[2]. The upcoming
> optimization in zsmalloc will significantly increase swap speed and improve
> compression efficiency. Tested by running 100 iterations of swapping 100MiB
> of anon memory, the swap speed improved dramatically:
> time consumption of swapin(ms) time consumption of swapout(ms)
> lz4 4k 45274 90540
> lz4 64k 22942 55667
> zstdn 4k 85035 186585
> zstdn 64k 46558 118533

Are the above number with the patch series at [2] or without? Also can
you explain your experiment setup or how can someone reproduce these?

> [2] https://lore.kernel.org/all/20240327214816.31191-1-21cnbao@xxxxxxxxx/