linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mm: memcg: improve vmscan tracepoints
@ 2023-11-22 10:01 Dmitry Rokosov
  2023-11-22 10:01 ` [PATCH v2 1/2] mm: memcg: print out cgroup name in the memcg tracepoints Dmitry Rokosov
       [not found] ` <20231122100156.6568-3-ddrokosov@salutedevices.com>
  0 siblings, 2 replies; 13+ messages in thread
From: Dmitry Rokosov @ 2023-11-22 10:01 UTC (permalink / raw)
  To: rostedt, mhiramat, hannes, mhocko, roman.gushchin, shakeelb,
	muchun.song, akpm
  Cc: kernel, rockosov, cgroups, linux-mm, linux-kernel, bpf,
	Dmitry Rokosov

The motivation behind this commit is to enhance the traceability and
understanding of memcg events. By integrating the function cgroup_name()
into the existing memcg tracepoints, this patch series introduces a new
tracepoint template for the begin() and end() events. It utilizes a
static __array() to store the cgroup name, enabling developers to easily
identify the cgroup associated with a specific memcg tracepoint event.

Additionally, this patch series introduces new shrink_memcg tracepoints
to facilitate non-direct memcg reclaim tracing and debugging.

Changes v2 since v1 at [1]:
    - change the position of the "memcg" parameter to ensure backward
      compatibility with userspace tools that use memcg tracepoints
    - add additional CONFIG_MEMCG ifdefs to prevent the use of memcg
      tracepoints when memcg is disabled

Links:
    [1] https://lore.kernel.org/all/20231101102837.25205-1-ddrokosov@salutedevices.com/

Dmitry Rokosov (2):
  mm: memcg: print out cgroup name in the memcg tracepoints
  mm: memcg: introduce new event to trace shrink_memcg

 include/trace/events/vmscan.h | 91 ++++++++++++++++++++++++++++++-----
 mm/vmscan.c                   | 21 ++++++--
 2 files changed, 95 insertions(+), 17 deletions(-)

-- 
2.36.0



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-11-27  9:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-22 10:01 [PATCH v2 0/2] mm: memcg: improve vmscan tracepoints Dmitry Rokosov
2023-11-22 10:01 ` [PATCH v2 1/2] mm: memcg: print out cgroup name in the memcg tracepoints Dmitry Rokosov
2023-11-23  7:21   ` Shakeel Butt
2023-11-23  8:03     ` Dmitry Rokosov
2023-11-23  8:15       ` Shakeel Butt
2023-11-23  8:45         ` Dmitry Rokosov
2023-11-23 11:21           ` Dmitry Rokosov
     [not found] ` <20231122100156.6568-3-ddrokosov@salutedevices.com>
2023-11-22 10:23   ` [PATCH v2 2/2] mm: memcg: introduce new event to trace shrink_memcg Michal Hocko
2023-11-22 10:58     ` Dmitry Rokosov
2023-11-22 13:24       ` Michal Hocko
2023-11-22 18:57         ` Dmitry Rokosov
2023-11-23 11:26           ` Dmitry Rokosov
2023-11-27  9:25             ` Michal Hocko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).