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

From: Barry Song
Date: Wed Aug 28 2024 - 22:25:17 EST


On Thu, Aug 29, 2024 at 1:01 PM Kanchana P Sridhar
<kanchana.p.sridhar@xxxxxxxxx> wrote:
>
> Hi Shakeel,
>
> We submitted an RFC patchset [1] with the Intel In-Memory Analytics
> Accelerator (Intel IAA) sometime back. This introduces a new 'canned-by_n'
> compression algorithm in the IAA crypto driver.
>
> Relative to software compressors, we could get a 10X improvement in zram
> write latency and 7X improvement in zram read latency.
>
> [1] https://lore.kernel.org/all/cover.1714581792.git.andre.glover@xxxxxxxxxxxxxxx/

Hi Kanchana,
Thanks for sharing. I understand you’ll need this mTHP swap-in series
to leverage your
IAA for parallel decompression, right? Without mTHP swap-in, you won't
get this 7X
improvement, right?

This is another important use case for the mTHP swap-in series,
highlighting the strong
need to start the work from the sync IO device.

I’ll try to find some time to review your patch and explore how we can
better support both
software and hardware improvements in zsmalloc/zram with a more
compatible approach.
Also, I have a talk[1] at LPC2024—would you mind if I include a
description of your use
case?

[1] https://lpc.events/event/18/contributions/1780/

>
> Thanks,
> Kanchana

Thanks
Barry