OpenVZ Forum


Home » General » Support » system time problems with ovz kernels
system time problems with ovz kernels [message #445] Mon, 05 December 2005 23:58 Go to next message
ntenev is currently offline  ntenev
Messages: 13
Registered: December 2005
Location: Bulgaria
Junior Member

Hi everyone, the problem is simple to explain, when I start host machine with ovzkernel-2.6.8-022stab050.1 after about a 2 hours not heavy work it's looses a system time and start show strange values on 'date' command ...

(22:30:31) date
Tue Dec 6 22:07:21 EET 2005

(22:30:35) date
Tue Dec 6 22:07:21 EET 2005

(22:30:37) date
Tue Dec 6 22:07:20 EET 2005

(22:30:41) date
Tue Dec 6 22:07:21 EET 2005

(22:30:43) date
Tue Dec 6 21:17:33 EET 2005

(22:30:46) date
Tue Dec 6 21:17:33 EET 2005

(22:30:50) date
Tue Dec 6 21:17:33 EET 2005

(22:30:53) date
Tue Dec 6 22:07:21 EET 2005

etc.

the time in parents is real time getted from other machine. Intervals between commands are not same everytime. The strange (for me) is that when I boot same machine with vzkernel-2.6.8-022stab038.1 I don't see any more these problems nomatters how long time machine work (I mean in days).

I tryed to copy /usr/share/zoneinfo/Europe/Sofia like /etc/localtime, other try was to symlink (ln -s /usr/share/zoneinfo/Europe/Sofia /etc/localtime), even I start ntpd that synchonyze system time but with ovzkernel-2.6.8-022stab050.1 the time mess was here (after a 2 - 3 hours work) and as result was that everything was slow ... really slow (vzctl restart xxx = about 45 - 60 min.). The same problems I have and with ovzkernel-2.6.8-022stab045.1

Now I use old vzkernel-2.6.8-022stab038.1 but everything goes fine without any changes on settings.

Do I miss something or there is a problem ? If this information can be useful the host machine is IBM ThinkCentre 2.4 GHz 512 RAM with Fedora Core 4 as a host OS and vztmpl-fedora-core-4-2.0-1.i386.rpm for VPSes

Thanks in advance !
Re: system time problems with ovz kernels [message #448 is a reply to message #445] Tue, 06 December 2005 08:49 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Thank you for reporting the bug, we will look into the issue.

I have created a new bug report (bug #75) for that. You can register in Bugzilla and add yourself into Cc for the bug if you want to track its progress.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: system time problems with ovz kernels [message #449 is a reply to message #445] Tue, 06 December 2005 09:25 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Please, provide the following information to help to resolve it:

1. during the boot kernel selects the timesource, check for string like this:
Using ... for high-res timesource
what timesource is used in 038 and in 045/050?

2. does kernel boot parameter "clock=pit" helps?
and "clock=tsc"?

3. I suppose this happened due to turned ON ACPI. Are you able to build and check kernel with options changes I will provide you?


http://static.openvz.org/userbars/openvz-developer.png
Re: system time problems with ovz kernels [message #472 is a reply to message #449] Wed, 07 December 2005 10:58 Go to previous messageGo to next message
ntenev is currently offline  ntenev
Messages: 13
Registered: December 2005
Location: Bulgaria
Junior Member

I will give all this information as soon as possible. But yesterday I change the host OS from Fedora Core to CentOS 4.2 ... actually reinstall all. I don't think that this change some important, but if is better to host OS to be Fedora Core I will try to find another HDD for tests.

[Updated on: Wed, 07 December 2005 11:00]

Report message to a moderator

Re: system time problems with ovz kernels [message #473 is a reply to message #472] Wed, 07 December 2005 16:04 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Ok, thanks a lot!

http://static.openvz.org/userbars/openvz-developer.png
Re: system time problems with ovz kernels [message #475 is a reply to message #449] Thu, 08 December 2005 09:52 Go to previous messageGo to next message
ntenev is currently offline  ntenev
Messages: 13
Registered: December 2005
Location: Bulgaria
Junior Member

Hi again, now I have some of answers that dev ask.

1. During boot all kernels use by default tsc as high-res timesource. Kernels with I test are:
a) kernel-2.6.9-22.0.1.EL (CentOS 4.2 standart)
b) vzkernel-2.6.8-022stab038.1.i686
c) ovzkernel-2.6.8-022stab050.1.i686

2. At this time machine work with ovzkernel-2.6.8-022stab050.1.i686 but with clock=pit boot option and to now, for about 8 hours, there is no problem ... I will wait some more hours before try clock=tsc acpi=off.

3. Dev: yes, if you provide me options I'm able to test builded kernels. I am really sorry, but I have misunderstood the question last time ... english is not my native language, and some time I'm "lost in translation" Smile

I have saved dmesg messages from every boot with upper three kernels, and can send to somebody if think that they will be useful.

Have a nice day !

[Updated on: Thu, 08 December 2005 09:54]

Report message to a moderator

Re: system time problems with ovz kernels [message #481 is a reply to message #472] Fri, 09 December 2005 11:18 Go to previous messageGo to next message
ntenev is currently offline  ntenev
Messages: 13
Registered: December 2005
Location: Bulgaria
Junior Member

Latest news are that with ovzkernel-2.6.8-022stab050.1.i686 and clock=pit boot option system time again failed after a 9 hours work. But for now with ovzkernel-2.6.8-022stab050.1.i686, default tsc clock and acpi=off boot option the machine works more that 24 hours without problem. If you need some additional information from me, or to make some test, just say.


Regards !
Re: system time problems with ovz kernels [message #550 is a reply to message #481] Sat, 17 December 2005 16:20 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

thanks a lot for information. It was exactly ACPI I was going to blame since we turned it ON in v046, so you just confirmed my guess.

Running kernel with acpi=off should be ok for you now.
Give me to know if something goes wrong.


http://static.openvz.org/userbars/openvz-developer.png
Re: system time problems with ovz kernels [message #551 is a reply to message #550] Sat, 17 December 2005 16:58 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

If the problem is ACPI, you could also try updating your BIOS to the latest version offered from your mobo manufacturer's site. In some cases it helps.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: system time problems with ovz kernels [message #553 is a reply to message #551] Sun, 18 December 2005 02:21 Go to previous message
ntenev is currently offline  ntenev
Messages: 13
Registered: December 2005
Location: Bulgaria
Junior Member

Yes, the problem is in ACPI as you say. With acpi=off boot option PC work more than 9 days without problem. I will try to update BIOS and will write again when test it. Thanks a lot and have a nice day (night by my timezone Smile )

[Updated on: Sun, 18 December 2005 02:26]

Report message to a moderator

Previous Topic: Cluster With firewire
Next Topic: Dedicated Server
Goto Forum:
  


Current Time: Wed Nov 06 08:47:12 GMT 2024

Total time taken to generate the page: 0.03438 seconds