kvm_stat.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. *g*:: filter by guest name/PID
  30. *h*:: display interactive commands reference
  31. *o*:: toggle sorting order (Total vs CurAvg/s)
  32. *p*:: filter by guest name/PID
  33. *q*:: quit
  34. *r*:: reset stats
  35. *s*:: set update interval
  36. *x*:: toggle reporting of stats for child trace events
  37. :: *Note*: The stats for the parents summarize the respective child trace
  38. events
  39. Press any other key to refresh statistics immediately.
  40. OPTIONS
  41. -------
  42. -1::
  43. --once::
  44. --batch::
  45. run in batch mode for one second
  46. -l::
  47. --log::
  48. run in logging mode (like vmstat)
  49. -t::
  50. --tracepoints::
  51. retrieve statistics from tracepoints
  52. -d::
  53. --debugfs::
  54. retrieve statistics from debugfs
  55. -i::
  56. --debugfs-include-past::
  57. include all available data on past events for debugfs
  58. -p<pid>::
  59. --pid=<pid>::
  60. limit statistics to one virtual machine (pid)
  61. -g<guest>::
  62. --guest=<guest_name>::
  63. limit statistics to one virtual machine (guest name)
  64. -f<fields>::
  65. --fields=<fields>::
  66. fields to display (regex), "-f help" for a list of available events
  67. -h::
  68. --help::
  69. show help message
  70. SEE ALSO
  71. --------
  72. 'perf'(1), 'trace-cmd'(1)
  73. AUTHOR
  74. ------
  75. Stefan Hajnoczi <stefanha@redhat.com>