From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Tim Deegan <Tim.Deegan@citrix.com>
Cc: "kurt.hackel@oracle.com" <kurt.hackel@oracle.com>,
Dan Magenheimer <dan.magenheimer@oracle.com>,
"Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>,
Ian Pratt <Ian.Pratt@eu.citrix.com>,
Keir Fraser <Keir.Fraser@eu.citrix.com>
Subject: Re: [RFC] Correct/fast timestamping in apps under Xen [1 of 4]: Reliable TSC
Date: Fri, 09 Oct 2009 13:28:05 -0700 [thread overview]
Message-ID: <4ACF9CD5.1080605@goop.org> (raw)
In-Reply-To: <20091009093406.GD20579@whitby.uk.xensource.com>
On 10/09/09 02:34, Tim Deegan wrote:
> Your plans for usermode<-->hypervisor direct TSC integration seem to me
> to be an unpleasant hack. I understand that you have good business
> reasons for wanting it (even if you're not allowed to tell us explicitly
> what they are) and we've seen the justifications enough times that we
> don't need to cover them again here, but it's still a hack.
>
> I'm unhappy with the idea of kicking around the Xen timekeeping code
> (and introducing the usual bug-tail) to support introducing a usermode
> TSC. If there is to be a new mode for this, it should default to the
> current (works for everyone except the engineering team of a
> not-to-be-named enterprise application) behaviour.
>
I'm seeing an approx 12x performance improvement with gettimeofday() and
clock_gettime() on systems with my vsyscall support patches
(~1200ns/call -> ~100ns[*]). I think that should go a long way towards
mitigating the performance concerns using standard APIs.
There's probably some scope for improving those numbers on systems with
better-than-baseline tsc support (ie rdtscp and/or guaranteed synced
tscs), but I think its enough to get started with, especially given the
broad applicability and relatively simple engineering.
[*] With native tsc; emulated tsc makes that 1700 -> 500, or only ~3.3x
improvement.
J
next prev parent reply other threads:[~2009-10-09 20:28 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-02 17:51 [RFC] Correct/fast timestamping in apps under Xen [1 of 4]: Reliable TSC Dan Magenheimer
2009-10-07 21:07 ` Dan Magenheimer
2009-10-08 6:45 ` Keir Fraser
2009-10-08 6:54 ` Keir Fraser
2009-10-08 9:13 ` Tim Deegan
2009-10-08 9:22 ` Keir Fraser
2009-10-08 16:24 ` Dan Magenheimer
2009-10-09 9:34 ` Tim Deegan
2009-10-09 14:38 ` Dan Magenheimer
2009-10-12 9:51 ` Tim Deegan
2009-10-09 20:28 ` Jeremy Fitzhardinge [this message]
2009-10-09 21:35 ` Dan Magenheimer
2009-10-10 0:22 ` Jeremy Fitzhardinge
2009-10-10 2:36 ` Dan Magenheimer
2009-10-10 5:55 ` Jeremy Fitzhardinge
2009-10-10 6:35 ` Keir Fraser
2009-10-10 14:22 ` Dan Magenheimer
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=4ACF9CD5.1080605@goop.org \
--to=jeremy@goop.org \
--cc=Ian.Pratt@eu.citrix.com \
--cc=Keir.Fraser@eu.citrix.com \
--cc=Tim.Deegan@citrix.com \
--cc=dan.magenheimer@oracle.com \
--cc=kurt.hackel@oracle.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 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.