Re: [chrony-dev] SW/HW timestamping on Linux |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] SW/HW timestamping on Linux
- From: Denny Page <dennypage@xxxxxx>
- Date: Thu, 17 Nov 2016 17:44:23 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=4d515a; t=1479433466; bh=z3WujDNTGawmGq9SESUNZyHiXFsFo8bqCQWvUk8ipqI=; h=From:Content-type:MIME-version:Subject:Date:To:Message-id; b=etWJ4gdbiyifeeYMa3WlA7HUWAdKF+iLnG+d1ujO+h7OPlERvWT9+FpJvoenFs9Q7 tvmi2/cINidMhuSZrULefQMl8cif6KBDC1M5J1bZbibTazpG0xM3Dwkbrpv5Go792E d8uBpXUpTtcv8rLXMt1bn17i31vHqzWPWJW7UMHH0qBTOqwxIW2C1D3K257pEeDmQA dotOi8LyfHo9EZQMD64F/xjBcv/XHrQ0OSbKOmup0mS555EcWdyle69kgI65n7CO84 AmEjvLRZ0jx1KW93T1nmZvplBusUWnvijDmEJuAdhsiKPo8HnugFwau9f01crFPDKf naXgUAzQ4Kg8Q==
Although reduced, I’m still seeing spikes with the patch below.
Denny
> On Nov 16, 2016, at 00:53, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> On Tue, Nov 15, 2016 at 08:24:37PM -0800, Denny Page wrote:
>> With the latest drop in the repo, I’m still seeing the wild spikes in the standard deviation with hardware time stamping against the fast responding hardare units. I'm also still seeing a better base deviation using software timestamps against them as well.
>>
>> I do see better results with hardware time stamping when doing chrony to chrony, but I believe that this is a result of the general purpose computers being a bit slower to respond than the dedicated hardware units.
>
> Hm, the fix helped with the spikes I was seeking. Did we rule out the
> possibility that in your case the spikes are due to the other issue with
> out-of-order HW timestamps? Could you try it with this patch to make
> sure only measurements with HW timestamps are used?
>
> --- a/ntp_core.c
> +++ b/ntp_core.c
> @@ -1434,6 +1434,9 @@ receive_packet(NCR_Instance inst, NTP_Local_Address *local_addr,
> prevent a synchronisation loop */
> testD = message->stratum <= 1 || REF_GetMode() != REF_ModeNormal ||
> pkt_refid != UTI_IPToRefid(&local_addr->ip_addr);
> +
> + if (inst->local_tx.source != NTP_TS_HARDWARE || rx_ts->source != NTP_TS_HARDWARE)
> + testB = 0;
> } else {
> offset = delay = dispersion = 0.0;
> sample_time = rx_ts->ts;
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.