[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] RTC going backwards?


  • To: "Rob Gardner" <rob.gardner@xxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
  • Date: Tue, 5 Apr 2005 21:20:28 +0100
  • Delivery-date: Tue, 05 Apr 2005 20:20:25 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcU6Go2L3WWur3LKQpSg5E9axb4tggAAModg
  • Thread-topic: [Xen-devel] RTC going backwards?

> Is it possible to call NOW() in xen, and then sometime later 
> call it again and get a slightly smaller value (ie, by a few 
> thousand ns)? Is there something that makes small corrections 
> to the rtc once in a while? 
> I'm trying to track down a bug in some code I'm developing 
> and it looks like time really does go backwards sometimes.

NOW() uses get_s_time (system time), which should always be greater or
equal to the previous value.

If you're running a domain 0 with xntpd, then Xen's wall clock time time
(as opposed to system time) can indeed go backwards if domain 0 pushes
down adjustments to it. 

Ian

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.