home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jhunix.hcf.jhu.edu!andy
- From: andy@jhunix.hcf.jhu.edu (Andy Poling)
- Newsgroups: comp.protocols.time.ntp
- Subject: Re: Problems running xntp v3 on SGI Indigo
- Keywords: tick, tickadj, SGI
- Message-ID: <1992Aug25.185749.29102@jhunix.hcf.jhu.edu>
- Date: 25 Aug 92 18:57:49 GMT
- References: <2A9A652F.8451@orion.oac.uci.edu>
- Followup-To: comp.protocols.time.ntp
- Organization: HAC - Johns Hopkins University, Baltimore
- Lines: 53
-
- In article <2A9A652F.8451@orion.oac.uci.edu> iglesias@draco.acs.uci.edu (Mike Iglesias) writes:
- >I'm trying to run the latest release of xntp v3 on an SGI Indigo running
- >v4.0.1 of the OS. xntpd is having trouble keeping the clock in sync,
- >generating lots of STEP adjustments in the syslog file. Since the
- >SGI build uses -DNOKMEM, it's using the built-in values for tick and
- >tickadj. I'm assuming these are wrong for the SGI Indigo and that
- >is what is causing the problem. Does anyone have a good idea for
- >tick and tickadj values for Indigos?
-
- From ntp_unixclock.c in my xntpdv2 (xntpv3 is still on my todo list) port
- which ticks nicely on a 4D/300:
-
- void
- clock_parms(tickadj, tick)
- u_long *tickadj;
- u_long *tick;
- {
- #ifdef sgi
- /*
- * no use screwing around in memory when you've got system calls that
- * can tell you all you need to know - ASP
- */
- #include <unistd.h>
- /*
- * all IRIX clocks will run at 100 HZ if fastclock is disabled.
- * Therefore 100 is a good default value if the sysconf call fails -
- * ASP
- */
- if ((*tick = sysconf(_SC_CLK_TCK)) <= 0)
- *tick = (unsigned long)100L;
- /*
- * It's difficult to figure out which IRIX kernel value corresponds to
- * BSD's tickadj, so we fake it... - ASP
- */
- *tickadj = (unsigned long)1L;
- #ifdef DEBUG
- if (debug)
- printf("tick = %d, tickadj = %d\n", *tick, *tickadj);
- #endif
- return;
- #endif
- .
- .
- .
-
- -Andy
-
- Andy Poling Internet: andy@jhunix.hcf.jhu.edu
- UNIX Systems Programmer Bitnet: ANDY@JHUNIX
- Homewood Academic Computing Voice: (410)516-8096
- Johns Hopkins University UUCP: uunet!mimsy!aplcen!jhunix!andy
-
-
-