[ntp:questions] NTP shared memory driver

Harlan Stenn stenn at ntp.org
Thu Sep 11 22:16:26 UTC 2014


clouddese at gmail.com writes:
> My configuration file il se following:
> 
> #
> driftfile /var/log/ntp.drift    # path for drift file
> logfile /var/log/ntp.log        # alternate log file
> 
> # shared memory configuration
> server 127.127.28.0 minpoll 4 maxpoll 4 prefer
> fudge 127.127.28.0 time1 0.420 refid SHM1 stratum 0 true
> 
> server 127.127.28.1 minpoll 4 maxpoll 4
> fudge 127.127.28.1 time1 0.420 refid SHM2 stratum 0 true

stratum 0 is too "good".  I think you want 1, maybe 2.

What do you think the "true" at the end of your fudge lines is doing?

> Querying the ntp gives me:
> 
> emh2 at tutnix:/etc$ ntpq -p
>      remote           refid      st t when poll reach   delay   offset  jitte
> r
> =============================================================================
> =
>  SHM(0)          .SHM1.           0 l    -   16    0    0.000    0.000   0.00
> 0
>  SHM(1)          .SHM2.           0 l    -   16    0    0.000    0.000   0.00
> 0
> 
> Seems that nothing is working.

Yes, until you start getting ntpd to accept data samples from your SHM
socket nothing will be working there.

H


More information about the questions mailing list