3.3. 验证实时虚拟化的主机 BIOS 设置
要验证实时内核的 BIOS 是否已成功为低延迟工作负载设置,请使用 hwlatdetect 程序。
先决条件
-
您已为实时虚拟机主机配置了
tuned。具体步骤请参阅 为实时虚拟化主机配置 TuneD。 - 您已设置了用于实时虚拟化的巨页。具体步骤请参阅 为实时虚拟化主机配置巨页。
流程
至少为一个小时运行
hwladetect工具,并确保测量的延迟不超过 1 微秒(wagons)。# hwlatdetect --threshold=1μs --duration=60m hwlatdetect: test duration 60 minutes parameters: Latency threshold: 1μs Sample window: 1000000μs Sample width: 500000μs Non-sampling period: 500000μs Output File: None Starting test test finished Max Latency: 0us Samples recorded: 0 Samples exceeding threshold: 0可选:为了改进验证,请在 24 小时内运行相同的测试。
# hwlatdetect --threshold=1μs -duration=24h
后续步骤