| Changing the Queue Depth on Qlogic Fibre HBAs |
|
|
|
You may want to change the queue depth for several reasons... Support recommendations / Performance tuning etc. Here I will show you how to change the queue depth for a Qlogic HBA from 32 to 64. VMware default this to 32 as this generally is the best for most configurations, however everyone has different needs.
1. List the Qlogic HBA types: /usr/sbin/esxcfg-module -l | grep -i ql
vmw_satp_eql 0x418029e5d000 0x1000 0x417feacad2a0 0x1000 16 Yes qla2xxx 0x418029e9f000 0x38000 0x417feacd2440 0xda000 22 Yes 2. List the Qlogic HBas on your ESX server:
ls /proc/scsi/qla2xxx/
4 5 3. Display the detailed information for one of the specific HBAs:
cat /proc/scsi/qla2xxx/4 4. View the modules loaded for the Qlogic HBA:
/usr/sbin/esxcfg-module -g qla2xxx
qla2xxx enabled = 1 options = '' 5. Display the current Queue Depth for the Qlogic HBA:
cat /proc/scsi/qla2xxx/4 | grep -i "queue depth"
Device queue depth = 0x20 6. Change the Queue Depth for the HBA to 64:
/usr/sbin/esxcfg-module -s ql2xmaxqdepth=64 qla2xxx 7. Check the change is shown in the "esx.conf":
cat /etc/vmware/esx.conf | grep -i ql
/vmkernel/module/qla2xxx.o/options = "ql2xmaxqdepth=64" 8. Reboot the ESX server for the change to take effect:
NOTE: Ensure the ESX server is in maintenance mode and all VMs are either vMotioned to another server or powered off.
reboot
9. Display the current Queue Depth for the Qlogic HBA:
cat /proc/scsi/qla2xxx/4 | grep -i "queue depth"
Device queue depth = 0x40 The queue depth has now been sucessfully changed for this HBA from 32 to 64.
To change the queue depth on additional HBAs in the ESX server, repeat steps 5 to 9.
|




