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: Thu, 6 Aug 2015 04:57:43 +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=Yz0ZJkK7EY60Tz67I+PPUTRuySMY+mmpTeL3hySg6m8=; b=K0zJkzgb+/AX f+a4DHYZnu1DnR8Fi33ATpShiP+aLbMXo+4kN5qehIYMJx813/tcIPyqq2X5khWBt54FvPuHpy0I9 X0dV3rUWsr44cncVljMj3ymdgvlIu+XTzrMBqAFzn9OF32QklgcXlkltHWRNH+tJP89yJ2b/gz+vw qyQXQ8lqfTOCuos9Sw6bVunNN0VvM+Jij2PHOiUErc/TuerDIJBpftRucFL2rrXkCRRJT0/Je2s8a kfyC5kl0xKAjGffal2Nr24yKC21joNuW1nfkO7OH0sGTPhcUOQSu8D34h/Hpg3jppurFjkwDdIvIX LDtKPEPef/lTzqiz8ZUNMA==;
- Feedback-id: 149811m:149811acx33YQ:149811ssmceaFbnH:SMTPCORP
> On 6/08/2015, at 12:26 am, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> That makes sense. The precompensation I was thinking was about moving
> the mean offset closer to zero. For example, if the clock has a drift
> of 100 ppm, the offset would be moving somewhere around around 0 +/-
> 50 microseconds, instead of 50 +/- 50 microseconds.
>
> Something like this (not tested):
>
> @@ -119,7 +119,7 @@ start_adjust(void)
> }
>
> UTI_DiffTimevalsToDouble(&elapsed, &T1, &T0);
> - accrued_error = elapsed * current_freq;
> + accrued_error = (elapsed + DRIFT_REMOVAL_INTERVAL / 2.0) * current_freq;
>
> adjust_required = - (accrued_error + offset_register);
This changes the effective drift (as seen in tracking.log) from 18ppm to 6ppm but System time still hovers around -10us
--
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.