Re: [chrony-dev] chronyd not recovering after time stepped. |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] chronyd not recovering after time stepped.
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Fri, 28 Aug 2015 09:13:16 +1200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a0-2; h=Feedback-ID:X-Smtpcorp-Track:To:Message-Id:Date: From:Subject; bh=9dpdJtik3x/GwvKzIehvqST3Q3X1vwjLiVjKhBQAkx4=; b=4NhgYfQMzgoR 3O00FPTqntDFb86TVxW2oZBuQ4dDsM7gLLyUq43EwBsfo91CiV2/HPPj424p8YL0dI4bm0FluVf+l dy9oTEsYaBVovfpMVvJ/E+kcgi+bl0UF0UuzpewjqSmaX1nr28HUPS9gH0akue8p6WeDK+NwjVUwb lCPL5z4El+CdWScTc/uCkvxjExxtEZftVYtpE6HFKTM8mYLcMcyX9bfH35uXEilW+Di6PxW+jwiuO u6P+S7+VsqNzjdyf47ANpvqpyF/ylQVGSwRYKaUj/t/DqGFvLRn50dA0L8jAtCR8ldWSVhiBtztUU Ne/vHIPjvFgre7xrGsJkiQ==;
- Feedback-id: 149811m:149811acx33YQ:149811sUapGmMZHF:SMTPCORP
> On 27/08/2015, at 11:43 pm, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> On Thu, Aug 27, 2015 at 11:35:02PM +1200, Bryan Christianson wrote:
>>> On 27/08/2015, at 11:24 pm, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>>> That is odd. How long is the polling interval? It shouldn't take more
>>> than 6-10 new measurements after the step for the frequency to get close
>>> again to the right value and correct any remaining offset.
>>
>> The polling interval is 8 seconds. And indeed, when I restart chronyd it only takes a few cycles to correct the offset.
>> I'm not seeing any significant change in frequency, maybe 1ppm (from 17.5 ppm) for just a few samples after the step and then back to 17.5.
>
> Ok, that probably means it's something in the driver or the kernel.
> It might help us to see what values at what time is adjtime() getting
> and what it returns.
I think I figured it out. When the time is stepped there is a big spike in offset_sd. This causes the drift removal interval to be increased to a very large value (aprox 2 hours in the trace I just looked at) and then applied when the current drift cycle completes.
So for the next 2 hours, clock adjustments in start_adjust() are having a predicted offset of 30 ms or so. When the very long drift removal interval expires, then things go back to normal - offset_sd is now small and the system rapidly recovers.
I think the drift removal cycle should be restarted if the newly calculated interval is significantly different from the value of current_drift_removal_interval
--
Bryan Christianson
--
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.