SUMMARY: changing the system clock frequency on Solaris 2.7

2007-12-24 21:42:00

Thank you to the following for their replies:
Thomas Knox
Chris Hoogendyk
Ted John
Jay Lessert
Adam Bisbe
Karl Vogel
sysadmin at astro.su.se

My question had to do with how to replicate the behavior of the
command 'tickadj -t <n>' that is available under SunOS 4, Linux, and
most other UNIXes, but not in Solaris 5, 6, 7 or 8. This command
allows you to set the system clock frequency, so that the system clock
will keep accurate time.

Jay Lessert pointed me to http://sunsolve.sun.com free infodoc #21482
which provides detailed instructions and scripts for changing the correct
kernel variables under each version of Solaris.

Thank you all for your help!

-Matt Frank

In message <200201231714.g0NHEIx29718 at catfish.lcs.mit.edu>, Matthew Frank write
s:
> We have a dozen or so Ultra 5s running Solaris 2.7. Unfortunately the
> system clocks on several of the machines are consistently fast or slow
> by almost 1% per day, which is too much for ntpd to handle. (Ntp is
> only designed to handle clock frequencies off by at most 500 parts per
> million, ours are off by at least several thousand parts per million.)
>
> Some versions of UNIX come with a program called "tickadj" that allows
> you to change the number of microseconds added to the system clock (by
> changing the kernel variable "tick") everytime the timer interrupt
> fires. This utility doesn't come with Solaris, apparently because
> Solaris uses different kernel variables for this purpose.
>
> The ntp distribution comes with some instructions for fixing similar
> problems on Ultra 5s running Solaris 2.5, but says nothing (that I can
> find) about later versions of Solaris. In particular the fix involves
> running a script to modify the undocumented kernel variable
> "cpu_tick_freq" to an amount consistent with the machines actual clock
> frequency. (See
> http://www.eecis.udel.edu/~ntp/ntp_spool/html/hints/solaris.xtra.patchfreq).
>
> Does anyone know if this fix is also appropriate for later versions of
> Solaris (in particular 2.7), or if there is some other way to make our
> system clocks accurate enough for ntp to keep them in sync?
>
> Thank you,
>
> -Matt Frank
> _______________________________________________
> codeprof mailing list
> codeprof at codeprof.com
> http://www.codeprof.com/execute/ask/?codeinfoid=10128

Comments

Got something to say?

You must be logged in to post a comment.