Home | History | Annotate | Line # | Download | only in hints
      1  1.1  kardel HP e3000 MPE/iX NTP Hints - May 29, 2001
      2  1.1  kardel ----------------------------------------
      3  1.1  kardel 
      4  1.1  kardel NTP was first ported to MPE several years ago, but those diffs were never
      5  1.1  kardel submitted back to the official NTP distribution.  For more information about
      6  1.1  kardel that deprecated port, please see http://www.bixby.org/mark/xntpix.html.
      7  1.1  kardel 
      8  1.1  kardel NTP was re-ported to MPE in May 2001.  What follows are hints learned from
      9  1.1  kardel working with NTP 4.0.99k23.  For additional information about NTP on MPE,
     10  1.1  kardel please see http://jazz.external.hp.com/src/hp_freeware/ntp/.
     11  1.1  kardel 
     12  1.1  kardel MPE lacks the clock-related APIs expected by NTP, so adjtime(), gettimeofday(),
     13  1.1  kardel and settimeofday() all had to be implemented from scratch by calling
     14  1.1  kardel privileged, undocumented internal OS functions.
     15  1.1  kardel 
     16  1.1  kardel Unfortunately the implementation of adjtime() has exposed a sub-second accuracy
     17  1.1  kardel bug when slewing the system time.  This bug is documented in SR 5003462838, and
     18  1.1  kardel exists on all current versions of MPE.  It has not been fixed at the time of
     19  1.1  kardel this writing.  The adjtime() code may possibly need to be altered if/when this
     20  1.1  kardel bug is fixed.
     21  1.1  kardel 
     22  1.1  kardel This bug has a side-effect whereby the ntpd daemon will screw up the hardware
     23  1.1  kardel PDC clock time by many minutes if used for continuous clock adjustments or in
     24  1.1  kardel the one-time -q mode.  But note that you can safely run ntpd in order to become
     25  1.1  kardel a time server if you include "disable ntp" in the ntp.conf configuration file.
     26  1.1  kardel 
     27  1.1  kardel The one-time clock adjustment functionality of ntpdate and ntp_timeset is not
     28  1.1  kardel affected by this bug side-effect.  You can safely use these commands to alter
     29  1.1  kardel your system time with reasonable accuracy.
     30  1.1  kardel 
     31  1.1  kardel The only reference clock that has been tested on MPE is the local clock.  So
     32  1.1  kardel building NTP with --disable-all-clocks --enable-LOCAL_CLOCK is strongly
     33  1.1  kardel recommended.
     34  1.1  kardel 
     35  1.1  kardel NTP makes use of Privileged Mode (PM) capability in order to bind to the NTP
     36  1.1  kardel network port (123) and to access the low-level clock functions.
     37  1.1  kardel 
     38  1.1  kardel NTP was ported using the gcc compiler.  Attempting to use the HP C/iX compiler
     39  1.1  kardel is not recommended and has not been tested.
     40  1.1  kardel 
     41  1.1  kardel Please note that NTP is not an HP product and is NOT supported by HP.  The best
     42  1.1  kardel place for asking MPE-specific questions about NTP is the HP3000-L mailing list
     43  1.1  kardel at http://raven.utc.edu/Archives/hp3000-l.html or the associated Usenet
     44  1.1  kardel newsgroup of comp.sys.hp.mpe.
     45  1.1  kardel 
     46  1.1  kardel The original author of this port is:
     47  1.1  kardel 
     48  1.1  kardel Mark Bixby
     49  1.1  kardel HP CSY MPE Internet & Interoperability Engineer
     50  1.1  kardel mark_bixby (a] hp.com
     51