WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] Xenoprof in an HVM domain

To: "Ray Bryant" <raybry@xxxxxxxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] Xenoprof in an HVM domain
From: "Santos, Jose Renato G" <joserenato.santos@xxxxxx>
Date: Thu, 25 May 2006 09:44:15 -0700
Cc: "Eranian, Stephane" <stephane.eranian@xxxxxx>, Steve Dobbelstein <steved@xxxxxxxxxx>
Delivery-date: Thu, 25 May 2006 09:44:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200605250920.56553.raybry@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcaAB2pomSJ9uhw3SZiz1aWLlr8BAQADrA3A
Thread-topic: [Xen-devel] Xenoprof in an HVM domain
 

>> -----Original Message-----
>> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
>> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
>> Ray Bryant
>> Sent: Thursday, May 25, 2006 7:21 AM
>> To: xen-devel@xxxxxxxxxxxxxxxxxxx
>> Cc: Steve Dobbelstein; Eranian, Stephane
>> Subject: Re: [Xen-devel] Xenoprof in an HVM domain
   ... <stuff deleted> ....
>> This assumes, of course, that one can figure out 
>> how to virtualize the performance counters, and then the 
>> hypervisor would have to sort out conflicts, etc, between 
>> domains that wanted to use the performance counters (perhaps 
>> these would be a resource the hypervisor could dynamically 
>> allocate to a domain, by, for 
>> example, some kind of "xm" command).    

I don't think this is how performance counters should be virtualized.
Virtualizing performance counter should save/restore the values of
active perf counters on every VCPU/domain context switch. There should
be no need for such a "xm" command.

Performance counter virtualization is not currently supported in Xen,
although it would be nice to have it. With counter virtualization, guest
domains would be able to profile themselves with un-modified oprofile.
This would be usefull to enable users to profile their applications on
Xen guests in the same way they are used to do on vanila linux.

The current model supported by Xenoprof is system-wide profiling, where
counters are used to profile the collection of domains and Xen together.
This is usefull for Xen developers to optimize Xen and para-virtualized
kernels running on Xen.

Ideally we would like to have support for both system-wide profiling
(for Xen developers) and independent guest profiling with perf counter
virtualization (for Xen users). Adding perf counter virtualization is in
our to do list. If anybody is interested in working on this please let
me know.
We would appreciate any help we could get.

Thanks
Renato

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>