Page MenuHomeFreeBSD

hyperv/timesync: Refine the timesync policy.
ClosedPublic

Authored by t-yachen_microsoft.com on Aug 30 2016, 8:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 19, 2:18 PM
Unknown Object (File)
Thu, Apr 16, 12:09 PM
Unknown Object (File)
Wed, Apr 15, 10:12 AM
Unknown Object (File)
Tue, Apr 14, 9:03 PM
Unknown Object (File)
Tue, Apr 14, 4:38 PM
Unknown Object (File)
Mon, Apr 13, 11:40 PM
Unknown Object (File)
Mon, Apr 13, 8:41 PM
Unknown Object (File)
Mon, Apr 13, 7:55 AM
Subscribers
None

Details

Summary
  • Differentiate sync request from sample request.

    Sync request will sync the time immediately without checking the drift. Sample request will sync the time only when drift exceeds some threshold.
  • Add tunable sysctls for both requests.

    hw.hvtimesync.sample_drift: if set to 0, ignore sample requests, otherwise, sync the time only when drift exceeds some threshold.

    hw.hvtimesync.ignore_sync_req: if set to 1, ignore sync requests.
  • Remove unnecessary task queue and data structures.

    Implement the policy in hv_adj_guesttime directly.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

t-yachen_microsoft.com retitled this revision from to hyperv/timesync: Refine the timesync policy..
t-yachen_microsoft.com updated this object.
t-yachen_microsoft.com edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Aug 30 2016, 8:52 AM
This revision was automatically updated to reflect the committed changes.