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] vgettimeofday disabled?

To: Chris Lalancette <clalance@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] vgettimeofday disabled?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 03 Sep 2008 17:01:01 +0100
Cc:
Delivery-date: Wed, 03 Sep 2008 09:01:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <48BEB1BF.9080105@xxxxxxxxxx>
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
Thread-index: AckN3kK3gVzUoHnREd2zvgAX8io7RQ==
Thread-topic: [Xen-devel] vgettimeofday disabled?
User-agent: Microsoft-Entourage/11.4.0.080122
On 3/9/08 16:48, "Chris Lalancette" <clalance@xxxxxxxxxx> wrote:

> Hello,
>      Based on a comment from a customer, I looked briefly at the vgettimeofday
> implementation in Xen.  I noticed that vgettimeofday is disabled in the 64-bit
> linux-2.6.18-xen.hg tree, basically by setting sysctl_vsyscall = 0 in
> vsyscall_init().  Is there some known problem with enabling this?  In a quick
> test, I turned it on, and went from 2m14s in my micro benchmark to 30s for the
> benchmark, but I'm not sure if there will be any ill effects from the same.

We probably don't update vxtime structure, so you likely get dodgy results
from do_vgettimedofday(). However, forcing vxtime to track vcpu0's time info
obtained from Xen would probably be quite easy to do and may be accurate
enough.

But, without that extra engineering, I recommend you check what answers
you're getting from gettimeofday(). Could be quite a significant
performance/correctness tradeoff ;-)

 -- Keir



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

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