Re: [Linuxptp-users] Accuracy in Software Timestamp Mode

2020-05-25 Thread Miroslav Lichvar
On Thu, May 21, 2020 at 09:26:59AM -0400, cpham2...@comcast.net wrote:
> Hi, I am running linuxptp version 2.0 in software timestamp mode, and I found 
> the "master offsets" are all over the places. In ~7000 offset measurements, 
> more than 50% is greater than 100 micro-sec. Maximum offsets observed is 
> around 300 micro-secs.  I wonder anyone ran linuxptp in software timestamp 
> mode and what accuracy level was observed.
> My master clock and PTP clients on are a local network with no PTP-support 
> switches. There are 4 switches along the path between the master clock and 
> the clients. When I ran linuxptp in hardware timestamp mode in the same 
> network setting, I achieved great results: 90% of master offsets is within 1 
> micro-sec. In software timestamp mode the master offsets are higher than 
> expected.  Is there anything I can do to improve the accuracy?

There are few things you could try to improve the stability with SW
timestamping:

- disable interrupt coalescing on the NIC with ethtool -C if possible
- disable power saving features (e.g. set the CPU to a constant
  frequency, disable idle states)
- disable energy efficient ethernet (EEE) - this helps with HW
  timestamping too

To improve accuracy, use the same HW, SW, and configuration on the
master and slave, so the errors in RX/TX timestamping cancel out.

-- 
Miroslav Lichvar



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


Re: [Linuxptp-users] Accuracy in Software Timestamp Mode

2020-05-24 Thread Richard Cochran
On Fri, May 22, 2020 at 11:39:02AM -0400, Dave Thomas wrote:
> What offset can I expect with software timestamping AND wlan?

Believe me when I say, don't use software time stamping over WiFi.
You are better off using NTP.

Thanks,
Richard


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


Re: [Linuxptp-users] Accuracy in Software Timestamp Mode

2020-05-21 Thread Richard Cochran
On Thu, May 21, 2020 at 09:26:59AM -0400, cpham2...@comcast.net wrote:

> My master clock and PTP clients on are a local network with no
> PTP-support switches. There are 4 switches along the path between
> the master clock and the clients. When I ran linuxptp in hardware
> timestamp mode in the same network setting, I achieved great
> results: 90% of master offsets is within 1 micro-sec. In software
> timestamp mode the master offsets are higher than expected.  Is
> there anything I can do to improve the accuracy?

I am afraid that your results are in fact typical.  There is a long
and non-deterministic path from the frames on the wire to the software
time stamp somewhere in the networking stack.

Sorry,
Richard


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