Re: [PATCH] zswap: export compression failure stats

From: Sergey Senozhatsky
Date: Thu Oct 26 2023 - 03:06:49 EST


On (23/10/24 16:45), Nhat Pham wrote:
>
> During a zswap store attempt, the compression algorithm could fail (for
> e.g due to the page containing incompressible random data). This is not
> tracked in any of existing zswap counters, making it hard to monitor for
> and investigate. We have run into this problem several times in our
> internal investigations on zswap store failures.
>
> This patch adds a dedicated debugfs counter for compression algorithm
> failures.
>
> Signed-off-by: Nhat Pham <nphamcs@xxxxxxxxx>

FWIW,
Reviewed-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>