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] Problem correlating TSC read from domU with Xentrace's T

To: Thawan Kooburat <kthawan@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] Problem correlating TSC read from domU with Xentrace's TSC
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Wed, 16 Nov 2011 15:51:14 -0800 (PST)
Cc:
Delivery-date: Wed, 16 Nov 2011 15:52:15 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CAHk9V6eY1teYtHSXiZxPk1m29uiekw8BXn8U+6YGWDy+N4fS6Q@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <CAHk9V6eY1teYtHSXiZxPk1m29uiekw8BXn8U+6YGWDy+N4fS6Q@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> I am trying to correlating performance issue in guest VM with the
> scheduling trace from Xentrace. User-mode application in guest VM
> periodically dump APIC ID and RDTSC into trace. I also start Xentrace
> in Dom0 during the same period.
> 
> However, I notice that range of TSC values report both trace is
> completely disjointed. TSC values from Xentrace is always greater than
> what  guest VM see, even if I start capturing Xen's trace 30s before
> capturing trace in guest VM.
> 
> I understand that Xen don't emulate rdtsc() for PV guest and Xentrace
> also read rdtsc() during __insert_record(). However, I don't
> understand what cause my issue.  Any suggestion?   I am using Xen
> 4.1.1 on Fedora 15

Hi Thawan --

Depending on the underlying hardware, Xen may emulate rdtsc
for PV guests.  To force this off, set tsc_mode=2 in your
guest vm.cfg file (and reboot).  For more info on tsc_mode
see tscmode.txt in the Xen source tree (or google for it).

Dan

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

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