xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: Thawan Kooburat <kthawan@gmail.com>, xen-devel@lists.xensource.com
Subject: RE: Problem correlating TSC read from domU with Xentrace's TSC
Date: Wed, 16 Nov 2011 15:51:14 -0800 (PST)	[thread overview]
Message-ID: <2650416a-630f-45b7-956e-f45a81e81f0f@default> (raw)
In-Reply-To: <CAHk9V6eY1teYtHSXiZxPk1m29uiekw8BXn8U+6YGWDy+N4fS6Q@mail.gmail.com>


> 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

      reply	other threads:[~2011-11-16 23:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16 21:07 Problem correlating TSC read from domU with Xentrace's TSC Thawan Kooburat
2011-11-16 23:51 ` Dan Magenheimer [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=2650416a-630f-45b7-956e-f45a81e81f0f@default \
    --to=dan.magenheimer@oracle.com \
    --cc=kthawan@gmail.com \
    --cc=xen-devel@lists.xensource.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).