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)
Fri, Jan 3, 10:33 AM
Unknown Object (File)
Sun, Dec 15, 5:29 AM
Unknown Object (File)
Dec 10 2024, 9:35 PM
Unknown Object (File)
Dec 8 2024, 4:07 AM
Unknown Object (File)
Dec 6 2024, 4:55 PM
Unknown Object (File)
Oct 13 2024, 6:33 PM
Unknown Object (File)
Oct 6 2024, 7:40 AM
Unknown Object (File)
Oct 5 2024, 1:38 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.