blob: ff0f433b3fce1ee402a375b62703d7034c468e34 [file] [log] [blame]
Li Zefanb23d5762009-11-24 13:27:11 +08001perf-kmem(1)
Arnaldo Carvalho de Melo4778e0e2010-05-05 11:23:27 -03002============
Li Zefanb23d5762009-11-24 13:27:11 +08003
4NAME
5----
Namhyung Kim0d68bc92015-04-06 14:36:10 +09006perf-kmem - Tool to trace/measure kernel memory properties
Li Zefanb23d5762009-11-24 13:27:11 +08007
8SYNOPSIS
9--------
10[verse]
Li Zefan90b86a92009-12-10 15:21:57 +080011'perf kmem' {record|stat} [<options>]
Li Zefanb23d5762009-11-24 13:27:11 +080012
13DESCRIPTION
14-----------
Li Zefan90b86a92009-12-10 15:21:57 +080015There are two variants of perf kmem:
Li Zefanb23d5762009-11-24 13:27:11 +080016
17 'perf kmem record <command>' to record the kmem events
18 of an arbitrary workload.
19
Li Zefan90b86a92009-12-10 15:21:57 +080020 'perf kmem stat' to report kernel memory statistics.
Li Zefanb23d5762009-11-24 13:27:11 +080021
22OPTIONS
23-------
24-i <file>::
25--input=<file>::
Robert Richterefad1412011-12-07 10:02:54 +010026 Select the input file (default: perf.data unless stdin is a fifo)
Li Zefanb23d5762009-11-24 13:27:11 +080027
Namhyung Kimbd72a332015-03-12 16:32:47 +090028-v::
29--verbose::
30 Be more verbose. (show symbol address, etc)
31
Li Zefan90b86a92009-12-10 15:21:57 +080032--caller::
33 Show per-callsite statistics
34
35--alloc::
36 Show per-allocation statistics
Li Zefanb23d5762009-11-24 13:27:11 +080037
38-s <key[,key2...]>::
39--sort=<key[,key2...]>::
Namhyung Kimfb4f3132015-04-21 13:55:03 +090040 Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit'
41 for page). Available sort keys are 'ptr, callsite, bytes, hit,
42 pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
43 migtype, gfp' for page. This option should be preceded by one of the
44 mode selection options - i.e. --slab, --page, --alloc and/or --caller.
Li Zefanb23d5762009-11-24 13:27:11 +080045
46-l <num>::
47--line=<num>::
48 Print n lines only
49
50--raw-ip::
51 Print raw ip instead of symbol
52
Namhyung Kim0d68bc92015-04-06 14:36:10 +090053--slab::
54 Analyze SLAB allocator events.
55
56--page::
57 Analyze page allocator events
58
Namhyung Kim2a7ef022015-04-21 13:55:04 +090059--live::
60 Show live page stat. The perf kmem shows total allocation stat by
61 default, but this option shows live (currently allocated) pages
62 instead. (This option works with --page option only)
63
Li Zefanb23d5762009-11-24 13:27:11 +080064SEE ALSO
65--------
66linkperf:perf-record[1]