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----

    この出力は、システム clocksource の連続読み取り中に、15-18 us の範囲で 10 回の遅延が発生したことを示しています。

    注記

    以前のバージョンでは、ftrace トレーサーではなくカーネルモジュールを使用していました。

結果について

テスト方法、パラメーター、および結果に関する情報は、hwlatdetect ユーティリティーによって検出された遅延パラメーターと遅延値を理解するのに役立ちます。

テスト方法、パラメーター、および結果の表には、hwlatdetect ユーティリティーによって検出されたパラメーターと遅延値が記載されています。

表6.1 テスト方法、パラメーター、および結果

パラメーター説明

test duration

10 秒

テストの期間 (秒単位)

detector

tracer

detector スレッドを実行するユーティリティー

パラメーター

  

Latency threshold

10us

許容可能な最大レイテンシー

Sample window

1000000us

1 秒

Sample width

500000us

0.05 秒

Non-sampling period

500000us

0.05 秒

Output File

None

出力が保存されるファイル。

結果

  

Max Latency

18us

Latency threshold を超えたテスト中の最大レイテンシー。Latency threshold を超えたサンプルがない場合、レポートは Below threshold を表示します。

Samples recorded

10

テストによって記録されたサンプルの数。

Samples exceeding threshold

10

テストによって記録された、レイテンシーが Latency threshold を超過するサンプルの数。

SMIs during run

0

テストの実行中に発生した System Management Interrupts (SMI) の数。

注記

内部および外部の hwlatdetect ユーティリティーによって出力される値は、最大レイテンシー値です。これらは、現在のシステムクロックソース (通常は TSC または TSC レジスターですが、HPET または ACPI 電力管理クロックの可能性があります) の連続した読み取り間のデルタと、ハードウェアとファームウェアの組み合わせによって導入された連続した読み取り間の遅延です。

適切なハードウェアとファームウェアの組み合わせを見つけたら、次のステップは、負荷がかかった状態でシステムのリアルタイムパフォーマンスをテストすることです。