Re: [chrony-dev] [PATCH] MacOS X - add drift removal |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] [PATCH] MacOS X - add drift removal
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Tue, 4 Aug 2015 04:52:22 +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=2k97/2K+pCdaFdVY/X9LrgqzS0JXDFq+rn/FsZ0yhl8=; b=me71ASKZqMsX mWq1MKH1zX4aOV3rSMO/2WpdweGeIrSoebim3z7s9z+nGH8KHWs8uuZDG6u2eokX4sndyNODDEj3D oJKzamMDtvd5PoNl2CJuVxa955T2/tduupOzXyDcaN/wXEikSh9QFIlqwTphWMCkxzIycg752InzZ MTtsQ0eFiSQAbgXTeF+NWNK4q2xTsj3GpXJfa0wOKpG3Xct2m4GWznGhnxU4QFWZPH5uFT6HQ0U5X Z/IL5SnVDq+xnu+GhP+CgPRIFoBSmKGDDAc7RZl5nC9f5VUiD8WLW+eo+T+xdZp2CKXYIUXuUkb1d FvwKvTps+HbpQ8DPpKwhMA==;
- Feedback-id: 149811m:149811acx33YQ:149811ssmceaFbnH:SMTPCORP
> On 4/08/2015, at 3:52 am, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> On Thu, Jul 30, 2015 at 09:50:26AM +1200, Bryan Christianson wrote:
>> The darwin kernel implementation of adjtime() does not require the adjustment to
>> be aligned to a tickadj boundary, and we can apply adjustments to the nearest microsecond.
>> Rounding is accounted for by adding any rounding errors back into the offset.
>
> Applied, thanks. What offset do you now see? I guess it doesn't solve
> the problem you were trying to fix in your previous patch.
New graph at http://whatroute.net/chrony/
It's an order of magnitude better than chrony-2.1.1 and is looking pretty good. I have maxpoll, minpoll both set to 4
My machine had just been rebooted just before I took the screenshot, and you can see the initial offset of about 1 second rapidly converge to the order of -10 usec
Graph legend
green: Offset sd
purple: frequency (ppm)
red: rms offset
blue: offset
brown: System time
orange: Weighted mean System Time (weighting 0.1)
>
> I was wondering if the error of the clock could be minimized by
> including in the requested adjustment a prediction of the offset in
> the middle of the update interval so the mean value is close to zero
> if the drift doesn't change much. E.g. with a drift of 10 ppm and
> current offset of 20 microseconds, request 25 microsecond adjustment
> instead of 20, so the clock overshoots a bit and reaches zero offset
> in about 0.5 seconds.
>
>
Yes, I think something like that could work, although I think some low pass filtering would be required in calculating the overshoot. It would be making the system act more like a PID controller and I think it should be approached on that basis.
>
--
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.