From: John Levon <levon@movementarian.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Ian Pratt <Ian.Pratt@eu.citrix.com>,
xen-devel@lists.xensource.com,
Keir Fraser <Keir.Fraser@eu.citrix.com>,
"Zhang, Xiantao" <xiantao.zhang@intel.com>
Subject: Re: [PATCH] TSC scaling for live migration between platforms with different TSC frequecies
Date: Fri, 19 Jun 2009 09:36:44 -0400 [thread overview]
Message-ID: <20090619133644.GA32704@movementarian.org> (raw)
In-Reply-To: <35114059-39b9-49d0-b6e6-6ba43664966c@default>
On Thu, Jun 18, 2009 at 03:27:54PM -0700, Dan Magenheimer wrote:
> Even when restricted to physical hardware, using the TSC
> for such purposes seems ill-advised.
In practice it's not so bad, if you only do power management on P-state
invariant TSC CPUs, and disable C1 clock ramping. I'm sure there are all
sorts of fun caveats, but I don't think we've had many practical
problems.
> In a virtual data center, the data will be often useless.
It won't be happy across different machines indeed.
We haven't retested past 3.1, but the PV timer isn't even monotonic in
SMP guests. We have to global-sync to get one.
You mentioned the PV timer can't handle migration - why doesn't
tsc_to_system_mul account for it? If ever a subsystem badly needed a
detailed write-up...
> Is mstate accounting used for anything other than providing
> interesting performance data if one cares to look at it?
You make it sounds like that isn't critically important :)
> Does mstate accounting ignore negative values for delta TSC?
No, the system time is assumed monotonic (it's not in TSC units). The
TSC code
(http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/i86pc/os/timestamp.c)
is expected to provide monotonicity across all CPUs. And /that/ code
assumes there's no inter-CPU drift. Deltas are allowed, but of course
HVM assumes that Xen has dealt with that (since it can't possible
compute deltas between VCPUs).
All this stuff is painful. What I wouldn't give for a single cheap
monotonic timer source that worked under all circumstances.
regards
john
next prev parent reply other threads:[~2009-06-19 13:36 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-18 2:56 [PATCH] TSC scaling for live migration between platforms with different TSC frequecies Zhang, Xiantao
2009-06-18 7:37 ` [PATCH] TSC scaling for live migration betweenplatforms " Jan Beulich
2009-06-18 8:52 ` Zhang, Xiantao
2009-06-18 15:40 ` Dan Magenheimer
2009-06-19 1:48 ` Zhang, Xiantao
2009-06-18 9:02 ` [PATCH] TSC scaling for live migration between platforms " Tim Deegan
2009-06-18 9:46 ` Zhang, Xiantao
2009-06-18 9:56 ` Tim Deegan
2009-06-18 9:10 ` Patrick Colp
2009-06-18 9:27 ` Tim Deegan
2009-06-18 9:47 ` Zhang, Xiantao
2009-06-18 15:45 ` Dan Magenheimer
2009-06-18 16:04 ` Tim Deegan
2009-06-18 20:07 ` Dan Magenheimer
2009-06-18 10:56 ` Ian Pratt
2009-06-18 15:58 ` Dan Magenheimer
2009-06-18 16:45 ` John Levon
2009-06-18 20:27 ` Dan Magenheimer
2009-06-18 20:45 ` John Levon
2009-06-18 20:57 ` Dan Magenheimer
2009-06-18 21:00 ` John Levon
2009-06-18 22:27 ` Dan Magenheimer
2009-06-19 13:36 ` John Levon [this message]
2009-06-19 1:21 ` Zhang, Xiantao
2009-06-19 13:54 ` John Levon
2009-06-18 23:49 ` Dong, Eddie
2009-06-19 2:25 ` Zhang, Xiantao
2009-06-19 13:53 ` John Levon
2009-06-19 15:07 ` Zhang, Xiantao
2009-06-19 20:44 ` Dan Magenheimer
2009-06-22 1:38 ` Zhang, Xiantao
2009-06-19 1:34 ` Zhang, Xiantao
2009-06-22 5:14 ` Zhang, Xiantao
2009-06-23 10:18 ` Keir Fraser
2009-06-24 1:18 ` Zhang, Xiantao
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=20090619133644.GA32704@movementarian.org \
--to=levon@movementarian.org \
--cc=Ian.Pratt@eu.citrix.com \
--cc=Keir.Fraser@eu.citrix.com \
--cc=dan.magenheimer@oracle.com \
--cc=xen-devel@lists.xensource.com \
--cc=xiantao.zhang@intel.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.