* vgettimeofday disabled?
@ 2008-09-03 15:48 Chris Lalancette
2008-09-03 16:01 ` Keir Fraser
0 siblings, 1 reply; 3+ messages in thread
From: Chris Lalancette @ 2008-09-03 15:48 UTC (permalink / raw)
To: xen-devel@lists.xensource.com
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.
Thanks,
Chris Lalancette
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vgettimeofday disabled?
2008-09-03 15:48 vgettimeofday disabled? Chris Lalancette
@ 2008-09-03 16:01 ` Keir Fraser
2008-09-03 16:02 ` Chris Lalancette
0 siblings, 1 reply; 3+ messages in thread
From: Keir Fraser @ 2008-09-03 16:01 UTC (permalink / raw)
To: Chris Lalancette, xen-devel@lists.xensource.com
On 3/9/08 16:48, "Chris Lalancette" <clalance@redhat.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vgettimeofday disabled?
2008-09-03 16:01 ` Keir Fraser
@ 2008-09-03 16:02 ` Chris Lalancette
0 siblings, 0 replies; 3+ messages in thread
From: Chris Lalancette @ 2008-09-03 16:02 UTC (permalink / raw)
To: Keir Fraser; +Cc: xen-devel@lists.xensource.com
Keir Fraser wrote:
> 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 ;-)
Ah, OK. So there's not really a fundamental issue (which I was worried about),
more just it hasn't been implemented all the way. Interestingly, it doesn't
seem to be explicitly disabled in the LKML pv_ops implementation, so either it's
being updated properly there, or time is *way* off.
Thanks for the info.
Chris Lalancette
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-03 16:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-03 15:48 vgettimeofday disabled? Chris Lalancette
2008-09-03 16:01 ` Keir Fraser
2008-09-03 16:02 ` Chris Lalancette
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.