Skip to content

perf kmem: Add more functions and show more statistics

Li Zefan linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf kmem: Add new option to show raw iptools/perf/builtin-kmem.c+10 -81 reply
2/5perf kmem: Default to sort by fragmentationtools/perf/builtin-kmem.c+108 -341 reply
3/5perf kmem: Collect cross node allocation statisticstools/perf/builtin-kmem.c+79 -21 reply
4/5perf kmem: Measure kmalloc/kfree CPU ping-pong call-sitestools/perf/builtin-kmem.c+94 -281 reply
5/5perf kmem: Add help filetools/perf/Documentation/perf-kmem.txt tools/perf/command-list.txt+45 -01 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPekka Enberg
SeriesA-b
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] perf kmem: Add more functions and show more statistics

List of new things:

- Add option "--raw-ip", to print raw ip instead of symbols.

- Sort the output by fragmentation by default, and support multi keys.

- Collect and show cross node allocation stats.

- Collect and show alloc/free ping-pong stats.

- And help file.

---
 tools/perf/Documentation/perf-kmem.txt |   44 ++++
 tools/perf/builtin-kmem.c              |  353 ++++++++++++++++++++++++++------
 tools/perf/command-list.txt            |    1 +
 3 files changed, 331 insertions(+), 67 deletions(-)

Pekka, do you think we can remove kmemtrace now?

With kmem trace events, low-level analyzing can be done using ftrace, and high-level analyzing can be done using perf-kmem.

And chance is, more people may use and improve perf-kmem, and it will be well-maintained within the perf infrastructure. On the other hand, I guess few people use and contribute to kmemtrace-user.

BTW, seems kmemtrace-user doesn't work with ftrace. I got setfault:

	# ./kmemtraced
	Copying /proc/kallsyms...
	Logging... Press Control-C to stop.
	^CSegmentation fault