LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   Debian on Hyper-V: Serious clock drift (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/debian-on-hyper-v-serious-clock-drift-802283/)

crushyourboy 04-15-2010 06:07 PM

Debian on Hyper-V: Serious clock drift
 
I've been running Debian (Debian GNU/Linux 5.0 2.6.26-2-686) on MS Hyper-V for over a year now without any clock issues. In the past few weeks I've started seeing serious clock drift on the Linux guests (1s per min). I've not been able to isolate the root cause for the drift and based upon other people's experience with Host/Guest clocks I'm surprised I hadn't had problems earlier.

In testing, I have a base Debian image which does not see the drift. If I install the adjtimex package the drift begins and there doesn't seem to be any way to fix it (removing adjtimex doesn't help, rebooting with notsc or clock=pit doesn't help).

Has anyone seen similar issues and found a resolution?

nikwax 04-17-2010 08:15 AM

Quote:

Originally Posted by crushyourboy (Post 3937011)
I've been running Debian (Debian GNU/Linux 5.0 2.6.26-2-686) on MS Hyper-V for over a year now without any clock issues. In the past few weeks I've started seeing serious clock drift on the Linux guests (1s per min). I've not been able to isolate the root cause for the drift and based upon other people's experience with Host/Guest clocks I'm surprised I hadn't had problems earlier.

In testing, I have a base Debian image which does not see the drift. If I install the adjtimex package the drift begins and there doesn't seem to be any way to fix it (removing adjtimex doesn't help, rebooting with notsc or clock=pit doesn't help).

Has anyone seen similar issues and found a resolution?

Not sure about hyper-V, but for VMware systems the following info is useful - perhaps you can get something useful that will apply.

(I suspect that using as recent a kernel as possible might help.)

http://www.vmware.com/pdf/vmware_timekeeping.pdf .
http://kb.vmware.com/kb/1006427 "Timekeeping best practices for Linux guests"

crushyourboy 04-18-2010 10:08 AM

Quote:

Originally Posted by nikwax (Post 3938475)
Not sure about hyper-V, but for VMware systems the following info is useful - perhaps you can get something useful that will apply.

(I suspect that using as recent a kernel as possible might help.)

http://www.vmware.com/pdf/vmware_timekeeping.pdf .
http://kb.vmware.com/kb/1006427 "Timekeeping best practices for Linux guests"

It looks like the resolution is to not install adjtimex. I purged it and all is working well again.


All times are GMT -5. The time now is 09:21 PM.