[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3womulcsz4f4ym6cxtzdtv5sa4ijxyqwrbllmqnhdpb2pfrypz@7wcenus2wq3o>
Date: Wed, 21 Jan 2026 01:37:28 +0000
From: Yosry Ahmed <yosry.ahmed@...ux.dev>
To: Sergey Senozhatsky <senozhatsky@...omium.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Minchan Kim <minchan@...nel.org>, Nhat Pham <nphamcs@...il.com>,
Johannes Weiner <hannes@...xchg.org>, Brian Geffon <bgeffon@...gle.com>, linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: Re: [PATCHv2] zsmalloc: make common caches global
On Sat, Jan 17, 2026 at 11:54:05AM +0900, Sergey Senozhatsky wrote:
> Currently, zsmalloc creates kmem_cache of handles and zspages
> for each pool, which may be suboptimal from the memory usage
> point of view (extra internal fragmentation per pool). Systems
> that create multiple zsmalloc pools may benefit from shared
> common zsmalloc caches.
>
> Make handles and zspages kmem caches global. The memory
> savings depend on particular setup and data patterns and
> can be found via slabinfo.
>
> Signed-off-by: Sergey Senozhatsky <senozhatsky@...omium.org>
Reviewed-by: Yosry Ahmed <yosry.ahmed@...ux.dev>
Powered by blists - more mailing lists