From: Vince Weaver <vince@csl.cornell.edu>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch] performance counters from inside of Qemu
Date: Tue, 9 Nov 2010 14:57:38 -0500 (EST) [thread overview]
Message-ID: <alpine.DEB.2.02.1011091454310.7306@venchi.csl.cornell.edu> (raw)
In-Reply-To: <AANLkTimfVs4rxthvjss2hAt0WY1Zj8xUsaCi0Dxc6tqR@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1457 bytes --]
On Sat, 6 Nov 2010, Stefan Hajnoczi wrote:
> On Thu, Nov 4, 2010 at 7:20 PM, Vince Weaver <vince@csl.cornell.edu> wrote:
> > This is mostly a proof of concept, I'm not sure if anyone is interested in
> > this. It could in theory be useful for tracking down performance problems
> > from iside of Qemu using existing tools.
>
> This patch handles uniprocessor guests only?
yes; I typically only runs Qemu in uniprocessor mode so I hadn't thought
about CMP support. In theory it shouldn't require too many changes to the
actual MSR code because the kernel handles saving/restoring the counter
values on context switch, but it would involve separate per-core simulated
instruction counters. Hmmm.
> There was a patch series a few months back by Yanmin Zhang to
> implement a paravirt perf interface. The subject line was "para virt
> interface of perf to support kvm guest os statistics collection in
> guest os". It might be interesting to follow that up if you haven't
> seen it already.
Thanks for pointing that out! I had been looking for something like that
and somehow missed it at the time.
That patch seems to export a para-virtualized counter interface. While
useful, it would require code changes for external tools, and it also
wouldn't allow for tools that program raw events into the counters (as
opposed to the handful of predefined kernel perf-events ones).
Thanks for the feedback.
Vince
next prev parent reply other threads:[~2010-11-09 19:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-04 19:20 [Qemu-devel] [patch] performance counters from inside of Qemu Vince Weaver
2010-11-06 10:58 ` Stefan Hajnoczi
2010-11-09 19:57 ` Vince Weaver [this message]
2010-11-09 21:02 ` Lluís
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=alpine.DEB.2.02.1011091454310.7306@venchi.csl.cornell.edu \
--to=vince@csl.cornell.edu \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.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).