1KVM_STAT(1)                                                        KVM_STAT(1)
2
3
4

NAME

6       kvm_stat - Report KVM kernel module event counters
7

SYNOPSIS

9       kvm_stat [OPTION]...
10

DESCRIPTION

12       kvm_stat prints counts of KVM kernel module trace events. These events
13       signify state transitions such as guest mode entry and exit.
14
15       This tool is useful for observing guest behavior from the host
16       perspective. Often conclusions about performance or buggy behavior can
17       be drawn from the output. While running in regular mode, use any of the
18       keys listed in section Interactive Commands below. Use batch and
19       logging modes for scripting purposes.
20
21       The set of KVM kernel module trace events may be specific to the kernel
22       version or architecture. It is best to check the KVM kernel module
23       source code for the meaning of events.
24

INTERACTIVE COMMANDS

26       b   toggle events by guests
27           (debugfs only, honors
28           filters)
29
30       c   clear filter
31
32       f   filter by regular
33           expression
34
35           Note: Child events pull in
36           their parents, and
37           parents' stats summarize
38           all child events, not just
39           the filtered ones
40
41       g   filter by guest name/PID
42
43       h   display interactive
44           commands reference
45
46       o   toggle sorting order
47           (Total vs CurAvg/s)
48
49       p   filter by guest name/PID
50
51       q   quit
52
53       r   reset stats
54
55       s   set update interval
56
57       x   toggle reporting of stats
58           for child trace events
59
60           Note: The stats for the
61           parents summarize the
62           respective child trace
63           events
64
65
66       Press any other key to refresh statistics immediately.
67

OPTIONS

69       -1, --once, --batch
70           run in batch mode for one second
71
72       -l, --log
73           run in logging mode (like vmstat)
74
75       -t, --tracepoints
76           retrieve statistics from tracepoints
77
78       -d, --debugfs
79           retrieve statistics from debugfs
80
81       -i, --debugfs-include-past
82           include all available data on past events for debugfs
83
84       -p<pid>, --pid=<pid>
85           limit statistics to one virtual machine (pid)
86
87       -g<guest>, --guest=<guest_name>
88           limit statistics to one virtual machine (guest name)
89
90       -f<fields>, --fields=<fields>
91           fields to display (regex), "-f help" for a list of available events
92
93       -h, --help
94           show help message
95

SEE ALSO

97       perf(1), trace-cmd(1)
98

AUTHOR

100       Stefan Hajnoczi <stefanha@redhat.com>
101
102
103
104                                  04/23/2020                       KVM_STAT(1)
Impressum