Re: [chrony-dev] [PATCH] MacOS X - Dynamic drift removal interval |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-dev] [PATCH] MacOS X - Dynamic drift removal interval
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Thu, 13 Aug 2015 20:18:30 +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=+ERIjbAw+t/NrHB53YDdBx+bYzry0JwavvS2D+ngDdc=; b=G1/grH7x4w10 85Pfx1Xc7XgOctaAMqySYVOvlxNqmrASbIOVT8VI04ZGwMBIFkgayRWd1BlDnAL6nTErGshg4xtkr WwRkzpNdZcmLz8hvHsHDO8E9xViT/NU5NdkM0z84m8e+LN9U7fwIxsTDm7lgNgtuNA9wRDVcTCc5/ ZGiQCbTO6QQEWEUAwAlwKhghVvYdmuEcSByLL7e08zaq+cQ7fBGti4lvh0QPWvEmaMnjN7kmNBxHW dJsaUO7451pZ055KYUmZubVY/rF4NqZe/66b1eGAqmBVdFJOmbBc5+f7tPkIuTO/spCfSRx6b6lK3 exz/D7z/Io5FOpbe56fyIA==;
- Feedback-id: 149811m:149811acx33YQ:149811sw5nu3Wx-a:SMTPCORP
> On 11/08/2015, at 11:56 pm, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> BTW, when experimenting with multiple sources and longer drift removal
> intervals I think it might be useful to rework the
> get_offset_correction() function to not stop and restart the currently
> running adjustment, but only read the remaining offset with
> adjtime(NULL, &tv), so NTP measurements from sources other then the
> selected peer are not restarting the drift removal. This would also
> reduce the number of adjtime() calls, especially on a NTP server.
>
On MacOS, adjtime(NULL, &rem) is not supported. To implement the above, requires 2 adjtime() calls, one to stop it and one to restart it so I don't think there are any real benefits in doing this.
--
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.