kvm_stat.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. kvm_stat(1)
  2. ===========
  3. NAME
  4. ----
  5. kvm_stat - Report KVM kernel module event counters
  6. SYNOPSIS
  7. --------
  8. [verse]
  9. 'kvm_stat' [OPTION]...
  10. DESCRIPTION
  11. -----------
  12. kvm_stat prints counts of KVM kernel module trace events. These events signify
  13. state transitions such as guest mode entry and exit.
  14. This tool is useful for observing guest behavior from the host perspective.
  15. Often conclusions about performance or buggy behavior can be drawn from the
  16. output.
  17. While running in regular mode, use any of the keys listed in section
  18. 'Interactive Commands' below.
  19. Use batch and logging modes for scripting purposes.
  20. The set of KVM kernel module trace events may be specific to the kernel version
  21. or architecture. It is best to check the KVM kernel module source code for the
  22. meaning of events.
  23. INTERACTIVE COMMANDS
  24. --------------------
  25. [horizontal]
  26. *b*:: toggle events by guests (debugfs only, honors filters)
  27. *c*:: clear filter
  28. *f*:: filter by regular expression
  29. :: *Note*: Child events pull in their parents, and parents' stats summarize
  30. all child events, not just the filtered ones
  31. *g*:: filter by guest name/PID
  32. *h*:: display interactive commands reference
  33. *o*:: toggle sorting order (Total vs CurAvg/s)
  34. *p*:: filter by guest name/PID
  35. *q*:: quit
  36. *r*:: reset stats
  37. *s*:: set update interval
  38. *x*:: toggle reporting of stats for child trace events
  39. :: *Note*: The stats for the parents summarize the respective child trace
  40. events
  41. Press any other key to refresh statistics immediately.
  42. OPTIONS
  43. -------
  44. -1::
  45. --once::
  46. --batch::
  47. run in batch mode for one second
  48. -l::
  49. --log::
  50. run in logging mode (like vmstat)
  51. -t::
  52. --tracepoints::
  53. retrieve statistics from tracepoints
  54. -d::
  55. --debugfs::
  56. retrieve statistics from debugfs
  57. -i::
  58. --debugfs-include-past::
  59. include all available data on past events for debugfs
  60. -p<pid>::
  61. --pid=<pid>::
  62. limit statistics to one virtual machine (pid)
  63. -g<guest>::
  64. --guest=<guest_name>::
  65. limit statistics to one virtual machine (guest name)
  66. -f<fields>::
  67. --fields=<fields>::
  68. fields to display (regex), "-f help" for a list of available events
  69. -h::
  70. --help::
  71. show help message
  72. SEE ALSO
  73. --------
  74. 'perf'(1), 'trace-cmd'(1)
  75. AUTHOR
  76. ------
  77. Stefan Hajnoczi <stefanha@redhat.com>