]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Fri, 1 Nov 2024 04:29:33 +0000 (21:29 -0700)
commit5a9d42ee0ef31c8d76764a73b9cc888c3ce37667
tree57ca0645208ed0bbc9cf7932ee952843e19e367c
parentbba2f822febd95203e20a3f00c1d7eaca0b3aae0
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