[chrony-dev] System time offset bias |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
- To: chrony-dev@xxxxxxxxxxxxxxxxxxxx
- Subject: [chrony-dev] System time offset bias
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Thu, 20 Aug 2015 20:25:33 +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:Date:Message-Id: Subject:From; bh=7n0wS8h86M83rsfseaJpOlfJvNsHde0/osb06MpCBz8=; b=gTtV3QUBe5rf K1EHK7tN9cphgBtGP2eRANCLa6eAJqB60Osz1oEeYqlf/RWjgbS8XjVZOHwZKFqWtMHSe/owDsQIF Fxt5LrRdK+x4RX44ueClvNTwDGMOtMIYu2rb0A53XmgXGTIL7qaZE9puKqAZ1X29U10Nm7ggxIJ3X FLVZykkgQ2UAwTsA1hKIgiN7gNqquk6wGT/qRC4dwjo9MKHj1Ab7CFPptHI8a3Gp888w0Wi3ngpk1 m1C8BjFw/zMv9SAsIefcx9As0TE95g0WXYxLzTxwaaBe6dp/PYrvRA1ZKn4raMp1jW34eJ+MKIfZD rgp+F95TTT8HePt+7p6+YA==;
- Feedback-id: 149811m:149811acx33YQ:149811s71duTCNHC:SMTPCORP
Even with all the improvements made to fixing the local offset, I'm still seeing a bias of about 1 usec (which is an order of magnitude better than where we started)
I presume this is the cumulative effects of function call overheads (both local to chronyd and system calls) made after we have measured time stamps with gettimeofday().
I've been looking at using a bit of negative feedback and calculating the mean of offset_register as measured by get_offset_correction() and applying a small percentage of this mean offset to the predicted error in start_adjust(). The results are looking promising.
Because get_offset_correction() is being called at random intervals, I don't think its correct to calculate the mean with a simple exponential moving average, but that a weighted rolling average taken over say 60 samples might be more appropriate. Please correct me if I'm wrong because an exponential mean is far simpler.
I'll put a patch up later this evening for you too look at.
Regards
Bryan
--
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.