zsmalloc: make zspage chain size configurable
authorSergey Senozhatsky <senozhatsky@chromium.org>
Wed, 18 Jan 2023 00:52:09 +0000 (09:52 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 3 Feb 2023 06:33:23 +0000 (22:33 -0800)
commit4ff93b292c0b91b9a7c9fb54643f122bbe59d8d0
treea36d556a6791f114d710da25d592a71fa8f4ed03
parente1d1f3546913ae0af9da31df8183a6f3da0cd590
zsmalloc: make zspage chain size configurable

Remove hard coded limit on the maximum number of physical pages
per-zspage.

This will allow tuning of zsmalloc pool as zspage chain size changes
`pages per-zspage` and `objects per-zspage` characteristics of size
classes which also affects size classes clustering (the way size classes
are merged).

Link: https://lkml.kernel.org/r/20230118005210.2814763-4-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>
Documentation/mm/zsmalloc.rst
mm/Kconfig
mm/zsmalloc.c