Hello everyone,

I am running ptp4l and phc2sys with values lower than 100ns, that is, my nodes are synchronized to the GM. It is fine until I run "stress-ng" in my nodes (4-core systems) with 4 CPU threads at 25% of load each. ptp4l and phc2sys have priority fifo 99 and the stress-ng process fifo 50. Tried in Linux kernels: 4.13.0-36-generic and Preemp-RT 4.9.18-rt14-rt14. Both work badly.

When I run the load, I see a loss of sync and trying to recover it periodically, but always losing the sync over time. This is the log of ptp4l and phc2sys together:

phc2sys[705.021]: CLOCK_REALTIME phc offset       -23 s2 freq +408525 delay   4836
ptp4l[705.089]: rms    4 max    7 freq +15635 +/-   5 delay   234 +/-   0
phc2sys[705.104]: CLOCK_REALTIME phc offset       -29 s2 freq +408512 delay   4800 phc2sys[705.188]: CLOCK_REALTIME phc offset         5 s2 freq +408537 delay   4848 phc2sys[705.271]: CLOCK_REALTIME phc offset       -20 s2 freq +408514 delay   4800 phc2sys[705.355]: CLOCK_REALTIME phc offset        23 s2 freq +408551 delay   4896 phc2sys[705.439]: CLOCK_REALTIME phc offset       -20 s2 freq +408515 delay   4823 phc2sys[705.522]: CLOCK_REALTIME phc offset         2 s2 freq +408531 delay   4848 phc2sys[706.745]: CLOCK_REALTIME phc offset        26 s2 freq +408555 delay   4848 ptp4l[706.745]: clockcheck: clock jumped backward or running slower than expected! ptp4l[706.745]: port 1 (enp3s0): SLAVE to UNCALIBRATED on SYNCHRONIZATION_FAULT ptp4l[706.746]: port 1 (enp3s0): UNCALIBRATED to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[706.746]: selected local clock aabbcc.fffe.00094e as best master
ptp4l[706.746]: port 1 (enp3s0): assuming the grand master role
phc2sys[706.828]: CLOCK_REALTIME phc offset        26 s2 freq +408563 delay   4848 phc2sys[706.912]: CLOCK_REALTIME phc offset        18 s2 freq +408563 delay   4848 ptp4l[706.965]: clockcheck: clock jumped forward or running faster than expected! phc2sys[706.996]: CLOCK_REALTIME phc offset        12 s2 freq +408562 delay   4800 phc2sys[707.079]: CLOCK_REALTIME phc offset        24 s2 freq +408578 delay   4848 phc2sys[707.163]: CLOCK_REALTIME phc offset        61 s2 freq +408622 delay   4860
ptp4l[707.244]: selected best master clock 00049f.fffe.ef0808
ptp4l[707.244]: port 1 (enp3s0): MASTER to UNCALIBRATED on RS_SLAVE
phc2sys[707.246]: CLOCK_REALTIME phc offset        12 s2 freq +408591 delay   4848 phc2sys[707.330]: CLOCK_REALTIME phc offset         1 s2 freq +408584 delay   4848 phc2sys[707.414]: CLOCK_REALTIME phc offset       -12 s2 freq +408571 delay   4812 phc2sys[707.497]: CLOCK_REALTIME phc offset         0 s2 freq +408580 delay   4836 phc2sys[707.581]: CLOCK_REALTIME phc offset         3 s2 freq +408583 delay   4848 phc2sys[707.665]: CLOCK_REALTIME phc offset       -11 s2 freq +408570 delay   4848 phc2sys[707.748]: CLOCK_REALTIME phc offset        44 s2 freq +408621 delay   4848 phc2sys[707.832]: CLOCK_REALTIME phc offset        10 s2 freq +408601 delay   4800 phc2sys[707.916]: CLOCK_REALTIME phc offset       -29 s2 freq +408565 delay   4836 ptp4l[707.966]: port 1 (enp3s0): UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED phc2sys[707.999]: CLOCK_REALTIME phc offset       -14 s2 freq +408571 delay   4848 phc2sys[708.083]: CLOCK_REALTIME phc offset       -41 s2 freq +408540 delay   4812 phc2sys[708.166]: CLOCK_REALTIME phc offset       -27 s2 freq +408541 delay   4812
ptp4l[708.217]: rms    9 max   18 freq +15649 +/-  20 delay   234 +/-   0
phc2sys[708.250]: CLOCK_REALTIME phc offset       -20 s2 freq +408540 delay   4848 phc2sys[708.334]: CLOCK_REALTIME phc offset         1 s2 freq +408555 delay   4848 phc2sys[708.417]: CLOCK_REALTIME phc offset       -28 s2 freq +408527 delay   4812 phc2sys[708.501]: CLOCK_REALTIME phc offset       -10 s2 freq +408536 delay   4848 phc2sys[708.585]: CLOCK_REALTIME phc offset         2 s2 freq +408545 delay   4836 phc2sys[708.668]: CLOCK_REALTIME phc offset        -5 s2 freq +408539 delay   4848 phc2sys[708.752]: CLOCK_REALTIME phc offset         7 s2 freq +408549 delay   4848 phc2sys[708.835]: CLOCK_REALTIME phc offset       -25 s2 freq +408519 delay   4812 phc2sys[708.919]: CLOCK_REALTIME phc offset         5 s2 freq +408542 delay   4848 phc2sys[709.003]: CLOCK_REALTIME phc offset       -26 s2 freq +408512 delay   4823 phc2sys[709.086]: CLOCK_REALTIME phc offset         1 s2 freq +408532 delay   4848 phc2sys[709.170]: CLOCK_REALTIME phc offset        12 s2 freq +408543 delay   4848
ptp4l[709.217]: rms    9 max   15 freq +15655 +/-   9 delay   234 +/-   0
phc2sys[709.254]: CLOCK_REALTIME phc offset       -27 s2 freq +408507 delay   4848 phc2sys[709.337]: CLOCK_REALTIME phc offset        -9 s2 freq +408517 delay   4800 phc2sys[709.421]: CLOCK_REALTIME phc offset        15 s2 freq +408539 delay   4848 phc2sys[709.504]: CLOCK_REALTIME phc offset        20 s2 freq +408548 delay   4848 phc2sys[709.588]: CLOCK_REALTIME phc offset       -14 s2 freq +408520 delay   4800 phc2sys[709.672]: CLOCK_REALTIME phc offset        30 s2 freq +408560 delay   4872 phc2sys[709.755]: CLOCK_REALTIME phc offset        40 s2 freq +408579 delay   4800 phc2sys[709.839]: CLOCK_REALTIME phc offset         2 s2 freq +408553 delay   4812 phc2sys[709.922]: CLOCK_REALTIME phc offset         6 s2 freq +408558 delay   4848 phc2sys[710.006]: CLOCK_REALTIME phc offset        -5 s2 freq +408548 delay   4884 phc2sys[710.090]: CLOCK_REALTIME phc offset        12 s2 freq +408564 delay   4848 phc2sys[710.173]: CLOCK_REALTIME phc offset       -26 s2 freq +408529 delay   4836
ptp4l[710.218]: rms   18 max   21 freq +15628 +/-   5 delay   234 +/-   0
ptp4l[710.980]: clockcheck: clock jumped backward or running slower than expected! phc2sys[710.980]: CLOCK_REALTIME phc offset         8 s2 freq +408556 delay   4860 ptp4l[710.984]: port 1 (enp3s0): SLAVE to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[710.985]: selected local clock aabbcc.fffe.00094e as best master
ptp4l[710.985]: port 1 (enp3s0): assuming the grand master role
phc2sys[711.063]: CLOCK_REALTIME phc offset       -15 s2 freq +408535 delay   4800 ptp4l[711.093]: clockcheck: clock jumped forward or running faster than expected! phc2sys[711.147]: CLOCK_REALTIME phc offset        -5 s2 freq +408541 delay   4788 phc2sys[711.231]: CLOCK_REALTIME phc offset       -20 s2 freq +408524 delay   4812 phc2sys[711.314]: CLOCK_REALTIME phc offset        56 s2 freq +408594 delay   4812 phc2sys[711.398]: CLOCK_REALTIME phc offset        34 s2 freq +408589 delay   4824


How can I solve this problem?

Any help is welcome.


Diego



_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to