From: Keir Fraser Subject: Re: vgettimeofday disabled? Date: Wed, 03 Sep 2008 17:01:01 +0100 Message-ID: References: <48BEB1BF.9080105@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48BEB1BF.9080105@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Chris Lalancette , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 3/9/08 16:48, "Chris Lalancette" 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