[enhancement] Chrony config doesn't reflect hardware timestamping capability
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Mike Pontillo | ||
NTP Charm |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Hardware timestamping makes chrony syncing much more accurate, especially between machines on the same segment.
It's easy to see if a network interface supports hardware timestamping, with 'ethtool -T interface' looking for TX_HARDWARE and RX_HARDWARE capabilities:
Time stamping parameters for enp0s31f6:
Capabilities:
hardware-transmit (SOF_TIMESTAMPI
software-transmit (SOF_TIMESTAMPI
hardware-receive (SOF_TIMESTAMPI
software-receive (SOF_TIMESTAMPI
software-
hardware-raw-clock (SOF_TIMESTAMPI
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
off (HWTSTAMP_TX_OFF)
on (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
none (HWTSTAMP_
all (HWTSTAMP_
ptpv1-l4-sync (HWTSTAMP_
ptpv1-l4-delay-req (HWTSTAMP_
ptpv2-l4-sync (HWTSTAMP_
ptpv2-l4-delay-req (HWTSTAMP_
ptpv2-l2-sync (HWTSTAMP_
ptpv2-l2-delay-req (HWTSTAMP_
ptpv2-event (HWTSTAMP_
ptpv2-sync (HWTSTAMP_
ptpv2-delay-req (HWTSTAMP_
If an interface supports timestamping, that can be enabled in chrony.conf with the hwtimestamping directive:
hwtimestamp eth0
hwtimestamp eth1
It's possible to use * to set hwtimestamp for all interfaces that support it:
hwtimestamp *
When a server supports timestamping you can get the accuracy improvement with the xleave directive:
server doorway.mallards minpoll 2 maxpoll 4 polltarget 30 xleave
Related branches
- MAAS Lander: Approve
- Andres Rodriguez (community): Approve
-
Diff: 63 lines (+17/-3)2 files modifiedsrc/provisioningserver/ntp/config.py (+9/-2)
src/provisioningserver/ntp/tests/test_config.py (+8/-1)
Changed in maas: | |
status: | New → Triaged |
milestone: | none → 2.5.x |
summary: |
- Chrony config doesn't reflect hardware timestamping capability + [enhancement] Chrony config doesn't reflect hardware timestamping + capability |
tags: | added: rack-proxy track |
Changed in maas: | |
milestone: | 2.5.x → 2.5.0 |
Changed in maas: | |
assignee: | nobody → Mike Pontillo (mpontillo) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in ntp-charm: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in maas: | |
importance: | Undecided → Medium |
Changed in maas: | |
milestone: | 2.5.0 → 2.5.0beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Changed in maas: | |
milestone: | 2.5.0beta1 → 2.5.0beta2 |
status: | Fix Released → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |