Re: [PATCHv2 0/4] zsmalloc: make zspage chain size configurable

From: Sergey Senozhatsky
Date: Sat Jan 14 2023 - 23:21:54 EST


On (23/01/14 13:34), Mike Kravetz wrote:
> I did the following:
>
> - Start with clean v6.2-rc3
> Perform echo, did not see issue
>
> - Applied your 5 patches (includes the zsmalloc: turn chain size config option
> into UL constant patch). Took default value for ZSMALLOC_CHAIN_SIZE of 8.
> Performed echo, recreated issue.
>
> - Changed ZSMALLOC_CHAIN_SIZE to 1.
> Perform echo, did not see issue

The patch set basically just adjusts $NUM in calculate_zspage_chain_size():

for (i = 1; i <= $NUM; i++)

It changes default 4 to 8. Can't really see how this can cause problems.