zsmalloc: show per fullness group class stats
authorSergey Senozhatsky <senozhatsky@chromium.org>
Sat, 4 Mar 2023 03:48:35 +0000 (12:48 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:20:12 +0000 (16:20 -0700)
commite1807d5d27ddf1c1388fea0e9af3ed9273844e67
treed8539781d54c1d514294f891b670e4a2c83ead20
parent5a845e9f2d660907a7e1f9f333f7927b6f81b894
zsmalloc: show per fullness group class stats

We keep the old fullness (3/4 threshold) reporting in
zs_stats_size_show().  Switch from allmost full/empty stats to
fine-grained per inuse ratio (fullness group) reporting, which gives
signicantly more data on classes fragmentation.

Link: https://lkml.kernel.org/r/20230304034835.2082479-5-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zsmalloc.c