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)
Sat, May 18, 6:01 PM
Unknown Object (File)
Sun, May 5, 10:35 PM
Unknown Object (File)
Fri, May 3, 11:51 PM
Unknown Object (File)
Fri, Apr 26, 6:25 AM
Unknown Object (File)
Apr 2 2024, 12:34 AM
Unknown Object (File)
Jan 14 2024, 5:21 PM
Unknown Object (File)
Jan 9 2024, 8:27 PM
Unknown Object (File)
Jan 9 2024, 8:27 PM
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.