SQL VM上磁盘延迟高, 但Host和Storage Array上的延迟却很低的问题
按照下面的步骤, 问题解决.
===========================
Per Microsoft DDK, Microsoft storport.sys maintains a device queue for each device it controls and the storport interface allows the underlying miniport to set the maximum queue depth of the device queue.
The maximum queue depth value, as was told by Microsoft port driver developer, is 254. Qlogic sets the default value to 32.
Please note that the Microsoft storport.sys driver has total control of the queue depth of the device queue, qlogic miniport merely sets the value using the predefined storport interface call and procedure as informed by Microsoft.
Please use the following procedure to change the qd parameter:
- 1. Click on "Start", select "Run", and open the REGEDIT/REGEDT32 program.
- 2. Select HKEY_LOCAL_MACHINE and follow the tree structure down to the QLogic driver as follows:
HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Services
Ql2300
Parameters
Device
- 3. Double click on DriverParameter:REG_SZ:qd=32
- 4. If the string "qd=" does not exist, append to end of string ;qd=32
- 5. Enter a value upto 254 (0xFE). The default value is 32 (0x20). (这里我设置的是64.)
- 6. Click OK.
- 7. Exit the Registry Editor, then shutdown and reboot the system.
Articles helped fix this issue
=============================
Why this would work
=============================
Troubleshooting Storage Performance in vSphere – Storage Queues
SQL Server and HBA Queue Depth Mashup
http://blogs.msdn.com/b/joesack/archive/2009/01/28/sql-server-and-hba-queue-depth-mashup.aspx
Further reading
===========================
Troubleshooting Storage Performance in vSphere – Part 1 – The Basics
Troubleshooting Storage Performance in vSphere – Part 2
http://blogs.vmware.com/vsphere/2012/06/troubleshooting-storage-performance-in-vsphere-part-2.html
Troubleshooting Storage Performance in vSphere (Part 3) – SSD Performance
http://blogs.vmware.com/vsphere/2012/06/troubleshooting-storage-performance-in-vsphere-part-3-ssd-performance.html
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2010-02-11 SharePoint Profile Import
2010-02-11 SharePoint Alert
2010-02-11 如何查看扩展出来的web application?
2010-02-11 Windows Host 文件