[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKEwX=PrYbegbCF6Y4OhQHZBsru_rPLf-YtUO1jHpYh_hL8qkA@mail.gmail.com>
Date: Tue, 20 Jan 2026 11:56:41 -0800
From: Nhat Pham <nphamcs@...il.com>
To: Sergey Senozhatsky <senozhatsky@...omium.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>, Yosry Ahmed <yosry.ahmed@...ux.dev>,
Minchan Kim <minchan@...nel.org>, 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 Fri, Jan 16, 2026 at 6:54 PM Sergey Senozhatsky
<senozhatsky@...omium.org> 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>
LGTM!
Reviewed-by: Nhat Pham <nphamcs@...il.com>
Powered by blists - more mailing lists