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] TSC virtualization across different host frequency platf

To: "Dong, Eddie" <eddie.dong@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-devel] TSC virtualization across different host frequency platform migration
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Wed, 22 Apr 2009 08:47:26 -0700 (PDT)
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, dan.magenheimer@xxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>
Delivery-date: Wed, 22 Apr 2009 09:18:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <9832F13BD22FB94A829F798DA4A8280501A7D29D36@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Eddie/Kevin --

I'm sorry to be dense, but I don't understand the
details of your solution.  I'm also not sure I
understand the problem you are trying to solve.
The problem description doesn't describe a problem,
just an event.

I'm guessing the problem is:  When a guest chooses
TSC as its primary clocksource AND a migration later
occurs to a host with a different TSC frequency
THEN wallclock time (e.g. the "date" command)
becomes incorrect.

I'm also guessing that you are NOT trying to solve
the problem:  An application that uses TSC
heavily to measure the passage of time AND
calibrates TSC on host A AND invisibly
migrates to host B with a different TSC
frequency THEN will NOT be able to accurately
measure the passage of time.  However, it will
continue to be monotonically increasing.

In other words, you are trying to solve the OS problem
but not the application problem.

Is this correct?  If so, then I think I understand
your proposal.

Also, I think it would be worthwhile to remeasure the
cost of trapping every TSC read, using current
processors and with some attempt in Xen to make
the emulation fast (returning Xen system time).
10% seems like a VERY large number, even if a database
is using TSC read to timestamp every transaction.

If software-emulated TSC read can be made fast enough,
then it solves both the OS and application problem.

Dan

> -----Original Message-----
> From: Dong, Eddie [mailto:eddie.dong@xxxxxxxxx]
> Sent: Tuesday, April 21, 2009 7:33 PM
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> Cc: Tian, Kevin; Dong, Eddie; Keir Fraser; Zhang, Xiantao
> Subject: [Xen-devel] TSC virtualization across different host 
> frequency
> platform migration
> 
> 
> Keir and all:
>       Recently we are considering the potential issue of TSC 
> virtualization across different frequency platform migration. 
> Current approach will lead to synchronization issue between 
> guest TSC and wall clock. Software trap and emulate can solve 
> the problem with the payment of performance overhead which is 
> not optimal. We want to propose smart scaling algorithm which 
> can continuously use HW TSC_OFFSET and maintain long time 
> synchronization of guest TSC.  The details are in attached 
> document. Can you have a look and provide comments?
>       Thanks. BTW of course PV time is another solution which 
> is not covered in this proposal.
> 
> Eddie

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

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