iSCSI Gateway performance tuning for VMware environments.
This document (7023053) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Resolution
:~] esxcli storage vmfs lockmode listVolume Name UUID Type Locking Mode ATS Compatible ATS Upgrade Modes ATS Incompatibility Reason
-------------- ----------------------------------- ------ ------------ -------------- ----------------- ---------------------------
datastore_ssd 5ae70fae-4f913adc-77aa-ac1f6b6442f0 VMFS-6 ATS+SCSI false None Device does not support ATS
datastore_spin 5ae723bd-a64fe2fc-bb36-ac1f6b6442f0 VMFS-6 ATS+SCSI false None Device does not support ATS
SESRBD 5afd58c3-13f582a6-596a-ac1f6b6442f0 VMFS-6 ATS true No upgrade needed
# find /sys/kernel/config/target/core/ -name emulate_pr -ok cat '{}' ';'
The command will return something like the following output in turn for each of the mapped RBDs, in the below example for "rbd0":
< cat ... /sys/kernel/config/target/core/rbd_0/rbder/attrib/emulate_pr > ?Now entering "y" and pressing enter will then return the current value, in the below case it is disabled:0
:~] esxcli system settings advanced list -o /ISCSI/MaxIoSizeKB
Path: /ISCSI/MaxIoSizeKB
Type: integer
Int Value: 512
Default Int Value: 128
Min Value: 128
Max Value: 512
String Value:
Default String Value:
Valid Characters:
Description: Maximum Software iSCSI I/O size (in KB) (REQUIRES REBOOT!)
:~] esxcli system settings advanced set -o /ISCSI/MaxIoSizeKB -i 512
rbd create $pool_name/$image_name --size xxxxM/G/T --object-size 1M
:~] esxcli storage nmp device list...Device Display Name: SUSE iSCSI Disk (naa.60014057ea3725b57a242008f1ee86c4)
Storage Array Type: VMW_SATP_ALUA
Storage Array Type Device Config: {implicit_support=on; explicit_support=on; explicit_allow=on; alua_followover=on; action_OnRetryErrors=on; {TPG_id=0,TPG_state=AO}}
Path Selection Policy: VMW_PSP_RR
Path Selection Policy Device Config: {policy=rr,iops=100,bytes=10485760,useANO=0; lastPathIndex=1: NumIOsPending=0,numBytesPending=0}
Path Selection Policy Device Custom Config: iops=100
Working Paths: vmhba64:C1:T0:L0, vmhba64:C0:T0:L0
Is USB: false...
:~ # ping -M do -s 8972 $insert_destination_IP
NOTE: Since DeepSea version 0.8.6 tuned are now by default pushed out during stage 3 with the proper tuned profile for the nodes based on their assigned roles.
2a. Install tuned with: zypper in -y tuned2b. Edit "/etc/tuned/active_profile" and add the line:throughput-performance2c. Enable and start the tuned service: systemctl enable tuned.service && systemctl start tuned.service2d. Verify the profile is properly in use by running: tuned-adm active
Cause
Additional Information
tpg_default_cmdsn_depth = 512 (64)backstore_hw_queue_depth = 512 (Default 128)backstore_queue_depth = 512 (Default 128)
MaxCommands = 512 (Default 128)
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023053
- Creation Date: 06-Jun-2018
- Modified Date:03-Mar-2020
-
- SUSE Enterprise Storage
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com