Skip to content

New tracepoints for slowpath and memory compaction

Janani Ravichandran linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: page_alloc.c: Add tracepoints for slowpathinclude/trace/events/kmem.h mm/page_alloc.c+45 -013 replies
2/2mm: compaction.c: Add/Modify direct compaction tracepointsinclude/trace/events/compaction.h mm/compaction.c+37 -73 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] New tracepoints for slowpath and memory compaction

Hi,

I am an Outreachy intern working under Rik van Riel on memory allocation latency tracing using tracepoints.
The goal of my project is to add tracepoints to code in vmscan.c and compaction.c to gain insight into what happens there and examine latencies using a postprocessing script.

The one here:

https://github.com/Jananiravichandran/Analyzing-tracepoints/blob/master/shrink_slab_latencies.py

is a very basic script that shows how long direct reclaim and shrinkers take. I intend to keep updating the script as more tracepoints are added in the direct reclaim and compaction code and eventually submit the script itself once I'm done.
Suggestions on this are most welcome!

As of now, there are no mechanisms to find out how long slowpath and memory compaction take to execute. This patchset adds new tracepoints and also modifies a couple of existing ones to address this and collect some zone information that may be useful.

Janani Ravichandran (2):
mm: page_alloc.c: Add tracepoints for slowpath
mm: compaction.c: Add/Modify direct compaction tracepoints

 include/trace/events/compaction.h | 38 ++++++++++++++++++++++++++++++++-----
 include/trace/events/kmem.h       | 40 +++++++++++++++++++++++++++++++++++++++
 mm/compaction.c                   |  6 ++++--
 mm/page_alloc.c                   |  5 +++++
 4 files changed, 82 insertions(+), 7 deletions(-)
Signature · 7 lines
2.7.0

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>