perf-kmem.txt 1.2 KB
Newer Older
L
Li Zefan 已提交
1
perf-kmem(1)
2
============
L
Li Zefan 已提交
3 4 5

NAME
----
6
perf-kmem - Tool to trace/measure kernel memory properties
L
Li Zefan 已提交
7 8 9 10

SYNOPSIS
--------
[verse]
11
'perf kmem' {record|stat} [<options>]
L
Li Zefan 已提交
12 13 14

DESCRIPTION
-----------
15
There are two variants of perf kmem:
L
Li Zefan 已提交
16 17 18 19

  'perf kmem record <command>' to record the kmem events
  of an arbitrary workload.

20
  'perf kmem stat' to report kernel memory statistics.
L
Li Zefan 已提交
21 22 23 24 25

OPTIONS
-------
-i <file>::
--input=<file>::
26
	Select the input file (default: perf.data unless stdin is a fifo)
L
Li Zefan 已提交
27

N
Namhyung Kim 已提交
28 29 30 31
-v::
--verbose::
        Be more verbose. (show symbol address, etc)

32 33 34 35 36
--caller::
	Show per-callsite statistics

--alloc::
	Show per-allocation statistics
L
Li Zefan 已提交
37 38 39

-s <key[,key2...]>::
--sort=<key[,key2...]>::
40 41 42 43 44
	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
Li Zefan 已提交
45 46 47 48 49 50 51 52

-l <num>::
--line=<num>::
	Print n lines only

--raw-ip::
	Print raw ip instead of symbol

53 54 55 56 57 58
--slab::
	Analyze SLAB allocator events.

--page::
	Analyze page allocator events

L
Li Zefan 已提交
59 60 61
SEE ALSO
--------
linkperf:perf-record[1]