zsmalloc: set default zspage chain size to 8
authorSergey Senozhatsky <senozhatsky@chromium.org>
Wed, 18 Jan 2023 00:52:10 +0000 (09:52 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:33:23 +0000 (22:33 -0800)
This changes key characteristics (pages per-zspage and objects per-zspage)
of a number of size classes which in results in different pool
configuration.  With zspage chain size of 8 we have more size clases
clusters (123) and higher huge size class watermark (3632 bytes).

Please read zsmalloc documentation for more details.

Link: https://lkml.kernel.org/r/20230118005210.2814763-5-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/Kconfig

index 83b1d278b31cc485d76465aa0b320d4221dcb84f..4751031f3f052238f44b0eb9a4fc8eb610ae7878 100644 (file)
@@ -193,7 +193,7 @@ config ZSMALLOC_STAT
 
 config ZSMALLOC_CHAIN_SIZE
        int "Maximum number of physical pages per-zspage"
-       default 4
+       default 8
        range 4 16
        depends on ZSMALLOC
        help