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

SEE ALSO

67       perf-record(1)
68
69
70
71perf                              11/22/2021                      PERF-KMEM(1)
Impressum