PTP 시간 동기화가 올바르게 작동하면 하드웨어 시간 스탬프가 사용되는 경우 오프셋 및 빈도 조정을 포함하는 새 메시지가 주기적으로 ptp4l 및 phc2sys 출력에 출력됩니다. 출력 값이 곧 통합되었습니다. 이러한 메시지는 /var/log/inspector 파일에서 확인할 수 있습니다.
Copy to ClipboardCopied!Toggle word wrapToggle overflow
ptp4l 출력을 줄이고 값만 출력하려면 summary_interval 지시문을 사용합니다. summary_interval 지시문은 2의 power에 대해 초 단위로 지정됩니다. 예를 들어 출력을 1024 초마다 줄이려면 /etc/ptp4l.conf 파일에 다음 행을 추가합니다.
summary_interval 10
summary_interval 10
Copy to ClipboardCopied!Toggle word wrapToggle overflow
summary_interval 이 6으로 설정된 ptp4l 출력의 예는 다음과 같습니다.
ptp4l: [615.253] selected /dev/ptp0 as PTP clock
ptp4l: [615.255] port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l: [615.255] port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l: [615.564] port 1: new foreign master 00a069.fffe.0b552d-1
ptp4l: [619.574] selected best master clock 00a069.fffe.0b552d
ptp4l: [619.574] port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l: [623.573] port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l: [684.649] rms 669 max 3691 freq -29383 ± 3735 delay 9232 ± 122
ptp4l: [748.724] rms 253 max 588 freq -29787 ± 221 delay 9219 ± 158
ptp4l: [812.793] rms 287 max 673 freq -29802 ± 248 delay 9211 ± 183
ptp4l: [876.853] rms 226 max 534 freq -29795 ± 197 delay 9221 ± 138
ptp4l: [940.925] rms 250 max 562 freq -29801 ± 218 delay 9199 ± 148
ptp4l: [1004.988] rms 226 max 525 freq -29802 ± 196 delay 9228 ± 143
ptp4l: [1069.065] rms 300 max 646 freq -29802 ± 259 delay 9214 ± 176
ptp4l: [1133.125] rms 226 max 505 freq -29792 ± 197 delay 9225 ± 159
ptp4l: [1197.185] rms 244 max 688 freq -29790 ± 211 delay 9201 ± 162
ptp4l: [615.253] selected /dev/ptp0 as PTP clock
ptp4l: [615.255] port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l: [615.255] port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l: [615.564] port 1: new foreign master 00a069.fffe.0b552d-1
ptp4l: [619.574] selected best master clock 00a069.fffe.0b552d
ptp4l: [619.574] port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l: [623.573] port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l: [684.649] rms 669 max 3691 freq -29383 ± 3735 delay 9232 ± 122
ptp4l: [748.724] rms 253 max 588 freq -29787 ± 221 delay 9219 ± 158
ptp4l: [812.793] rms 287 max 673 freq -29802 ± 248 delay 9211 ± 183
ptp4l: [876.853] rms 226 max 534 freq -29795 ± 197 delay 9221 ± 138
ptp4l: [940.925] rms 250 max 562 freq -29801 ± 218 delay 9199 ± 148
ptp4l: [1004.988] rms 226 max 525 freq -29802 ± 196 delay 9228 ± 143
ptp4l: [1069.065] rms 300 max 646 freq -29802 ± 259 delay 9214 ± 176
ptp4l: [1133.125] rms 226 max 505 freq -29792 ± 197 delay 9225 ± 159
ptp4l: [1197.185] rms 244 max 688 freq -29790 ± 211 delay 9201 ± 162
Copy to ClipboardCopied!Toggle word wrapToggle overflow
기본적으로 summary_interval 은 0으로 설정되므로 메시지는 최대 빈도인 초당 한 번 인쇄됩니다. 메시지는 LOG_INFO 수준에 기록됩니다. 메시지를 비활성화하려면 -l 옵션을 사용하여 최대 로그 수준을 5 이하로 설정합니다.
phc2sys -l 5
~]# phc2sys -l 5
Copy to ClipboardCopied!Toggle word wrapToggle overflow
-u 옵션을 사용하여 phc2sys 출력을 줄일 수 있습니다.
phc2sys -u summary-updates
~]# phc2sys -u summary-updates
Copy to ClipboardCopied!Toggle word wrapToggle overflow
여기서 summary-updates 는 요약 통계에 포함할 클럭 업데이트의 수입니다. 예를 들면 다음과 같습니다.