Re: [RFC PATCH] zram: avoid preemption with CPU-based compression backends
From: Sergey Senozhatsky
Date: Tue Oct 13 2026 - 00:03:06 EST
Hi,
On (26/10/12 20:33), Bo Zhang wrote:
> On (26/08/05 19:25), Sergey Senozhatsky wrote:
> > quick and dirty patch. Just curious if this improves anything on your
> > side.
>
> Hi Sergey, Barry,
>
> I ran an A/B of the three approaches on a real Android device
> (MemTotal ~7.7GB, zram ~8GB). Same workload for all three: cycle 20
> memory-heavy apps through fg/bg to force swap-out/in, 8 rounds (~550s).
> The stream mutex is instrumented with a trylock-based counter; the
> measurement code is identical across all three builds, so the only
> difference is the patch.
Yeah, that patch was too quick and too dirty. We have significantly
reworked it in [1], specifically patches 9 and 10.
[1] https://lore.kernel.org/linux-kernel/20261013035201.2809924-1-senozhatsky@xxxxxxxxxxxx