From: Keir Fraser Subject: Re: domU clock over 23s off Date: Sun, 26 Feb 2006 14:47:46 +0000 Message-ID: <6596dc23fc4f6b9428f72724096f609a@cl.cam.ac.uk> References: <20060226100730.GA24607@mx.ytti.net> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060226100730.GA24607@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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 26 Feb 2006, at 10:07, Saku Ytti wrote: > I have rather new installation of xen, dom0 is running ntpd and is > perfectly in time. All domU's are ~23s in future. Running ntpd on > the domU's seem to have no effect, /proc/sys/xen/independent_wallclock > appears to have no effect. I'm running xen-unstable and 2.6.16-rc4 > in AMD64 box. > > Any tip would be appricated. Booting the domU's with 'independent_wallclock' as a command-line parameter, and then running a standard vendor ntp init script (usually ntpdate followed by starting ntpd) certainly *should* have fixed the domU time problem. Just setting independent_wallclock (no ntpd) would have no effect. ntpd without independent_wallclock also probably wouldn't work well. I'll check in a (temporary) patch to periodically synchronise Xen's wallclock time with that of domain0. The best fix would be to move ntp's adtimex() syscall down into Xen, but that'll require some heavier lifting (I think it'll work well though, when it's done). -- Keir