2009-11-24 05:27:11 +00:00
|
|
|
perf-kmem(1)
|
2010-05-05 14:23:27 +00:00
|
|
|
============
|
2009-11-24 05:27:11 +00:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2015-04-06 05:36:10 +00:00
|
|
|
perf-kmem - Tool to trace/measure kernel memory properties
|
2009-11-24 05:27:11 +00:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
[verse]
|
2009-12-10 07:21:57 +00:00
|
|
|
'perf kmem' {record|stat} [<options>]
|
2009-11-24 05:27:11 +00:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2009-12-10 07:21:57 +00:00
|
|
|
There are two variants of perf kmem:
|
2009-11-24 05:27:11 +00:00
|
|
|
|
|
|
|
'perf kmem record <command>' to record the kmem events
|
|
|
|
of an arbitrary workload.
|
|
|
|
|
2009-12-10 07:21:57 +00:00
|
|
|
'perf kmem stat' to report kernel memory statistics.
|
2009-11-24 05:27:11 +00:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
|
|
|
-i <file>::
|
|
|
|
--input=<file>::
|
2011-12-07 09:02:54 +00:00
|
|
|
Select the input file (default: perf.data unless stdin is a fifo)
|
2009-11-24 05:27:11 +00:00
|
|
|
|
2015-03-12 07:32:47 +00:00
|
|
|
-v::
|
|
|
|
--verbose::
|
|
|
|
Be more verbose. (show symbol address, etc)
|
|
|
|
|
2009-12-10 07:21:57 +00:00
|
|
|
--caller::
|
|
|
|
Show per-callsite statistics
|
|
|
|
|
|
|
|
--alloc::
|
|
|
|
Show per-allocation statistics
|
2009-11-24 05:27:11 +00:00
|
|
|
|
|
|
|
-s <key[,key2...]>::
|
|
|
|
--sort=<key[,key2...]>::
|
2015-04-21 04:55:03 +00:00
|
|
|
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.
|
2009-11-24 05:27:11 +00:00
|
|
|
|
|
|
|
-l <num>::
|
|
|
|
--line=<num>::
|
|
|
|
Print n lines only
|
|
|
|
|
|
|
|
--raw-ip::
|
|
|
|
Print raw ip instead of symbol
|
|
|
|
|
2015-04-06 05:36:10 +00:00
|
|
|
--slab::
|
|
|
|
Analyze SLAB allocator events.
|
|
|
|
|
|
|
|
--page::
|
|
|
|
Analyze page allocator events
|
|
|
|
|
2009-11-24 05:27:11 +00:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
linkperf:perf-record[1]
|