* urgent help needed :perf record and report showing inconsistent results
@ 2013-10-23 16:06 Nitisha Jain
2013-10-23 16:33 ` David Ahern
0 siblings, 1 reply; 4+ messages in thread
From: Nitisha Jain @ 2013-10-23 16:06 UTC (permalink / raw)
To: linux-perf-users
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 .
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: urgent help needed :perf record and report showing inconsistent results
2013-10-23 16:06 urgent help needed :perf record and report showing inconsistent results Nitisha Jain
@ 2013-10-23 16:33 ` David Ahern
[not found] ` <CAJUy+oSrdAwiGVBZq-PPFB-U7gPzRwPCrFSucEyySCYqT+9v9g@mail.gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: David Ahern @ 2013-10-23 16:33 UTC (permalink / raw)
To: Nitisha Jain, linux-perf-users
On 10/23/13 5:06 PM, Nitisha Jain wrote:
> 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)
Have you tried 'perf kvm stat live'?
David
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: urgent help needed :perf record and report showing inconsistent results
[not found] ` <CAJUy+oSrdAwiGVBZq-PPFB-U7gPzRwPCrFSucEyySCYqT+9v9g@mail.gmail.com>
@ 2013-10-23 23:23 ` David Ahern
2013-10-24 7:31 ` Nitisha Jain
0 siblings, 1 reply; 4+ messages in thread
From: David Ahern @ 2013-10-23 23:23 UTC (permalink / raw)
To: Nitisha Jain; +Cc: linux-perf-users
On 10/23/13 7:30 PM, Nitisha Jain wrote:
>
>
> I am not able to find 'perf kvm stat live' command , when I try, I get :
>
> usage: perf kvm [<options>] {top|record|report|diff|buildid-list}
>
> Is this subcommand still supported in the current version of perf ? if
> yes, can u please tell the exact syntax ?
You need perf code from 3.12.
David
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: urgent help needed :perf record and report showing inconsistent results
2013-10-23 23:23 ` David Ahern
@ 2013-10-24 7:31 ` Nitisha Jain
0 siblings, 0 replies; 4+ messages in thread
From: Nitisha Jain @ 2013-10-24 7:31 UTC (permalink / raw)
To: linux-perf-users
David Ahern <dsahern <at> gmail.com> writes:
>
> On 10/23/13 7:30 PM, Nitisha Jain wrote:
> >
> >
> > I am not able to find 'perf kvm stat live' command , when I try, I get :
> >
> > usage: perf kvm [<options>] {top|record|report|diff|buildid-list}
> >
> > Is this subcommand still supported in the current version of perf ? if
> > yes, can u please tell the exact syntax ?
>
> You need perf code from 3.12.
>
> David
>
>
Thanks sir, I will try out the kvm stat command.
Although I still need to understand how perf report is calculating the total
no of cpu cycles and no of samples and why there is so much disparity
between the results for the same perf command.
Kindly guide in this regard .
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-24 7:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-23 16:06 urgent help needed :perf record and report showing inconsistent results Nitisha Jain
2013-10-23 16:33 ` David Ahern
[not found] ` <CAJUy+oSrdAwiGVBZq-PPFB-U7gPzRwPCrFSucEyySCYqT+9v9g@mail.gmail.com>
2013-10-23 23:23 ` David Ahern
2013-10-24 7:31 ` Nitisha Jain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).