將 HPP 用於儲存裝置時,請設定該裝置的延遲敏感臨界值,以便 I/O 可避免 I/O 排程器。
依預設,ESXi 會透過 I/O 排程器傳遞每個 I/O。不過,使用排程器可能會建立內部佇列,這對於高速儲存裝置來說無效。
您可以設定延遲敏感臨界值,並啟用可協助 I/O 略過排程器的直接提交機制。透過啟用此機制,I/O 會直接從 PSA 通過 HPP 傳遞至裝置驅動程式。
為了使直接提交正常運作,觀察的平均 I/O 延遲必須低於您指定的延遲臨界值。如果 I/O 延遲超過延遲臨界值,系統會停止直接提交,並暫時還原為使用 I/O 排程器。如果平均 I/O 延遲再次低於延遲臨界值,會恢復直接提交。
程序
- 透過執行下列命令來設定裝置的延遲敏感臨界值:
esxcli storage core device latencythreshold set --device=device name --latency-sensitive-threshold=value in milliseconds
- 確認已設定延遲臨界值:
esxcli storage core device latencythreshold list
Device Latency Sensitive Threshold
-------------------- ---------------------------
naa.55cd2e404c1728aa 0 milliseconds
naa.500056b34036cdfd 0 milliseconds
naa.55cd2e404c172bd6 50 milliseconds
- 監控延遲敏感臨界值的狀態。檢查 VMkernel 記錄中的下列項目:
-
Latency Sensitive Gatekeeper turned on for device device. Threshold of XX msec is larger than max completion time of YYY msec
-
Latency Sensitive Gatekeeper turned off for device device. Threshold of XX msec is exceeded by command completed in YYY msec