Re: [RFC PATCH] zram: avoid preemption with CPU-based compression backends
From: Sergey Senozhatsky
Date: Wed Aug 05 2026 - 06:38:06 EST
On (26/08/05 18:34), Barry Song wrote:
> Thanks very much for your quick patch, Sergey.
>
> We are going to run three experiments:
>
> 1. Use the approach I just sent, which avoids calling zs_malloc()
> with direct reclaim while holding the mutex, and extend it to
> the other zs_malloc() call sites:
>
> https://lore.kernel.org/all/20260805100740.71994-1-baohua@xxxxxxxxxx/
>
> 2. Experiment 1 plus preemption disabled.
>
> 3. Your patch, which separates the compression and decompression
> mutexes.
>
> I'd like to understand which change has the biggest impact on
> performance.
>
> Let me gather some data, and I'll get back to you.
Thanks a lot! Take your time!