From: "Dan Magenheimer" <dan.magenheimer@oracle.com>
To: John Levon <levon@movementarian.org>
Cc: Ian Pratt <Ian.Pratt@eu.citrix.com>,
"Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>,
Dave Winchell <dwinchell@virtualiron.com>,
Keir Fraser <keir.fraser@eu.citrix.com>
Subject: RE: RE: [PATCH] rendezvous-based local time calibration WOW!
Date: Tue, 5 Aug 2008 14:49:25 -0600 [thread overview]
Message-ID: <20080805144925125.00000008444@djm-pc> (raw)
In-Reply-To: <20080805185651.GB9615@totally.trollied.org.uk>
The algorithm used to compute the timestamp information
that's passed up to a PV domain has been re-worked to
result in a much lower inter-CPU skew. The old
algorithm had a worst case of 10us to 40 us (depending
on how it was measured). The new algorithm appears
to have a worst case which is sub-microsecond, though
it needs more exposure and hasn't been tested on a wide
variety of boxes. To measure it on your box, in domain0,
run the following (or equivalent) for a few hours:
watch "xm debug-key t; xm dmesg | tail -2"
However, it's still not perfect and so is not guaranteed
to be monotonic across two CPUs, though it might be good
enough to be effectively monotonic in many environments.
I'm not sure its possible to guarantee monotonicity in
PV domains (without a global lock) except by doing a trap
or hypercall at each "get time".
I've thought about implementing softtsc for PV domains for
this reason. (Softtsc was just added at 4.0 for hvm domains
and causes all hvm tsc reads to trap.) Would this be of
interest?
> -----Original Message-----
> From: John Levon [mailto:levon@movementarian.org]
> Sent: Tuesday, August 05, 2008 12:57 PM
> To: Dan Magenheimer
> Cc: Keir Fraser; Xen-Devel (E-mail); Ian Pratt; Dave Winchell
> Subject: Re: [Xen-devel] RE: [PATCH] rendezvous-based local time
> calibration WOW!
>
>
> On Mon, Aug 04, 2008 at 01:40:06PM -0600, Dan Magenheimer wrote:
>
> > * Greatly improved precision for time-sensitive SMP VMs
>
> I wonder if we could get a more detailed summary of all the
> changes that
> have been made here?
>
> Will this let us stop taking a global lock in our PV time routine to
> ensure monotonicity?
>
> regards
> john
>
next prev parent reply other threads:[~2008-08-05 20:49 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-03 16:50 [PATCH] rendezvous-based local time calibration WOW! Dan Magenheimer
2008-08-03 17:24 ` Keir Fraser
2008-08-04 15:24 ` Dan Magenheimer
2008-08-04 15:36 ` Keir Fraser
2008-08-04 17:10 ` Keir Fraser
2008-08-04 17:37 ` Dan Magenheimer
2008-08-04 19:40 ` Dan Magenheimer
2008-08-04 19:47 ` Keir Fraser
2008-08-05 18:56 ` John Levon
2008-08-05 20:49 ` Dan Magenheimer [this message]
2008-08-05 21:12 ` John Levon
2008-08-05 21:27 ` Dan Magenheimer
2008-08-05 21:43 ` Keir Fraser
2008-08-06 13:25 ` Dan Magenheimer
2008-08-06 13:38 ` John Levon
2008-08-06 15:09 ` Dan Magenheimer
2008-08-06 15:21 ` John Levon
2008-08-06 15:34 ` Dan Magenheimer
2008-08-09 14:47 ` Nils Nieuwejaar
2008-08-09 20:55 ` Dan Magenheimer
2008-08-11 14:37 ` John Levon
2008-08-11 14:38 ` Keir Fraser
2008-08-11 14:43 ` John Levon
2008-08-11 14:46 ` Keir Fraser
2008-08-11 14:49 ` John Levon
2008-08-11 14:50 ` Keir Fraser
2008-08-11 18:41 ` John Levon
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=20080805144925125.00000008444@djm-pc \
--to=dan.magenheimer@oracle.com \
--cc=Ian.Pratt@eu.citrix.com \
--cc=dwinchell@virtualiron.com \
--cc=keir.fraser@eu.citrix.com \
--cc=levon@movementarian.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.