VMware vSphere ESXi has an adaptive queue depth algorithm that adjusts the LUN queue depth in the VMkernel I/O stack. This algorithm is activated when the storage array indicates I/O congestion by returning a BUSY or QUEUE FULL status. These status codes may indicate congestion at the LUN level or at the port (or ports) on the array. When congestion is detected, VMkernel throttles the LUN queue depth. The VMkernel attempts to gradually restore the queue depth when congestion conditions subside.
This algorithm can be activated by changing the values of the QFullSampleSize and QFullThreshold parameters. When the number of QUEUE FULL or BUSY conditions reaches the QFullSampleSize value, the LUN queue depth reduces to half of the original value. When the number of good status conditions received reaches the QFullThreshold value, the LUN queue depth increases one at a time.
Note: Careful consideration is needed if multiple hosts access the same LUN or array ports. For the adaptive queue depth algorithm to be effective, all hosts accessing the LUN/port must have some form of adaptive queue depth algorithm. If some hosts run the adaptive queue depth algorithm while other hosts do not, the hosts that are not running the algorithm may consume the resources/slots on the array that are freed up by the adaptive hosts. This causes the hosts running the algorithm to exhibit lower disk I/O throughput. This may also increase the I/O congestion that initially triggered the adaptive algorithm.
If hosts running operating systems other than ESXi are connected to array ports that are being accessed by ESXi hosts, and the ESXi hosts are configured to use the adaptive algorithm, either make sure the operating systems use an adaptive queue depth algorithm or isolate those hosts on different ports on the storage array.
These parameters can be set either globally, individually, or both depending on business needs as different vendors have different optimal values for their arrays. If you apply both the global option and also set one of the parameters for a specific device, the setting for the specific device always takes precedence over the global setting.
Note: Devices managed by the global parameter will return incorrect LUN queue depth values when queried using the command esxcli storage core device list. Instead, these devices will return these a value of zero:
Queue Full Sample Size: 0
Queue Full Threshold: 0
From vCenter Web Client to set the parameters globally
- Select the ESXi host you want to modify.
- Select the Configure Tab
- Click Advanced System Settings.
- Click Edit, Select the Funnel Icon in the upper right of Key and search for QFull.
- Set QFullSampleSize to a value greater than zero. The usable range is 0 to 64.
- For 3PAR, NetApp and IBM XIV storage arrays, set the QFullSampleSize value to 32.
- For other storage arrays, contact your storage vendor.
- Set QFullThreshold to a value lesser than or equal to QFullSampleSize. The usable range is 1 to 16.
- For 3PAR storage arrays, set the QFullThreshold value to 4.
- ForNetApp and IBM XIV storage arrays, set the QFullThreshold value to 8.
- For other storage arrays, contact your storage vendor.
The settings take effect immediately. You do not need to reboot the ESXi host.
From ESXi Command Line to set the parameters per-device
Run the following ESXCLI command:.
esxcli storage core device set --device device_uid --queue-full-threshold
Q --queue-full-sample-size S
For example:
esxcli storage core device set --device device_uid --queue-full-sample-size 32 --queue-full-threshold 4 Settings are persistent across reboots.
You can retrieve the values for a device by using the corresponding list command.
esxcli storage core device listThe command supports an optional
--device parameter.
esxcli storage core device list --device deviceThe recommended values are the same as in earlier releases.
QFullSampleSize:
- For 3PAR, NetApp and IBM XIV storage arrays, set the QFullSampleSize value to 32.
- For other storage arrays, contact your storage vendor.
QFullThreshold:
- For 3PAR storage arrays, set the QFullThreshold value to 4.
- ForNetApp and IBM XIV storage arrays, set the QFullThreshold value to 8.
- For other storage arrays, please contact your storage vendor.
The settings take effect immediately. You do not need to reboot the ESX/ESXi host.