linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] zsmalloc: fine-grained fullness grouping
@ 2023-02-06  9:25 Sergey Senozhatsky
  2023-02-06  9:25 ` [PATCH 1/2] zsmalloc: remove insert_zspage() ->inuse optimization Sergey Senozhatsky
  2023-02-06  9:25 ` [PATCH 2/2] zsmalloc: fine-grained inuse ratio based fullness grouping Sergey Senozhatsky
  0 siblings, 2 replies; 13+ messages in thread
From: Sergey Senozhatsky @ 2023-02-06  9:25 UTC (permalink / raw)
  To: Minchan Kim, Andrew Morton; +Cc: linux-kernel, linux-mm, Sergey Senozhatsky

	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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-02-10  6:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-06  9:25 [PATCH 0/2] zsmalloc: fine-grained fullness grouping Sergey Senozhatsky
2023-02-06  9:25 ` [PATCH 1/2] zsmalloc: remove insert_zspage() ->inuse optimization Sergey Senozhatsky
2023-02-06  9:25 ` [PATCH 2/2] zsmalloc: fine-grained inuse ratio based fullness grouping Sergey Senozhatsky
2023-02-07  1:02   ` Yosry Ahmed
2023-02-07  1:47     ` Sergey Senozhatsky
2023-02-10  4:24       ` Sergey Senozhatsky
2023-02-10  4:25         ` Yosry Ahmed
2023-02-10  4:29           ` Sergey Senozhatsky
2023-02-10  5:15             ` Yosry Ahmed
2023-02-10  5:47               ` Sergey Senozhatsky
2023-02-10  5:52               ` Sergey Senozhatsky
2023-02-10  6:04                 ` Yosry Ahmed
2023-02-10  6:07                   ` Yosry Ahmed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox