|
From: | Nick Burkitt |
Subject: | Re[2]: NTPsec reports excessive jitter from GPSD/KPPS SHM |
Date: | Fri, 06 Mar 2020 08:41:46 +0000 |
User-agent: | eM_Client/7.2.37929.0 |
Hi Gary. Yes, it's (part of) a kernel driver. It works. The timestamps produced by KPPS from my driver's events (/sys/class/pps/pp0) are what I would expect, showing a period of 1.000 s, a pulse width of 0.100 s and a jitter of < 0.000005 s. Whatever is going wrong is downstream of that - any excessive interrupt latency would be visible in the output of KPPS. CPU frequency scaling is disabled, and frequency is fixed at 866 MHz. Xilinx Zynq SoC (FPGA + 2 ARM Cortex A9 cores) Linux kernel 4.19.101
, HZ = 100 Ubuntu 18.04 LTS distro
GPSD 3.20
NTPsec 1.1.8+
U-blox NEO-M8T GNSS module
, via USB KPPS from u-blox timepulse output through custom kernel driver gpsd is invoked with "/usr/local/sbin/gpsd -n /dev/pps0 /dev/core100/gnss /dev/ttyS0" where /dev/pps0 is /dev/core100/gnss symlinks to /dev/ttyACM1 (u-blox), and /dev/ttyS0 is unconnected.
ntpd is invoked with "/usr/sbin/ntpd -g -N -u ntp:ntp -p /var/run/ntpd.pid"
I've modified use-gpsd-shm (below), and unplugged the Ethernet cable. Now it's just the GPS and PPS. I'll let it run overnight and see if anything positive develops. Here's what ntpmon reports at the moment: remote refid st t when poll reach delay offset jitter SHM(0) .GPS. 0 l 63 64 377 0.0000 76.6485 3.3823 *SHM(1) .PPS. 0 l 5 8 377 0.0000 -25.5235 27.6401 0.us.pool.ntp.o .STEP. 16 u - 8 0 0.0000 0.0000 0.0019 1.us.pool.ntp.o .STEP. 16 u - 8 0 0.0000 0.0000 0.0019 2.us.pool.ntp.o .STEP. 16 u - 8 0 0.0000 0.0000 0.0019 3.us.pool.ntp.o .STEP. 16 u - 8 0 0.0000 0.0000 0.0019 pool.ntp.org .POOL. 16 p - 8 0 0.0000 0.0000 0.0019 ntpd ntpsec-1.1.8+ 2020-03-04T20:55:58Z Updated: 2020-03-06T08:02:58 (4) lstint avgint rstr r m v count rport remote address 0 1.36 0 . 6 2 623 44368 localhost ============================================================== root@MPM-4006:/etc/ntp.d# cat use-gpsd-shm
# Simplest possible refclock configuration for sites with a GPS primary source.
#
# Uses the shared-memory driver, accepting fixes from a running gpsd
# instance watching one PPS-capable GPS. Accepts in-band GPS time (not
# very good, likely to have jitter in the 100s of milliseconds) on one
# unit, and PPS time (almost certainly good to 1 ms or less) on
# another. Prefers the latter.
# GPS Serial data reference (NTP0)
refclock shm unit 0 refid GPS noselect
# GPS PPS reference (NTP1)
#refclock shm unit 1 prefer refid PPS
refclock shm unit 1 minpoll 3 maxpoll 3 refid PPS prefer
# The following sets edit modes for GNU EMACS
# Local Variables:
# mode:conf
# End:
-Nick ------ Original Message ------
From: "Gary E. Miller" <address@hidden>
To: address@hidden
Sent: 3/5/2020 7:51:20 PM
Subject: Re: NTPsec reports excessive jitter from GPSD/KPPS SHM
|
[Prev in Thread] | Current Thread | [Next in Thread] |