I''ve noticed that the time inside DomU''s begins lagging a few seconds behing the host (Dom0) machine. Is there a way to sync the domU times with the host server? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 24 Feb 2006, at 13:37, Brian Hays wrote:> I''ve noticed that the time inside DomU''s begins lagging a few seconds > behing the host (Dom0) machine. Is there a way to sync the domU times > with the host server?Probably you are running ntpd in domain0? You can try adding some code to the end of set_rtc_mmss() in arch/i386/kernel/time-xen.c (just before the return statement): { struct timeval *tv; struct timespec *ts; do_gettimeofday(&tv); ts.ts_sec = tv.tv_sec; ts.ts_nsec = tv.tv_usec * 1000; do_settimeofday(&ts); } -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 24 Feb 2006, at 14:01, Keir Fraser wrote:> Probably you are running ntpd in domain0? You can try adding some code > to the end of set_rtc_mmss() in arch/i386/kernel/time-xen.c (just > before the return statement):Oh, and to test whether this will work in your already lagging system(s), without need to reboot, just try setting the time in dom0 (using ''date'' for example). That ought to sync up the time in all domains. Of course, dom0 may slip ''out of sync'' quickly again if ntpd is fighting you... -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Thank you ... Will this cause the domU''s to sync their time with the dom0 on an interval basis or solely upon initial creation? Brian On 2/24/06, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> > > On 24 Feb 2006, at 13:37, Brian Hays wrote: > > > I''ve noticed that the time inside DomU''s begins lagging a few seconds > > behing the host (Dom0) machine. Is there a way to sync the domU times > > with the host server? > > Probably you are running ntpd in domain0? You can try adding some code > to the end of set_rtc_mmss() in arch/i386/kernel/time-xen.c (just > before the return statement): > > { > struct timeval *tv; > struct timespec *ts; > do_gettimeofday(&tv); > ts.ts_sec = tv.tv_sec; > ts.ts_nsec = tv.tv_usec * 1000; > do_settimeofday(&ts); > } > > -- Keir > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 24 Feb 2006, at 14:22, Brian Hays wrote:> Thank you ... Will this cause the domU''s to sync their time with the > dom0 on an interval basis or solely upon initial creation? > > BrianThe patch, if it works, will sync the time of all domains at 11-minute intervals. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
resending to reply to all .... Hi Keir, In 3.0.1 I don''t find the referenced file (time-xen.c) ... Is this it''s location in 3.0.1 ... "xen-3.0.1/ref-linux-2.6.12/arch/i386/kernel/time.c" ? Brian On 2/24/06, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> > > On 24 Feb 2006, at 14:22, Brian Hays wrote: > > > Thank you ... Will this cause the domU''s to sync their time with the > > dom0 on an interval basis or solely upon initial creation? > > > > Brian > > The patch, if it works, will sync the time of all domains at 11-minute > intervals. > > -- Keir > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel