]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/slub: use stackdepot to save stack trace in objects
authorOliver Glitta <glittao@gmail.com>
Wed, 2 Jun 2021 03:53:25 +0000 (13:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 Jun 2021 08:17:01 +0000 (18:17 +1000)
commitcf4ca7399149057cd4e4a2d02589f09ca419b83c
treed18757b41589d9ebb16ab75429b2367f399fbf48
parent0d7463b1fbd0a87e5319dbd5a1ae0574984ecd9a
mm/slub: use stackdepot to save stack trace in objects

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.

Link: https://lkml.kernel.org/r/20210414163434.4376-1-glittao@gmail.com
Signed-off-by: Oliver Glitta <glittao@gmail.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
init/Kconfig
mm/slub.c