perf-kmem.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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' {record|stat} [<options>]
  10. DESCRIPTION
  11. -----------
  12. There are two variants of perf kmem:
  13. 'perf kmem record <command>' to record the kmem events
  14. of an arbitrary workload.
  15. 'perf kmem stat' to report kernel memory statistics.
  16. OPTIONS
  17. -------
  18. -i <file>::
  19. --input=<file>::
  20. Select the input file (default: perf.data unless stdin is a fifo)
  21. -v::
  22. --verbose::
  23. Be more verbose. (show symbol address, etc)
  24. --caller::
  25. Show per-callsite statistics
  26. --alloc::
  27. Show per-allocation statistics
  28. -s <key[,key2...]>::
  29. --sort=<key[,key2...]>::
  30. Sort the output (default: 'frag,hit,bytes' for slab and 'bytes,hit'
  31. for page). Available sort keys are 'ptr, callsite, bytes, hit,
  32. pingpong, frag' for slab and 'page, callsite, bytes, hit, order,
  33. migtype, gfp' for page. This option should be preceded by one of the
  34. mode selection options - i.e. --slab, --page, --alloc and/or --caller.
  35. -l <num>::
  36. --line=<num>::
  37. Print n lines only
  38. --raw-ip::
  39. Print raw ip instead of symbol
  40. --slab::
  41. Analyze SLAB allocator events.
  42. --page::
  43. Analyze page allocator events
  44. --live::
  45. Show live page stat. The perf kmem shows total allocation stat by
  46. default, but this option shows live (currently allocated) pages
  47. instead. (This option works with --page option only)
  48. SEE ALSO
  49. --------
  50. linkperf:perf-record[1]