[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230206092559.2722946-1-senozhatsky@chromium.org>
Date: Mon, 6 Feb 2023 18:25:57 +0900
From: Sergey Senozhatsky <senozhatsky@...omium.org>
To: Minchan Kim <minchan@...nel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
Sergey Senozhatsky <senozhatsky@...omium.org>
Subject: [PATCH 0/2] zsmalloc: fine-grained fullness grouping
Hi,
zsmalloc has only two fullness group to choose pages from during
zs_malloc() and zs_compact():
- ALMOST_EMPTY for pages with usage ratio equal or less to 3/4 of total
page capacity
- ALMOST_FULL for pages with usage raio greater than 3/4 of total page
capacity
This leads to suboptimal page selection for both zs_malloc() and
zs_compact().
This patchset reworks zsmalloc fullness grouping/classification.
Sergey Senozhatsky (2):
zsmalloc: remove insert_zspage() ->inuse optimization
zsmalloc: fine-grained inuse ratio based fullness grouping
mm/zsmalloc.c | 253 +++++++++++++++++++++++++++++++-------------------
1 file changed, 156 insertions(+), 97 deletions(-)
--
2.39.1.519.gcb327c4b5f-goog
Powered by blists - more mailing lists