public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: Markus Armbruster <armbru-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	William Cohen <wcohen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: Performance monitoring units and KVM
Date: Thu, 31 Jan 2008 18:37:16 +0200	[thread overview]
Message-ID: <47A1F93C.6010407@qumranet.com> (raw)
In-Reply-To: <87odb2gfx5.fsf-A7mx1g9ivIOttUaS3K59qNi2O/JbrIOy@public.gmane.org>

Markus Armbruster wrote:
> As far as OProfile is concerned: we can make it work with whatever
> kind of virtual PMU we want, without a complete CPU fake.  It just
> needs to be able to detect our virtual PMU.
>
>   

Well, if the virtual PMU happens to match exactly the physical 
architectural PMU, that saves us the bother of specifying and 
documenting it, porting oprofile, and explaining to users that VTune 
doesn't work.

>>> * OProfile user space needs to be taught where do find each guest's
>>>   debug info.  This one seems too horrible to contemplate. NFS exports on each guest
>>> and mounts on the host? With fuse sshfs?
>>>       
>
> OProfile searches for debug info in a couple of places in the
> filesystem.  Perhaps we could teach it to take a guest root directory
> parameter, and search a guest's debuginfo below that.  How the
> debuginfo gets there is then the user's problem (NFS mount, fetch &
> unpack rpms, ...).
>
>   

unionfs can help here.

>
> However, there are uses for collecting a guest's data on the guest as
> well.  Say you run some very low-overhead, system-wide sampling
> continuously on the host, and let guests subscribe to it (no root on
> host required).  Kind of like a very limited virtual PMU that doesn't
> give you many choices on how to sample.
>
>   

You're describing the architectural PMU again: guest-wide profiling 
without access to the rest of the system.


> If we need this capability anyway, we can just as well start with it,
> because it seems easier than collecting everything on the host.
>
>   

I believe that PMU passthrough is the easiest, followed by emulating the 
architectural PMU where it doesn't exist.



-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

      parent reply	other threads:[~2008-01-31 16:37 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-30 17:06 Performance monitoring units and KVM Markus Armbruster
     [not found] ` <87wsprxmyb.fsf-A7mx1g9ivIOttUaS3K59qNi2O/JbrIOy@public.gmane.org>
2008-01-30 17:41   ` Avi Kivity
     [not found]     ` <47A0B6DF.40208-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-30 18:05       ` Andi Kleen
2008-01-30 18:23       ` Balaji Rao
     [not found]         ` <200801302353.19872.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-01-30 18:14           ` Avi Kivity
     [not found]             ` <47A0BE8F.4090508-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-30 18:26               ` Andi Kleen
     [not found]                 ` <p73ir1b5fvy.fsf-KvMlXPVkKihbpigZmTR7Iw@public.gmane.org>
2008-01-30 19:14                   ` Balaji Rao
     [not found]                     ` <200801310044.11055.balajirrao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2008-01-31  3:12                       ` Andi Kleen
     [not found]                         ` <20080131031232.GB27115-qrUzlfsMFqo/4alezvVtWx2eb7JE58TQ@public.gmane.org>
2008-01-31  3:44                           ` Performance monitoring units and KVM II Andi Kleen
2008-01-31  7:12                           ` Performance monitoring units and KVM Balaji Rao
2008-01-30 18:55               ` Balaji Rao
2008-01-30 19:55       ` Markus Armbruster
     [not found]         ` <87fxwfw0jn.fsf-A7mx1g9ivIOttUaS3K59qNi2O/JbrIOy@public.gmane.org>
2008-01-31  7:03           ` Avi Kivity
     [not found]             ` <47A172D4.6040505-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-31 15:42               ` Markus Armbruster
     [not found]                 ` <87odb2gfx5.fsf-A7mx1g9ivIOttUaS3K59qNi2O/JbrIOy@public.gmane.org>
2008-01-31 16:37                   ` Avi Kivity [this message]

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=47A1F93C.6010407@qumranet.com \
    --to=avi-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=armbru-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=wcohen-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox