blob: f378ac59353d527630a13a8f1e82bc34c2e45307 [file] [log] [blame]
perf-kmem - Tool to trace/measure kernel memory properties
'perf kmem' [<options>] {record|stat}
There are two variants of perf kmem:
'perf kmem [<options>] record [<perf-record-options>] <command>' to
record the kmem events of an arbitrary workload. Additional 'perf
record' options may be specified after record, such as '-o' to
change the output file name.
'perf kmem [<options>] stat' to report kernel memory statistics.
-i <file>::
For stat, select the input file (default: unless stdin is a
Don't do ownership validation
Be more verbose. (show symbol address, etc)
Show per-callsite statistics
Show per-allocation statistics
-s <key[,key2...]>::
Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit'
for page). Available sort keys are 'ptr, callsite, bytes, hit,
pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
migtype, gfp' for page. This option should be preceded by one of the
mode selection options - i.e. --slab, --page, --alloc and/or --caller.
-l <num>::
Print n lines only
Print raw ip instead of symbol
Analyze SLAB allocator events.
Analyze page allocator events
Show live page stat. The perf kmem shows total allocation stat by
default, but this option shows live (currently allocated) pages
instead. (This option works with --page option only)
Only analyze samples within given time window: <start>,<stop>. Times
have the format seconds.microseconds. If start is not given (i.e., time
string is ',x.y') then analysis starts at the beginning of the file. If
stop time is not given (i.e, time string is 'x.y,') then analysis goes
to end of file.