6.2. 하드웨어 및 펌웨어 대기 시간 테스트 결과 해석
하드웨어 대기 시간 탐지기(hwlatdetect)는 추적기 메커니즘을 사용하여 하드웨어 아키텍처 또는 BIOS/EFI 펌웨어가 도입한 대기 시간을 감지합니다. hwlatdetect 에서 측정한 대기 시간을 확인하여 RHEL for Real Time 커널을 지원하는 데 잠재적인 하드웨어가 적합한지 확인할 수 있습니다.
예
예제 결과는 펌웨어에서 시스템 중단을 최소화하도록 조정된 시스템을 나타냅니다. 이 경우
hwlatdetect출력은 다음과 같습니다.# hwlatdetect --duration=60s hwlatdetect: test duration 60 seconds detector: tracer parameters: Latency threshold: 10us Sample window: 1000000us Sample width: 500000us Non-sampling period: 500000us Output File: None Starting test test finished Max Latency: Below threshold Samples recorded: 0 Samples exceeding threshold: 0예제 결과는 펌웨어에서 시스템 중단을 최소화하도록 조정할 수 없는 시스템을 나타냅니다. 이 경우
hwlatdetect출력은 다음과 같습니다.# hwlatdetect --duration=10s hwlatdetect: test duration 10 seconds detector: tracer parameters: Latency threshold: 10us Sample window: 1000000us Sample width: 500000us Non-sampling period: 500000us Output File: None Starting test test finished Max Latency: 18us Samples recorded: 10 Samples exceeding threshold: 10 SMIs during run: 0 ts: 1519674281.220664736, inner:17, outer:15 ts: 1519674282.721666674, inner:18, outer:17 ts: 1519674283.722667966, inner:16, outer:17 ts: 1519674284.723669259, inner:17, outer:18 ts: 1519674285.724670551, inner:16, outer:17 ts: 1519674286.725671843, inner:17, outer:17 ts: 1519674287.726673136, inner:17, outer:16 ts: 1519674288.727674428, inner:16, outer:18 ts: 1519674289.728675721, inner:17, outer:17 ts: 1519674290.729677013, inner:18, outer:17----출력은 시스템
클럭 소스의 연속 읽기 중에 15-18 us 범위에 표시되는 10 지연이 있음을 보여줍니다.참고이전 버전에서는
ftracetracer 대신 kernel 모듈을 사용했습니다.
결과 이해
테스트 방법, 매개변수 및 결과에 대한 정보는 hwlatdetect 유틸리티에서 감지한 대기 시간 매개변수 및 대기 시간 값을 이해하는 데 도움이 됩니다.
테스트 메서드, 매개변수 및 결과에 대한 표에는 hwlatdetect 유틸리티에서 감지한 매개변수 및 대기 시간 값이 나열됩니다.
| 매개변수 | 현재의 | 설명 |
|---|---|---|
|
|
| 테스트 기간(초) |
|
|
|
|
|
| ||
|
|
| 허용되는 최대 대기 시간 |
|
|
| 1초 |
|
|
| 0.05초 |
|
|
| 0.05초 |
|
|
| 출력이 저장되는 파일입니다. |
|
| ||
|
|
|
|
|
|
| 테스트에서 기록된 샘플 수입니다. |
|
|
|
대기 시간이 대기 시간이 |
|
|
| 테스트 실행 중에 발생한 SMI(System Management Interrupts) 수입니다. |
내부 및 외부에 대해 hwlatdetect 유틸리티에서 출력한 값은 최대 대기 시간입니다. 이는 현재 시스템 클럭 소스의 연속 읽기(일반적으로 TSC 또는 TSC 레지스터이지만 HPET 또는 ACPI 전원 관리 클럭)과 하드웨어 firmware 조합에 의해 도입된 연속 읽기 간의 지연 사이에 해당합니다.
적합한 hardware-firmware 조합을 찾은 후 다음 단계는 로드 중에 시스템의 실시간 성능을 테스트하는 것입니다.