Hi
It drives me slightly crazy, maybe you can help me out...
Based on KB: 1267
I set the queue to 64 and reviewed it:
l2xmaxqdepth int 64 Maximum queue depth to report for target devices.
cat /proc/scsi/qla2xxx/8
Device queue depth = 0x40 = 64
So thats the device driver queue also known als LUN queue, correct?
But then there are some other queues:
esxtop - d:disk adapter:
AQLEN
vmhba0 - 0 31 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
vmhba2 - 1 975 5.99 0.00 5.99 0.00 0.02 0.00 0.00 0.06 0.01 0.07 0.00
vmhba3 - 0 2176 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
The value listed under AQLEN
is the queue depth of the storage adapter. This is the maximum number of ESX VMKernel active commands that the adapter driver is configured to support.
esxtop - u: disk device
DQLEN
mpx.vmhba32:C0:T0:L0 - 1 - 0 0 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
mpx.vmhba34:C0:T0:L0 - 1 - 0 0 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
naa.xxxxxxxxxxxxxxxx - 128 - 0 0 0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
The value listed under DQLEN
is the queue depth of the storage device. This is the maximum number of ESX VMKernel active commands that the device is configured to support.
And last but not least:
http://communities.vmware.com/docs/DOC-6490
The kernel queue can be thought of as kind of an overflow queue for the device driver queues.
AQLEN means that the HBA can handle up to 2176 active commands.
DQLEN limits the commands per storage device.
l2xmaxqdepth limits the active commands per LUN.
Where is the difference? Shouldn't be the values the same? This is where I'm confused the most!!
So basiacally I can multiply the LUN queue with the number of connected datastores to know how much active commands my host is allowed to issue down to the storage. This value will be limit by AQLEN to 2176 per vmhba.
But wait, there is more!?
I can also limit the number of commands within the HBA BIOS.
Here I can set the "Execution throttle" which will further reduce the AQLEN down to let's say 256 or even lower.
Regards
Patrick