Re: [PATCH] mm/slub: use stackdepot to save stack trace in objects
From: Andrew Morton
Date: Mon May 10 2021 - 00:49:42 EST
On Wed, 14 Apr 2021 18:34:34 +0200 glittao@xxxxxxxxx wrote:
> Many stack traces are similar so there are many similar arrays.
> Stackdepot saves each unique stack only once.
>
> Replace field addrs in struct track with depot_stack_handle_t handle.
> Use stackdepot to save stack trace.
>
> The benefits are smaller memory overhead and possibility to aggregate
> per-cache statistics in the future using the stackdepot handle
> instead of matching stacks manually.
Which tree was this prepared against? 5.12's kmem_obj_info() is
significantly different from the version you were working on.
Please take a look, redo, retest and resend? Thanks.