From: Nitisha Jain <nitishajain15@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: urgent help needed :perf record and report showing inconsistent results
Date: Wed, 23 Oct 2013 16:06:02 +0000 (UTC) [thread overview]
Message-ID: <loom.20131023T175255-294@post.gmane.org> (raw)
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 .
next reply other threads:[~2013-10-23 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-23 16:06 Nitisha Jain [this message]
2013-10-23 16:33 ` urgent help needed :perf record and report showing inconsistent results 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20131023T175255-294@post.gmane.org \
--to=nitishajain15@gmail.com \
--cc=linux-perf-users@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.