kvm_pio
During some test with "perf stat", we found event "kvm_pio" is heavy. So we decide to see who is the criminal.
Record Events
First step is use perf record to record events.
This will general perf.data file.
Dump raw data
After this, we need to take a look into the raw data.
Now pio_stat contains the raw data. Here is a glance of the raw data.
Use awk to analysis
Execute this:
The pio_calculate.awk looks like:
Then you will get this output:
This shows most pio operation happens at port 0x3fd.
Find the criminal
Then we can use file /proc/ioport to find the port 0x3fd belongs to who.
Go and find it!
Last updated
Was this helpful?