From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harald Koenig Subject: Re: domU clock over 23s off Date: Wed, 12 Jul 2006 21:46:03 +0200 Message-ID: <20060712194603.GA29131@atuin.science-computing.de> References: <20060226100730.GA24607@mx.ytti.net> <6596dc23fc4f6b9428f72724096f609a@cl.cam.ac.uk> <20060712090007.GA8401@atuin.science-computing.de> <20060712095627.GA18330@atuin.science-computing.de> <72def4c4e1bd4849ecc88f0dd11976ef@cl.cam.ac.uk> <20060712133759.GB16613@atuin.science-computing.de> <20060712134308.GA5475@mx.ytti.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20060712134308.GA5475@mx.ytti.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Saku Ytti Cc: Harald Koenig , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Jul 12, Saku Ytti wrote: > On (2006-07-12 15:37 +0200), Harald Koenig wrote: > > > does running ntp in a domU disable the clock synchronisation between dom0 and domU ? > > I do this: > [ytti@ytti.fi ~]% ssh root@herra.ip.fi "cat /etc/cron.hourly/ntp-hack" > #!/bin/sh > > PATH=/bin > > date -s $(date +%H:%M:%S) > /dev/null thanks for the hint! indeed, running this on dom0 also sets the clocks for domU. BUT: it also causes clock jumps up to 0.999 secs every our because it can't handle fractions of a second. and it always steps back the time giving a non-monotonic system time -- too bad :-((( that's not what time syncronisation and ntp is all about... I tried to keep the fractions of seconds but this doesn't work: # date -s $( date +%H:%M:%S.%N ) date: invalid date `21:38:53.976633000' are there other methods to trigger the time sync (push) between dom0 and domU without (re-) setting the system time in dom0 ? looks like I have to live with a jumpy time for now :-( thanks for your help, Harald Koenig -- "I hope to die ___ _____ before I *have* to use Microsoft Word.", 0--,| /OOOOOOO\ Donald E. Knuth, 02-Oct-2001 in Tuebingen. <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig \/\/\/\/\/\/\/\/\/ science+computing ag // / \\ \ koenig@science-computing.de ^^^^^ ^^^^^