From: Stefan Hajnoczi <stefanha@gmail.com>
To: William Cohen <wcohen@redhat.com>
Cc: qemu-devel@nongnu.org, SystemTAP <systemtap@sources.redhat.com>
Subject: Re: [Qemu-devel] Using the qemu tracepoints with SystemTap
Date: Wed, 14 Sep 2011 15:51:27 +0100 [thread overview]
Message-ID: <CAJSP0QVusM+4ZdYFM7NBVA8DdML9Fo5dpydOq-7e6nZWvVPdRw@mail.gmail.com> (raw)
In-Reply-To: <4E6FB11F.6070703@redhat.com>
On Tue, Sep 13, 2011 at 8:38 PM, William Cohen <wcohen@redhat.com> wrote:
> On 09/13/2011 12:10 PM, William Cohen wrote:
>
>> Should the qemu.kvm.cpu_in and qemu.kvm.cpu_out match up? There are a lot more qemu.kvm.cpu_out than qemu.kvm.cpu_in count.
>
> I found that cpu_in and cpu_out refer to input and output instructions. I wrote a little script tally up the input and output operations on each port to run on a qemu on fc15 machine.
>
> It generates output like the following:
>
>
> cpu_in
> port count
> 0x01f7 3000
> 0x03d5 120
> 0xc000 2000
> 0xc002 3000
>
> cpu_out
> port count
> 0x0080 480
> 0x01f1 2000
> 0x01f2 2000
> 0x01f3 2000
> 0x01f4 2000
> 0x01f5 2000
> 0x01f6 2000
> 0x01f7 1000
> 0x03d4 480
> 0x03d5 120
> 0x03f6 1000
> 0xc000 3000
> 0xc002 2000
> 0xc004 1000
> 0xc090 4
>
> Looks like lots of touching the ide device ports (0x01f0-0x01ff) and some vga controller (0x03d0-0x3df). This is kind of what would be expected when the machine is doing a fsck and selinux relabel on the guest virtual machines. Look like some pci device access (http://www.tech-pro.net/intro_pci.html) also.
I think the cpu_in/cpu_out tracing script can be useful in identifying
performance problems, especially when obscure guest OSes experience
poor performance due to weird ways of interacting with hardware.
Where are you putting your SystemTap scripts? I suggest creating a
public git repo and adding a link from the QEMU wiki tracing page:
http://wiki.qemu.org/Features/Tracing
Perhaps we could even include them in a contrib/ or similar directory
in qemu.git so that distros can ship them. But before we worry about
that we need a useful set of things that can be observed.
Stefan
next prev parent reply other threads:[~2011-09-14 14:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-12 15:33 [Qemu-devel] Using the qemu tracepoints with SystemTap William Cohen
2011-09-13 10:03 ` Stefan Hajnoczi
2011-09-13 16:10 ` William Cohen
2011-09-13 19:38 ` William Cohen
2011-09-14 14:51 ` Stefan Hajnoczi [this message]
2011-09-14 15:20 ` Frank Ch. Eigler
2011-09-14 16:02 ` William Cohen
2011-09-15 10:17 ` Stefan Hajnoczi
2011-09-14 15:32 ` Stefan Hajnoczi
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=CAJSP0QVusM+4ZdYFM7NBVA8DdML9Fo5dpydOq-7e6nZWvVPdRw@mail.gmail.com \
--to=stefanha@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=systemtap@sources.redhat.com \
--cc=wcohen@redhat.com \
/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 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).