1PERF-KMEM(1)                      perf Manual                     PERF-KMEM(1)
2
3
4

NAME

6       perf-kmem - Tool to trace/measure kernel memory properties
7

SYNOPSIS

9       perf kmem {record|stat} [<options>]
10

DESCRIPTION

12       There are two variants of perf kmem:
13
14           'perf kmem record <command>' to record the kmem events
15           of an arbitrary workload.
16
17           'perf kmem stat' to report kernel memory statistics.
18

OPTIONS

20       -i <file>, --input=<file>
21           Select the input file (default: perf.data unless stdin is a fifo)
22
23       -v, --verbose
24           Be more verbose. (show symbol address, etc)
25
26       --caller
27           Show per-callsite statistics
28
29       --alloc
30           Show per-allocation statistics
31
32       -s <key[,key2...]>, --sort=<key[,key2...]>
33           Sort the output (default: frag,hit,bytes for slab and bytes,hit for
34           page). Available sort keys are ptr, callsite, bytes, hit, pingpong,
35           frag for slab and page, callsite, bytes, hit, order, migtype, gfp
36           for page. This option should be preceded by one of the mode
37           selection options - i.e. --slab, --page, --alloc and/or --caller.
38
39       -l <num>, --line=<num>
40           Print n lines only
41
42       --raw-ip
43           Print raw ip instead of symbol
44
45       --slab
46           Analyze SLAB allocator events.
47
48       --page
49           Analyze page allocator events
50
51       --live
52           Show live page stat. The perf kmem shows total allocation stat by
53           default, but this option shows live (currently allocated) pages
54           instead. (This option works with --page option only)
55
56       --time
57           Only analyze samples within given time window: <start>,<stop>.
58           Times have the format seconds.microseconds. If start is not given
59           (i.e., time string is ,x.y) then analysis starts at the beginning
60           of the file. If stop time is not given (i.e, time string is x.y,)
61           then analysis goes to end of file.
62

SEE ALSO

64       perf-record(1)
65
66
67
68perf                              06/18/2019                      PERF-KMEM(1)
Impressum