hi, 

I am trying to find the overhead due to the kvm hypervisor when an IO
intensive process is running on a virtual machine and the perf record/report
are run on the host.( host has 12 cores, VM is pinned to a core)

I need to understand how to interpret the perf report in order to find the
cpu utilization of various components. In order to do that, I ran simple
tests on the host.

However, even if I run the exact same perf record command on the host
repeatedly, the results are quite different in terms of the report size, no
of samples and the total no of cycles shown in perf report.
The following commands were run in quick succession :

perf record -a -c 10000 -C 0 -o 1.data sleep 5
[ perf record: Woken up 3 times to write data ]
[ perf record: Captured and wrote 0.837 MB 1.data (~36559 samples) ]

perf report -i 1.data  (shows Events :15k cycles at the top)


perf record -a -c 10000 -C 0 -o 1.data sleep 5
[ perf record: Woken up 20 times to write data ]
[ perf record: Captured and wrote 5.214 MB 1.data (~227824 samples) ]

perf report -i 1.data  (shows Events :128k cycles at the top)


 perf record -a -c 10000 -C 0 -o 1.data sleep 5
[ perf record: Woken up 3 times to write data ]
[ perf record: Captured and wrote 0.775 MB 1.data (~33867 samples) ]

perf report -i 1.data  (shows Events :13k cycles at the top)


perf record -a -c 10000 -C 0 -o 1.data sleep 5
[ perf record: Woken up 2 times to write data ]
[ perf record: Captured and wrote 0.605 MB 1.data (~26442 samples) ]

perf report -i 1.data  (shows Events :9k cycles at the top)

Why is there such disparity between the reports ?

If I need to compare any two perf reports, how can I do so with the total
cycles being different on the 2 cases ?

Please assist me in this matter .

--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to