perf-kmem.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. perf-kmem(1)
  2. ============
  3. NAME
  4. ----
  5. perf-kmem - Tool to trace/measure kernel memory properties
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'perf kmem' [<options>] {record|stat}
  10. DESCRIPTION
  11. -----------
  12. There are two variants of perf kmem:
  13. 'perf kmem [<options>] record [<perf-record-options>] <command>' to
  14. record the kmem events of an arbitrary workload. Additional 'perf
  15. record' options may be specified after record, such as '-o' to
  16. change the output file name.
  17. 'perf kmem [<options>] stat' to report kernel memory statistics.
  18. OPTIONS
  19. -------
  20. -i <file>::
  21. --input=<file>::
  22. For stat, select the input file (default: perf.data unless stdin is a
  23. fifo)
  24. -f::
  25. --force::
  26. Don't do ownership validation
  27. -v::
  28. --verbose::
  29. Be more verbose. (show symbol address, etc)
  30. --caller::
  31. Show per-callsite statistics
  32. --alloc::
  33. Show per-allocation statistics
  34. -s <key[,key2...]>::
  35. --sort=<key[,key2...]>::
  36. Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit'
  37. for page). Available sort keys are 'ptr, callsite, bytes, hit,
  38. pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
  39. migtype, gfp' for page. This option should be preceded by one of the
  40. mode selection options - i.e. --slab, --page, --alloc and/or --caller.
  41. -l <num>::
  42. --line=<num>::
  43. Print n lines only
  44. --raw-ip::
  45. Print raw ip instead of symbol
  46. --slab::
  47. Analyze SLAB allocator events.
  48. --page::
  49. Analyze page allocator events
  50. --live::
  51. Show live page stat. The perf kmem shows total allocation stat by
  52. default, but this option shows live (currently allocated) pages
  53. instead. (This option works with --page option only)
  54. --time=<start>,<stop>::
  55. Only analyze samples within given time window: <start>,<stop>. Times
  56. have the format seconds.microseconds. If start is not given (i.e., time
  57. string is ',x.y') then analysis starts at the beginning of the file. If
  58. stop time is not given (i.e, time string is 'x.y,') then analysis goes
  59. to end of file.
  60. SEE ALSO
  61. --------
  62. linkperf:perf-record[1]