Re: [PATCH] mm/slub: use stackdepot to save stack trace in objects

From: David Rientjes
Date: Sun Apr 25 2021 - 21:10:15 EST


On Wed, 14 Apr 2021, glittao@xxxxxxxxx wrote:

> From: Oliver Glitta <glittao@xxxxxxxxx>
>
> 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.
>
> Signed-off-by: Oliver Glitta <glittao@xxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>