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)
Tue, Apr 2, 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
Unknown Object (File)
Jan 9 2024, 8:27 PM
Unknown Object (File)
Jan 9 2024, 8:15 PM
Unknown Object (File)
Dec 20 2023, 11:14 PM
Unknown Object (File)
Dec 20 2023, 12:25 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.