NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Strange time issue with NetBSD-4/i386





Louis Guillaume wrote:

André Wienck wrote:
Hello, Louis,

On Sat, 26 Apr 2008 03:41:16 -0400, Louis Guillaume wrote:
I'm having a very strange issue with the time on my system. It is running about 10 times faster than it should.

Which is your active timecounter? (See sysctl kern.timecounter)

# sysctl kern.timecounter
kern.timecounter.choice = clockinterrupt(q=0, f=100 Hz) TSC(q=-100, f=996876440 Hz) i8254(q=100, f=1193182 Hz) dummy(q=-1000000, f=1000000 Hz)
kern.timecounter.hardware = i8254
kern.timecounter.timestepwarnings = 0




This is exactly the same as comes up with a GENERIC (non-MP) kernel. But the time works correctly. Is there a way to change this so the time works properly with MP kernels?

Louis







$ sysctl kern.timecounter
kern.timecounter.choice = clockinterrupt(q=0, f=100 Hz) TSC(q=-100, f=996892030 Hz) i8254(q=100, f=1193182 Hz) dummy(q=-1000000, f=1000000 Hz)
kern.timecounter.hardware = TSC
kern.timecounter.timestepwarnings = 0



It turns out that the "TSC" counter does the trick. I'm not sure why i8254 doesn't work or why it's the default on this system. Not sure what was the default in NetBSD-[123] but I never had to change it before when using GENERIC.MP.

Louis


Home | Main Index | Thread Index | Old Index