1 perf-kmem(1) 1 perf-kmem(1) 2 ============ 2 ============ 3 3 4 NAME 4 NAME 5 ---- 5 ---- 6 perf-kmem - Tool to trace/measure kernel memor !! 6 perf-kmem - Tool to trace/measure kernel memory(slab) properties 7 7 8 SYNOPSIS 8 SYNOPSIS 9 -------- 9 -------- 10 [verse] 10 [verse] 11 'perf kmem' [<options>] {record|stat} !! 11 'perf kmem' {record|stat} [<options>] 12 12 13 DESCRIPTION 13 DESCRIPTION 14 ----------- 14 ----------- 15 There are two variants of perf kmem: 15 There are two variants of perf kmem: 16 16 17 'perf kmem [<options>] record [<perf-record- !! 17 'perf kmem record <command>' to record the kmem events 18 record the kmem events of an arbitrary workl !! 18 of an arbitrary workload. 19 record' options may be specified after recor << 20 change the output file name. << 21 19 22 'perf kmem [<options>] stat' to report kerne !! 20 'perf kmem stat' to report kernel memory statistics. 23 21 24 OPTIONS 22 OPTIONS 25 ------- 23 ------- 26 -i <file>:: 24 -i <file>:: 27 --input=<file>:: 25 --input=<file>:: 28 For stat, select the input file (defau !! 26 Select the input file (default: perf.data unless stdin is a fifo) 29 fifo) << 30 << 31 -f:: << 32 --force:: << 33 Don't do ownership validation << 34 << 35 -v:: << 36 --verbose:: << 37 Be more verbose. (show symbol address, << 38 27 39 --caller:: 28 --caller:: 40 Show per-callsite statistics 29 Show per-callsite statistics 41 30 42 --alloc:: 31 --alloc:: 43 Show per-allocation statistics 32 Show per-allocation statistics 44 33 45 -s <key[,key2...]>:: 34 -s <key[,key2...]>:: 46 --sort=<key[,key2...]>:: 35 --sort=<key[,key2...]>:: 47 Sort the output (default: 'frag,hit,by !! 36 Sort the output (default: frag,hit,bytes) 48 for page). Available sort keys are 'p << 49 pingpong, frag' for slab and 'page, ca << 50 migtype, gfp' for page. This option s << 51 mode selection options - i.e. --slab, << 52 37 53 -l <num>:: 38 -l <num>:: 54 --line=<num>:: 39 --line=<num>:: 55 Print n lines only 40 Print n lines only 56 41 57 --raw-ip:: 42 --raw-ip:: 58 Print raw ip instead of symbol 43 Print raw ip instead of symbol 59 << 60 --slab:: << 61 Analyze SLAB allocator events. << 62 << 63 --page:: << 64 Analyze page allocator events << 65 << 66 --live:: << 67 Show live page stat. The perf kmem sh << 68 default, but this option shows live (c << 69 instead. (This option works with --pa << 70 << 71 --time=<start>,<stop>:: << 72 Only analyze samples within given time << 73 have the format seconds.microseconds. << 74 string is ',x.y') then analysis starts << 75 stop time is not given (i.e, time stri << 76 to end of file. << 77 44 78 SEE ALSO 45 SEE ALSO 79 -------- 46 -------- 80 linkperf:perf-record[1] 47 linkperf:perf-record[1]
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.