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] [PATCH] replace rdtsc emulation-vs-native xen boot optio

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] replace rdtsc emulation-vs-native xen boot option with per-domain (hypervisor part)
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Tue, 29 Sep 2009 10:34:07 -0700 (PDT)
Cc: "Xen-Devel \(E-mail\)" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 29 Sep 2009 10:34:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4AC23974.1060602@xxxxxxxx>
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 Jeremy --

I think it's fair for us both to completely air our opinions,
but since you've contradicted some of my "hand-wavy" points
and since much of your position is based on the contradictions, 
I feel it's necessary to respond.

> The TSC is not, and has never been reliable.

Your data is stale.  Please discuss this with processor
and system vendors (I have) and look at the latest upstream
Linux.

I agree that this presumed reliability should be carefully
tested.  (See my proposed patch posted yesterday.)  If
you are correct and I am not, your position (that "all
apps that use rdtsc are fundamentally broken") is much
stronger.

> Except that it comes with a terrible cost...
> This is a massive regression...

It is certainly significant but "terrible" and "massive"
are a bit strong.  Based on my measurements, the examples
you cite will degrade performance by a fraction of a percent.
And this loss can be eliminated IF the administrator
understands the risks and chooses performance over
correctness by specifying an option at guest creation.
 
> The fact that you haven't named a single real app...
> Are you really arguing on the basis that "some apps
> might use tsc in a fragile way" or do you actually have a 
> specific list

I have a (small) specific list.  For various reasons,
I cannot go into further detail.

But if TSC is indeed reliable on newer processors/systems
(see above) AND on VMware, there will certainly be more.

Thanks,
Dan

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

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