Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Clock runs way too fast
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Messi
n00b
n00b


Joined: 19 Jul 2002
Posts: 56
Location: Germany

PostPosted: Tue Dec 02, 2003 10:55 am    Post subject: Kernel Clock runs way too fast Reply with quote

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
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Tue Dec 02, 2003 6:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Messi
n00b
n00b


Joined: 19 Jul 2002
Posts: 56
Location: Germany

PostPosted: Wed Dec 03, 2003 9:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Helena
Veteran
Veteran


Joined: 02 Apr 2003
Posts: 1114
Location: Den Dolder, The Netherlands

PostPosted: Wed Dec 03, 2003 1:08 pm    Post subject: Reply with quote

But are you still using both processors? Or now only 1 of them?
Back to top
View user's profile Send private message
Messi
n00b
n00b


Joined: 19 Jul 2002
Posts: 56
Location: Germany

PostPosted: Thu Dec 04, 2003 1:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Thu Dec 04, 2003 5:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum