6.0.1

Table Of Contents
Adjust Maximum Queue Depth for Software iSCSI
If you notice unsatisfactory performance for your software iSCSI LUNs, change their maximum queue
depth by running the esxcli commands.
Prerequisites
n
Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Getting Started
with vSphere Command-Line Interfaces. For troubleshooting, you can run esxcli commands in the ESXi
Shell.
n
In the procedure, the --server=server_name connection option specifies the target server. Be prepared to
enter a user name and password when the target server prompts you. For a list of other possible
connection options, see Getting Started with vSphere Command-Line Interfaces.
Procedure
1 Run the following command:
esxcli --server=server_name system module parameters set -m iscsi_vmk -p
iscsivmk_LunQDepth=value
The iscsivmk_LunQDepth parameter sets the maximum number of outstanding commands, or queue
depth, for each LUN accessed through the software iSCSI adapter. The default value is 128.
2 Reboot your system.
3 Verify your changes by running the
esxcli --server=server_name system module parameters list -m iscsi_vmk command.
The following output shows the queue depth for software iSCSI.
iscsivmk_LunQDepth int 64 Maximum Outstanding Commands Per LUN
CAUTION Setting the queue depth to a value higher than the default can decrease the total number of LUNs
supported.
Change the Outstanding IO Requests Setting
If you adjusted the LUN queue depth, change the Disk.SchedNumReqOutstanding (DSNRO) parameter, so
that its value matches the queue depth. The parameter controls the maximum number of outstanding IO
requests that all virtual machines can issue to the LUN.
Change this parameter only when you have multiple virtual machines active on a LUN. The parameter does
not apply when only one virtual machine is active. In that case, the bandwidth is controlled by the queue
depth of the storage adapter.
The parameter is set per device.
Procedure
1 Enter the following command to display the current DSNRO setting for the specified device:
esxcli storage core device list -d device_ID
The get the output similar to the following:
No of outstanding IOs with competing worlds: 32
2 Change the DSNRO value by entering the following command:
esxcli storage core device set -O | --sched-num-req-outstanding value -d device_ID
Chapter 7 Troubleshooting Storage
VMware, Inc. 65