View previous topic :: View next topic |
Author |
Message |
Messi n00b
Joined: 19 Jul 2002 Posts: 56 Location: Germany
|
Posted: Tue Dec 02, 2003 10:55 am Post subject: Kernel Clock runs way too fast |
|
|
Hi everybody,
I currently have a problem with one of my machines: the internal kernel clock runs way too fast, almost double speed.
The machine is a dual P4 2,8
I tried kernel gentoo-2.4.20-r8 and vanilla-2.4.23, both without ACPI, with RTC and SMP support.
Although ntpd adjusts the clock, it doesn't adjust the speed, every other program I tried (chrony, hwclock etc) doesn't either.
I ran some checks with adjtimex:
Code: | --- current --- -- suggested --
cmos time system-cmos 2nd diff tick freq tick freq
1070368494 -2006.930395 -2006.930395 10000 0
1070368499 -2001.930348 5.000047 10000 0
1070368504 -1996.930290 5.000058 10000 0 5000 -380469
1070368509 -1991.930235 5.000055 10000 0 5000 -360156
1070368514 -1986.930176 5.000059 10000 0 5000 -386719
adjtimex: Invalid argument
|
The interesting part is that the suggested tick is 5000, which is quite exactly the half of the current tick.
Unfortunately the clock apparantly doesn't support such low tickrates
What can I do, can someone give me a hint where to look? |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Tue Dec 02, 2003 6:53 pm Post subject: |
|
|
I have no real suggestions, but logic induces me to think that something went wrong with the kernel and the 2 processors. It looks like the kernel thinks there is only 1. However, you did compile in SMP... Weird. |
|
Back to top |
|
|
Messi n00b
Joined: 19 Jul 2002 Posts: 56 Location: Germany
|
Posted: Wed Dec 03, 2003 9:05 am Post subject: |
|
|
Your were right, it was SMP
I deactivated it in the Kernel, and since rebooting the clock is accurate again.
Thanks for your help
(Unfortunately I don't have the HyperThreading SMP anymore now) |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Wed Dec 03, 2003 1:08 pm Post subject: |
|
|
But are you still using both processors? Or now only 1 of them? |
|
Back to top |
|
|
Messi n00b
Joined: 19 Jul 2002 Posts: 56 Location: Germany
|
Posted: Thu Dec 04, 2003 1:18 pm Post subject: |
|
|
Well, it's a single-processor machine with HyperThreading (I was mistaken in my first post, sorry).
With SMP i could see those 1.5 CPUs , now naturally just one. |
|
Back to top |
|
|
ebrostig Bodhisattva
Joined: 20 Jul 2002 Posts: 3152 Location: Orlando, Fl
|
Posted: Thu Dec 04, 2003 5:44 pm Post subject: |
|
|
I'm not sure why you have compiled in RTC (RealTimeClock).
One thing you can do is to change the HZ entry in a kernel header file:
asm-i386/param.h:# define HZ 1000 /* Internal kernel timer frequency */
Not sure if that will fix the problem, but you can poke around with it and try.
Other than that, try to do a search of the Linux Kernel Mailing List and see if the problem is known, maybe even use Google.
Erik _________________ 'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.' |
|
Back to top |
|
|
|