Re: [PATCH 2/2] hyperv: Implement Time Synchronization using host time sample
From: Richard Cochran
Date: Tue Oct 14 2014 - 10:21:48 EST
On Tue, Oct 14, 2014 at 02:16:34PM +0100, Mike Surcouf wrote:
> What is your expected value for TICK_USEC? I cant make the arithmetic work.
> You double the check time if you are close but you never reduce the
> check time if you are not.
> Adjusting the tick count is a coarse adjustment of the clock. You
> will end up chasing the host time but never stabilizing it.
We should not be putting hardcoded servos into random drivers.
Instead, why not export the time offset to the guest as a series of
PPS samples, or the like? Then, a user space program in the guest can
decide whether it will use the information and how to filter the
> Regarding the comment we have NTP for this I agree that would be
> better than this implementation and I think Thomas agrees (as he said
> NTP is the preferred option)
> In order for this to be a good source of time for RTP and other time
> sensitive stuff . you will have to have to re-implement parts of NTP
> such as adjusting the clock frequency decreasing the check period when
> error becomes too great etc. etc..
No, lets not re-implement NTP. That would be a waste of effort.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/