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

=============================

http://social.technet.microsoft.com/Forums/windowsserver/en-US/d4a49b4d-fe8f-4470-8353-33ee5beb9551/how-to-check-qlogic-hba-adapter-queue-depth-in-windows-2008-r2?forum=winservergen

 

Why this would work

=============================

Troubleshooting Storage Performance in vSphere – Storage Queues

https://blogs.vmware.com/vsphere/2012/07/troubleshooting-storage-performance-in-vsphere-part-5-storage-queues.html

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

http://blogs.vmware.com/vsphere/2012/05/troubleshooting-storage-performance-in-vsphere-part-1-the-basics-.html

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

posted on   中道学友  阅读(486)  评论(0编辑  收藏  举报

编辑推荐:
· 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 文件

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

技术追求准确,态度积极向上

点击右上角即可分享
微信分享提示