Em qui., 11 de mai. de 2023 às 21:43, Richard Cochran <
richardcoch...@gmail.com> escreveu:
> Maybe you have ntpd or systemd timesync or chrony running on the
> client and/or the server?
>
> IIRC Ubuntu enables systemd thing by default, and it is hard to get
> rid of.

I disabled clock sync by NTP before starting these tests because I intended
to
manually alter the clocks as part of the tests. After altering the system
clock
of the master with date -s 'XX.YY', it proceeds from that without syncing
with the real time.

At home it occurred to me the issue could have something to do with
those "time +100000000" in the log. I assumed that could be the value of a
virtual clock of 100MHz that was adjusted to compensate for the delays.
The negative offsets has a lower value. I guessed the positive should
have a higher than +100000000 to lower the delay. What if I switched
the rules of the two Fitlets? That produced the log below. Then I switched
the rules again to see if I reproduced the problem. It turns out it did not.

Notice the freq values are all relatively low and alternate between
positive and negative values. Based on these results, it seems to me
that clock value is really a delta. I had already noticed that some days
ago. Yesterday, all the runs showed that +100000000 and that drift
occurred. Today all the runs show a lower clock and the offset stays
in the tens of us range with some a few hundreds, which is perfect
for my application (1ms is good, 2.5 ms would still be pretty acceptable).

Any ideas?

Here is the log, snipped to avoid clutter.

cve@cve-sbc-flt1:~$ sudo ptp4l -S -m -q --clientOnly=1
--step_threshold=0.001 -i enp3s0
[sudo] password for cve:
ptp4l[483.312]: port 1 (enp3s0): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[483.312]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[483.312]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on
INIT_COMPLETE
ptp4l[484.261]: port 1 (enp3s0): new foreign master 0001c0.fffe.1a3cda-1
ptp4l[488.262]: selected best master clock 0001c0.fffe.1a3cda
ptp4l[488.262]: foreign master not using PTP timescale
ptp4l[488.262]: port 1 (enp3s0): LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[490.263]: master offset -37039670930503 s0 freq      -0 path delay
 229600
ptp4l[491.263]: master offset -37039670924487 s0 freq      -0 path delay
 229600
ptp4l[492.264]: master offset -37039670928753 s0 freq      -0 path delay
 232188
ptp4l[493.264]: master offset -37039670917021 s0 freq      -0 path delay
 234777
ptp4l[494.264]: master offset -37039670952779 s0 freq      -0 path delay
 234777
ptp4l[495.264]: master offset -37039670932443 s0 freq      -0 path delay
 239541
ptp4l[496.264]: master offset -37039671053736 s0 freq      -0 path delay
 244305
ptp4l[497.265]: master offset -37039671066600 s0 freq      -0 path delay
 239541
ptp4l[498.265]: master offset -37039670962899 s0 freq      -0 path delay
 239541
ptp4l[499.265]: master offset -37039670952525 s0 freq      -0 path delay
 239065
ptp4l[500.265]: master offset -37039670957832 s0 freq      -0 path delay
 241685
ptp4l[501.265]: master offset -37039671028566 s0 freq      -0 path delay
 242272
ptp4l[502.266]: master offset -37039670976362 s0 freq      -0 path delay
 242272
ptp4l[503.266]: master offset -37039670953205 s0 freq      -0 path delay
 240855
ptp4l[504.266]: master offset -37039671002137 s0 freq      -0 path delay
 240855
ptp4l[505.266]: master offset -37039671039068 s0 freq      -0 path delay
 239652
ptp4l[506.266]: master offset -37039670976926 s1 freq   -2901 path delay
 239652
ptp4l[507.267]: master offset    -103222 s2 freq  -13326 path delay
 239652
ptp4l[507.267]: port 1 (enp3s0): UNCALIBRATED to SLAVE on
MASTER_CLOCK_SELECTED
ptp4l[508.267]: master offset     -89679 s2 freq  -12062 path delay
 239652
ptp4l[509.267]: master offset     -77666 s2 freq  -10938 path delay
 236179
ptp4l[510.267]: master offset     -85815 s2 freq  -11839 path delay
 221372
ptp4l[511.267]: master offset     -40116 s2 freq   -7309 path delay
 221372
ptp4l[512.267]: master offset     -46752 s2 freq   -8019 path delay
 195594
ptp4l[513.268]: master offset     -20651 s2 freq   -5430 path delay
 195101
ptp4l[514.268]: master offset      79506 s2 freq   +4665 path delay
 195101
ptp4l[515.268]: master offset     101894 s2 freq   +7006 path delay
 195101
ptp4l[516.268]: master offset      82552 s2 freq   +5154 path delay
 195101
ptp4l[517.269]: master offset      55103 s2 freq   +2465 path delay
 195101
ptp4l[518.269]: master offset      58935 s2 freq   +2907 path delay
 195101
ptp4l[519.269]: master offset      63706 s2 freq   +3448 path delay
 195594
ptp4l[520.269]: master offset      58163 s2 freq   +2951 path delay
 195594
...
ptp4l[2942.407]: master offset      42215 s2 freq   +1370 path delay
 217699
ptp4l[2943.407]: master offset      29546 s2 freq    +133 path delay
 217699
ptp4l[2944.407]: master offset      -5205 s2 freq   -3348 path delay
 232956
ptp4l[2945.408]: master offset      19100 s2 freq    -898 path delay
 232956
ptp4l[2946.408]: master offset     -75752 s2 freq  -10459 path delay
 232956
ptp4l[2947.408]: master offset      39169 s2 freq   +1072 path delay
 229773
ptp4l[2948.408]: master offset      18187 s2 freq   -1008 path delay
 229773
cve@cve-sbc-flt1:~$
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to