From 1e54625d20595f407859c8e00d0028dd1448eecf Mon Sep 17 00:00:00 2001 From: Aristeu Rozanski Date: Mon, 29 Apr 2024 14:32:57 -0400 Subject: [PATCH] zsmalloc: set default zspage chain size to 8 JIRA: https://issues.redhat.com/browse/RHEL-27740 Tested: by me commit b46402fa894f88ddb42a2e841618a8f42f57d16d Author: Sergey Senozhatsky Date: Wed Jan 18 09:52:10 2023 +0900 zsmalloc: set default zspage chain size to 8 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 Acked-by: Minchan Kim Cc: Mike Kravetz Signed-off-by: Andrew Morton Signed-off-by: Aristeu Rozanski --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 042904d4789c..f88858719a10 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -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