From: Dan Magenheimer Subject: RE: timekeepeing in XEN - request fo comments Date: Tue, 10 Nov 2009 09:59:52 -0800 (PST) Message-ID: References: <20091109184943.GQ16033@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20091109184943.GQ16033@reaktio.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: =?UTF-8?B?IlBhc2kgS8Okcmtrw6RpbmVuIg==?= Cc: xen-devel@lists.xensource.com, Bartosz Lis List-Id: xen-devel@lists.xenproject.org Hi Pasi -- The timekeeping problems I am referring to are only(?) for hvm guests. HVM guests with different OS's and different versions of a Linux kernel (32-bit vs 64-bit, even kernel updates between EL5uX and EL5uX+1) behave differently when ticks are delivered at imperfect intervals (which happens frequently for Xen and other hypervisors). Xen distros and "virtual appliance" distributors may specify certain settings of timer_mode and certain kernel parameters (e.g. "clock=3Dpit") to ensure time is kept as accurately as possible. There is no "one size fits all" solution unfortunately. For PV guests, note that there have been patches to dom0 (2.6.18-xen) that improve timekeeping in dom0 and this may affect pv guests with independent_wallclock=3D=3D0. I don't know if the patches have been applied to pv_ops dom0, or if they are even necessary. In fact, I don't know if there is a concept of independent_wallclock in pv_ops. Dan > -----Original Message----- > From: Pasi K=E4rkk=E4inen [mailto:pasik@iki.fi] > Sent: Monday, November 09, 2009 11:50 AM > To: Dan Magenheimer > Cc: Bartosz Lis; xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] timekeepeing in XEN - request fo comments >=20 >=20 > On Mon, Nov 09, 2009 at 08:50:52AM -0800, Dan Magenheimer wrote: > > What kernels are running in your domUs? Are they > > also (all) 2.6.31.5? If your domU's are older kernels > > (e.g. SLES10 or older, RHEL5 or older) there are > > many issues that cannot be entirely solved by > > Xen or dom0. > >=20 >=20 > Could you tell more about these timekeeping problems with=20 > SLES10/RHEL5 PV kernels? >=20 > -- Pasi >=20 > > > -----Original Message----- > > > From: Bartosz Lis [mailto:bartoszl@ics.p.lodz.pl] > > > Sent: Monday, November 09, 2009 5:21 AM > > > To: xen-devel@lists.xensource.com > > > Subject: [Xen-devel] timekeepeing in XEN - request fo comments > > >=20 > > >=20 > > > Dear developers, > > >=20 > > > I have some issues with time synchronization among dom0 and=20 > > > domUs. In my case=20 > > > helped reconfiguring kernel with HZ=3D1000 for dom0 and HZ=3D100=20 > > > for domUs and=20 > > > running ntpd also on domUs. I think, running ntpd on domU is=20 > > > not a good idea,=20 > > > but it works acceptably good as a workaround for my=20 > > > configuration: XEN 3.4.1 +=20 > > > kernel 3.6.31.5 with pv_ops (taken from git last week). When=20 > > > I don't run ntpd=20 > > > on domU clock slowly drifts. I have choosen xen clocksource=20 > > > in both dom0 and=20 > > > domU. > > >=20 > > > I'm not the only one to have time synchronization issues.=20 > > > Please write some=20 > > > document specifying how time synchronization between dom0 and=20 > > > domU should be=20 > > > achieved. I have a number of special questions, but probably=20 > > > there are more=20 > > > questions that should be aswered: > > >=20 > > > 1. What is the mechanics behind the clocksource named xen?=20 > > > How does it depend=20 > > > on phisical time sources available on different platforms? > > >=20 > > > 2. How gets domU's clock initialized when domU boots? (I=20 > > > observe that just=20 > > > after domU has started its clock differs from dom0. The=20 > > > difference is about=20 > > > 10s.) > > >=20 > > > 3. What are the consequences of not selecting xen clocksource=20 > > > (by selecting=20 > > > one of hpet, acpi_pm, etc.) for dom0 and for domU? > > >=20 > > > 4. What are the best practices to achieve clock synchronization? > > >=20 > > > 5. What has changed recently in timekeeping? What is going to=20 > > > change? Are=20 > > > there any improvements/bugfixes added to redhat or suse=20 > > > kernels? Are these=20 > > > bugfixes planned to be added upstream? > > >=20 > > > Thank you in advance, > > >=20 > > > --=20 > > > Bartosz Lis @ Inst. of Information Technology, Technical=20 > > > Univ. of Lodz, Poland > > > bartoszl @ ics.p.lodz.pl > > >=20 > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@lists.xensource.com > > > http://lists.xensource.com/xen-devel > > >=20 > > > > >=20 > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel >