home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!wupost!cs.uiuc.edu!ux1.cso.uiuc.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!spool.mu.edu!sgiblab!sgigate!sgi!rhyolite!vjs
- From: vjs@rhyolite.wpd.sgi.com (Vernon Schryver)
- Subject: Re: Unruly timed
- Message-ID: <sevg4do@rhyolite.wpd.sgi.com>
- Organization: Silicon Graphics, Inc. Mountain View, CA
- References: <1992Nov16.211019.20140@cis.uab.edu>
- Date: Mon, 16 Nov 1992 23:58:00 GMT
- Lines: 59
-
- In article <1992Nov16.211019.20140@cis.uab.edu>, jpg@nrc3d.nrc.uab.edu (Jill Gemmill) writes:
- >
- > PROBLEM: machines synchronizing their clocks keep losing time
- > (about 5 minutes per day).
- > SETUP:
- > - We have three SGI machines, each running 4.0.5
- > (names: nrc3d, clsm and nrc-iris)
- > - The current "timed.options" file on machine nrc3d looks like this:
- > -P /usr/tmp/.timetrim -F localhost clsm nrc-iris.nrc.uab.edu
- > (each machine lists itself and the other two as
- > trusted time machines)
- > - Each timed starts with the -M option, which SGI writes into
- > the "network" init script.
- > SO:
- > The machines do keep the same time, but the time drifts backwards
- > about 5 minutes a day. Why does this happen, and what can I do
- > to make it stop??
-
-
- Please note that "-M" really means "be moderator", not "master."
-
- In the absense of an external standard, all that timed or any other
- time gadget can do is combine one or more clocks and hope the result
- is better.
-
- If one of your 3 machines is slow, time on the network will slip.
- The most common thing that makes time that slow is lots of "kernel
- printf's", because everything including the clock stops while the
- kernel is complaining.
-
- Consider also the contents of /usr/tmp/.timetrim on each machine.
- Those files contain the recent long term average corrections needed
- by each system.
-
- To fix the problem I would:
-
- I. on each of the 3 systems
- 1. delete /usr/tmp/.timetrim
- 2. restart timed--either reboot or
- killall -v timed
- timed -M `cat /etc/config/timed.options`
-
- II. every day, set the time on one of the 3 machines with the date
- command
-
- (I) will make the three machine forget that they have been taught to
- be slow.
-
- (II) should gradually teach them to be faster. The need to be faster
- should gradually appear in each machine's /usr/tmp/.timetrim.
-
-
- It is also possible use `timeslave` or to port and use xnptd to
- synchronize one of the 3 machines to an external clock, and then make
- that one machine "free run" (-F) as a moderator of a group of one (i.e.
- be a master), and distribute time to the other machines with timed.
-
-
- Vernon Schryver, vjs@sgi.com
-