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: Fri, 26 May 2006 09:55:48 -0700
Cc: "Eranian, Stephane" <stephane.eranian@xxxxxx>, Steve Dobbelstein <steved@xxxxxxxxxx>
Delivery-date: Fri, 26 May 2006 09:56:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200605251702.04587.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: AcaARuP/a9qh0pEFQLaHMKj0JGngfwAm3/Yg
Thread-topic: [Xen-devel] Xenoprof in an HVM domain
 

>> -----Original Message-----
>> From: Ray Bryant [mailto:raybry@xxxxxxxxxxxxxxxxx] 
>> Sent: Thursday, May 25, 2006 3:02 PM
>> To: xen-devel@xxxxxxxxxxxxxxxxxxx
>> Cc: Santos, Jose Renato G; Eranian, Stephane; Steve Dobbelstein
>> Subject: Re: [Xen-devel] Xenoprof in an HVM domain
>> 
>> On Thursday 25 May 2006 16:44, Santos, Jose Renato G wrote:
>> > If you partition the perf counters and do not share them you still 
>> > need to enable/disable them on context switch. Otherwise 
>> you would be 
>> > counting events that happen when other domains are 
>> running. Probably 
>> > saving and restoring counters should not be much more 
>> expensive than 
>> > disabling/enabling them.
>> 
>> Good point.   I don't know what the trade off is there. 
>> 
>> One other issue that worries me here is counter interference 
>> -- e. g. suppose 
>> we are measuring cache misses.   Then if another domain has 
>> been scheduled in 
>> the meantime it can wash the measured domain's data out of 
>> the cache and 
>> cause a lot of unexpected misses in the measured domain.   
>> Offhand, I don't 
>> know of a good way to fix this other than to pin the 
>> measured domain to its 
>> cpu's for the duration of the measurement experiment.   Of 
>> course, there's 
>> still the pesky issue of interrupt service routines running 
>> in the hypervisor and causing cache damage there as well, or 
>> of dom0 getting invovled to do some I/O for the measured domain.

These are all fair concerns. However I wouldn't consider this a perf
counter issue, but a virtualization issue. Counters are just counting
what is happening. This is really an issue of sharing hardware resources
(cache, TLB, buses, etc) across virtual machines. Whenever resources are
shared there is potential for interference. The interference will be
there regardeless if you measure it or not. 
Perf counters can be used to measure it and help you define resource
policies, such as for example dedicating a CPU to a domain, as you
mention. If your application is suffering from interference from other
domains you would like to know that, when you are profiling.

Renato

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

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