Hi, I have noticed something with all my HVM domU''s, and that is that the time jumps forward, in two hours after having synchronized the clock it will be like half hour forward. I have tried everything I have found on the subject, like setting localtime=1 and setting timer_mode = 1,2 or 3 with no success, it still jumps forward really fast. I also found a bug report[1] about this problem from 2007 that is still open with no comments from developers, which leaves me thinking if it is really a bug or more of a missconfiguration of HVM domU''s as this doesn''t happens with my PVM domU''s. I''m missing any configuration to get the clock working fine on HVM domU''s ? of course I could convert them to PVM but they are around 20 of them so if there''s some configuration I could do to them to fix this issue it would be a lot better. I''m running CentOS 5.5 x86_64 (for both dom0 and all domU''s) with default Xen 3.0.3. [1]http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1008 Cheers, -- Juancho _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Dec 16, 2010 at 09:34:28AM -0500, Juan Luis Baptiste wrote:> Hi, > > I have noticed something with all my HVM domU''s, and that is that the > time jumps forward, in two hours after having synchronized the clock > it will be like half hour forward. I have tried everything I have > found on the subject, like setting localtime=1 and setting timer_mode > = 1,2 or 3 with no success, it still jumps forward really fast. I also > found a bug report[1] about this problem from 2007 that is still open > with no comments from developers, which leaves me thinking if it is > really a bug or more of a missconfiguration of HVM domU''s as this > doesn''t happens with my PVM domU''s. > > I''m missing any configuration to get the clock working fine on HVM > domU''s ? of course I could convert them to PVM but they are around 20 > of them so if there''s some configuration I could do to them to fix > this issue it would be a lot better. >Hello, What clocksource is your HVM guest kernel using? -- Pasi> I''m running CentOS 5.5 x86_64 (for both dom0 and all domU''s) with > default Xen 3.0.3. > > [1]http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1008 > > > Cheers, > -- > Juancho > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Juan Luis Baptiste
2010-Dec-16 19:09 UTC
Re: [Xen-users] Time jumping forward on HVM domU''s
On Thu, Dec 16, 2010 at 1:11 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:>> >> I''m missing any configuration to get the clock working fine on HVM >> domU''s ? of course I could convert them to PVM but they are around 20 >> of them so if there''s some configuration I could do to them to fix >> this issue it would be a lot better. >> > > Hello, > > What clocksource is your HVM guest kernel using? >The default one I suppose ? AFAIK, I haven''t specified any configuration parameter for that. Here is the config file of one of my domU''s: name = "PruebaPVM" uuid = "5d967a22-090f-4d3e-9f0f-0685d7de3c05" maxmem = 512 memory = 256 vcpus = 1 builder = "hvm" kernel = "/usr/lib/xen/boot/hvmloader" boot = "c" pae = 1 acpi = 1 apic = 1 localtime = 0 on_poweroff = "destroy" on_reboot = "restart" on_crash = "restart" device_model = "/usr/lib64/xen/bin/qemu-dm" sdl = 0 vnc = 1 vncunused = 1 keymap = "en-us" disk = [ "tap:aio:/var/lib/xen/images/pruebaPVM/pruebaPVM.img,xvda,w", \ "tap:aio:/var/lib/xen/images/pruebaPVM/swapPruebaPVM.img,xvdb,w" ] vif = [ "mac=00:16:36:3c:37:11,bridge=xenbr0,script=vif-bridge" ] parallel = "none" serial = "pty" #localtime=1 #timer_mode = 2 -- Juancho _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Dec 16, 2010 at 02:09:10PM -0500, Juan Luis Baptiste wrote:> On Thu, Dec 16, 2010 at 1:11 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > >> > >> I''m missing any configuration to get the clock working fine on HVM > >> domU''s ? of course I could convert them to PVM but they are around 20 > >> of them so if there''s some configuration I could do to them to fix > >> this issue it would be a lot better. > >> > > > > Hello, > > > > What clocksource is your HVM guest kernel using? > > > > The default one I suppose ? AFAIK, I haven''t specified any > configuration parameter for that. Here is the config file of one of my > domU''s: >You can''t specify that for an HVM guest from a xen cfgfile. You need to check it from inside the HVM guest, like this: cat /sys/devices/system/clocksource/clocksource0/current_clocksource cat /sys/devices/system/clocksource/clocksource0/available_clocksource Please paste the output of those. -- Pasi> name = "PruebaPVM" > uuid = "5d967a22-090f-4d3e-9f0f-0685d7de3c05" > maxmem = 512 > memory = 256 > vcpus = 1 > builder = "hvm" > kernel = "/usr/lib/xen/boot/hvmloader" > boot = "c" > pae = 1 > acpi = 1 > apic = 1 > localtime = 0 > on_poweroff = "destroy" > on_reboot = "restart" > on_crash = "restart" > device_model = "/usr/lib64/xen/bin/qemu-dm" > sdl = 0 > vnc = 1 > vncunused = 1 > keymap = "en-us" > disk = [ "tap:aio:/var/lib/xen/images/pruebaPVM/pruebaPVM.img,xvda,w", \ > "tap:aio:/var/lib/xen/images/pruebaPVM/swapPruebaPVM.img,xvdb,w" ] > vif = [ "mac=00:16:36:3c:37:11,bridge=xenbr0,script=vif-bridge" ] > parallel = "none" > serial = "pty" > #localtime=1 > #timer_mode = 2 > > -- > Juancho > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Dec 16, 2010 at 09:16:59PM +0200, Pasi Kärkkäinen wrote:> On Thu, Dec 16, 2010 at 02:09:10PM -0500, Juan Luis Baptiste wrote: > > On Thu, Dec 16, 2010 at 1:11 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > >> > > >> I''m missing any configuration to get the clock working fine on HVM > > >> domU''s ? of course I could convert them to PVM but they are around 20 > > >> of them so if there''s some configuration I could do to them to fix > > >> this issue it would be a lot better. > > >> > > > > > > Hello, > > > > > > What clocksource is your HVM guest kernel using? > > > > > > > The default one I suppose ? AFAIK, I haven''t specified any > > configuration parameter for that. Here is the config file of one of my > > domU''s: > > > > You can''t specify that for an HVM guest from a xen cfgfile. > You need to check it from inside the HVM guest, like this: > > cat /sys/devices/system/clocksource/clocksource0/current_clocksource > cat /sys/devices/system/clocksource/clocksource0/available_clocksource > > Please paste the output of those. >Also I''m wondering it this is related: http://lxr.xensource.com/lxr/source/docs/misc/tscmode.txt You could try different tsc_mode options. -- Pasi> > > > name = "PruebaPVM" > > uuid = "5d967a22-090f-4d3e-9f0f-0685d7de3c05" > > maxmem = 512 > > memory = 256 > > vcpus = 1 > > builder = "hvm" > > kernel = "/usr/lib/xen/boot/hvmloader" > > boot = "c" > > pae = 1 > > acpi = 1 > > apic = 1 > > localtime = 0 > > on_poweroff = "destroy" > > on_reboot = "restart" > > on_crash = "restart" > > device_model = "/usr/lib64/xen/bin/qemu-dm" > > sdl = 0 > > vnc = 1 > > vncunused = 1 > > keymap = "en-us" > > disk = [ "tap:aio:/var/lib/xen/images/pruebaPVM/pruebaPVM.img,xvda,w", \ > > "tap:aio:/var/lib/xen/images/pruebaPVM/swapPruebaPVM.img,xvdb,w" ] > > vif = [ "mac=00:16:36:3c:37:11,bridge=xenbr0,script=vif-bridge" ] > > parallel = "none" > > serial = "pty" > > #localtime=1 > > #timer_mode = 2 > > > > -- > > Juancho > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Juan Luis Baptiste
2010-Dec-16 22:13 UTC
Re: [Xen-users] Time jumping forward on HVM domU''s
On Thu, Dec 16, 2010 at 4:55 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:> On Thu, Dec 16, 2010 at 04:34:13PM -0500, Juan Luis Baptiste wrote: > Uhm.. jiffies is a really crappy clocksource. > I wonder why you have only that available.. > > You should have other options aswell, like "acpi_pm", "pit", etc. > You need to switch to another clocksource to get it working properly. >But how do I make them available ? -- Juancho _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Juan Luis Baptiste
2010-Dec-16 22:14 UTC
Re: [Xen-users] Time jumping forward on HVM domU''s
On Thu, Dec 16, 2010 at 4:55 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:>> That doc says that TSC modes are for Xen 4.0 onwards, I''m on 3.0.3 >> that comes with CentOS 5.5. >> > > CentOS 5.5 actually has Xen hypervisor 3.1.2 (with a lot of patches from Redhat > and from newer Xen versions), only the userspace xen tools are 3.0.3 based. >But maybe with an additional repo ? [root@dionisio xen]# rpm -qa|grep -i xen kernel-xen-2.6.18-194.8.1.el5 xen-libs-3.0.3-105.el5_5.5 kernel-xen-devel-2.6.18-194.17.1.el5 xen-libs-3.0.3-105.el5_5.5 xen-3.0.3-105.el5_5.5 kernel-xen-2.6.18-194.el5 kernel-xen-2.6.18-194.17.1.el5 -- Juancho _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Dec 16, 2010 at 05:14:28PM -0500, Juan Luis Baptiste wrote:> On Thu, Dec 16, 2010 at 4:55 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > >> That doc says that TSC modes are for Xen 4.0 onwards, I''m on 3.0.3 > >> that comes with CentOS 5.5. > >> > > > > CentOS 5.5 actually has Xen hypervisor 3.1.2 (with a lot of patches from Redhat > > and from newer Xen versions), only the userspace xen tools are 3.0.3 based. > > > > But maybe with an additional repo ? > > [root@dionisio xen]# rpm -qa|grep -i xen > xen-libs-3.0.3-105.el5_5.5 > xen-libs-3.0.3-105.el5_5.5 > xen-3.0.3-105.el5_5.5 >Those are the userspace components. You can verify Xen hypervisor version from "xm dmesg" or "xm info" output.>From "xm info" the version is xen_major.xen_minor.xen_extra.-- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, Dec 16, 2010 at 05:13:35PM -0500, Juan Luis Baptiste wrote:> On Thu, Dec 16, 2010 at 4:55 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > > On Thu, Dec 16, 2010 at 04:34:13PM -0500, Juan Luis Baptiste wrote: > > Uhm.. jiffies is a really crappy clocksource. > > I wonder why you have only that available.. > > > > You should have other options aswell, like "acpi_pm", "pit", etc. > > You need to switch to another clocksource to get it working properly. > > > > But how do I make them available ? >Please paste the full "dmesg" output from the HVM guest. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Juan Luis Baptiste
2010-Dec-22 21:59 UTC
Re: [Xen-users] Time jumping forward on HVM domU''s
Hi, On Thu, Dec 16, 2010 at 5:45 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:>> > You should have other options aswell, like "acpi_pm", "pit", etc. >> > You need to switch to another clocksource to get it working properly. >> > >> >> But how do I make them available ? >> >with the help of Pasi I found a solution. The following kernel boot parameters change the clock source: notsc divider=10 got it from this link: http://hardanswers.net/correct-clock-drift-in-centos-hyper-v Thanks for your help Pasi :) -- Juancho _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Dec 22, 2010 at 04:59:39PM -0500, Juan Luis Baptiste wrote:> Hi, > > On Thu, Dec 16, 2010 at 5:45 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote: > >> > You should have other options aswell, like "acpi_pm", "pit", etc. > >> > You need to switch to another clocksource to get it working properly. > >> > > >> > >> But how do I make them available ? > >> > > > > with the help of Pasi I found a solution. The following kernel boot > parameters change the clock source: > > notsc divider=10 > > got it from this link: > > http://hardanswers.net/correct-clock-drift-in-centos-hyper-v > > Thanks for your help Pasi :) >Good to hear you got it working! So what clocksource are you using now? -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Juan Luis Baptiste
2010-Dec-23 14:01 UTC
Re: [Xen-users] Time jumping forward on HVM domU''s
On Wed, Dec 22, 2010 at 5:15 PM, Pasi Kärkkäinen <pasik@iki.fi> wrote:>> >> with the help of Pasi I found a solution. The following kernel boot >> parameters change the clock source: >> >> notsc divider=10 >> >> got it from this link: >> >> http://hardanswers.net/correct-clock-drift-in-centos-hyper-v >> >> Thanks for your help Pasi :) >> > > Good to hear you got it working! So what clocksource are you using now? >hmmmm... /sys/devices/system/clocksource/clocksource0/current_clocksource still says jiffies, but with the "notsc divider=10" kernel boot param time doesn''t jump forward for what I have seen in the last couple of days... well the important thing is that the issue seems to be fixed !! :) Cheers, -- Juancho _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users