Re: + zram-add-size-class-equals-check-into-recompression.patch added to mm-unstable branch
From: Sergey Senozhatsky
Date: Thu Oct 27 2022 - 22:31:24 EST
On (22/10/27 13:03), Andrew Morton wrote:
> The patch titled
> Subject: zram: add size class equals check into recompression
> has been added to the -mm mm-unstable branch. Its filename is
> zram-add-size-class-equals-check-into-recompression.patch
>
> This patch will shortly appear at
> https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/zram-add-size-class-equals-check-into-recompression.patch
[..]
> Patch series "zsmalloc/zram: configurable zspage size", v3.
>
> It makes no sense for us to recompress the object if it will be in the
> same size class. We anyway don't get any memory gain. But, at the same
> time, we get a CPU time overhead when inserting this object into zspage
> and decompressing it afterwards.
>
> Link: https://lkml.kernel.org/r/20221027042651.234524-1-senozhatsky@xxxxxxxxxxxx
> Link: https://lkml.kernel.org/r/20221027042651.234524-2-senozhatsky@xxxxxxxxxxxx
> Signed-off-by: Alexey Romanov <avromanov@xxxxxxxxxxxxxx>
> Cc: Minchan Kim <minchan@xxxxxxxxxx>
> Cc: Nitin Gupta <ngupta@xxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Reviewed-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>