memcg: add flush tracepoint
authorJP Kobryn <inwardvessel@gmail.com>
Tue, 29 Oct 2024 02:11:06 +0000 (19:11 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 11 Nov 2024 08:26:46 +0000 (00:26 -0800)
commitf914ac96ee8828368f5a24553e75216d76da0b42
treedc1106f7e99879a30f1f63f95c41a6b4fdea0970
parente1479b880cb213057c48dc8b5fb1a8a64e04f0eb
memcg: add flush tracepoint

This tracepoint gives visibility on how often the flushing of memcg stats
occurs and contains info on whether it was forced, skipped, and the value
of stats updated.  It can help with understanding how readers are affected
by having to perform the flush, and the effectiveness of the flush by
inspecting the number of stats updated.  Paired with the recently added
tracepoints for tracing rstat updates, it can also help show correlation
where stats exceed thresholds frequently.

Link: https://lkml.kernel.org/r/20241029021106.25587-3-inwardvessel@gmail.com
Signed-off-by: JP Kobryn <inwardvessel@gmail.com>
Reviewed-by: Yosry Ahmed <yosryahmed@google.com>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/trace/events/memcg.h
mm/memcontrol.c