diff mbox series

[PATCHv2,4/4] zsmalloc: set default zspage chain size to 8

Message ID 20230109033838.2779902-5-senozhatsky@chromium.org (mailing list archive)
State New
Headers show
Series zsmalloc: make zspage chain size configurable | expand

Commit Message

Sergey Senozhatsky Jan. 9, 2023, 3:38 a.m. UTC
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.

Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
---
 mm/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Minchan Kim Jan. 13, 2023, 7:02 p.m. UTC | #1
On Mon, Jan 09, 2023 at 12:38:38PM +0900, Sergey Senozhatsky wrote:
> 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.
> 
> Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>

Thanks for great work, Sergey!
Sergey Senozhatsky Jan. 14, 2023, 7:28 a.m. UTC | #2
On (23/01/13 11:02), Minchan Kim wrote:
> Acked-by: Minchan Kim <minchan@kernel.org>
> 
> Thanks for great work, Sergey!

Thank you!
diff mbox series

Patch

diff --git a/mm/Kconfig b/mm/Kconfig
index 5b2863de4be5..d854a421821b 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 1 16
 	depends on ZSMALLOC
 	help