[ntp:hackers] More on the runaway clock in FreeBSD 6

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Dec 22 22:29:08 UTC 2005


In message <43AB24E9.3050404 at udel.edu>, "David L. Mills" writes:
>Guys,
>
>In 5.3 the kernel clock runs at 100 Hz; however, I see in the 6.0 kernel 
>sources it runs at 1000 Hz for 64-bit machines and the i386. The tickadj 
>program correctly reports the clock frequency, but calculates the clock 
>frequency as 100 Hz in both 5.3 and 6.0. Changing the value of tick has 
>no effect.

The correct way to get hz is to ask the sysctl variable kern.clockrate

# sysctl kern.clockrate
kern.clockrate: { hz = 1000, tick = 1000, profhz = 1024, stathz = 128 }


The other more important thing is that tickadj is not even close
to relevant on recent versions of FreeBSD and should neither be
built nor run on them.

Poul-Henning

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the hackers mailing list