How to check the current queue depth value?

36,265

Solution 1

On mine to NETAPP:

ls /proc/scsi/qla2xxx
1
ls /proc/scsi/qla2xxx/1 | grep -i -A1 -B1 "queue depth"
Total number of interrupts = 30686605
    Device queue depth = 0x20
Number of free request entries = 1842

So x20 is 32 in decimal, This is the # you are looking for. You can read about calculation for NETAPP here:

https://library.netapp.com/ecmdocs/ECMP1196793/html/GUID-A055B184-0876-4376-9C75-35FE8C9BE832.html

EDIT: some other method to see: cat /sys/module/qla2xxx/parameters/ql2xmaxqdepth

Solution 2

The simplest way is

cat /sys/block/<sdX>/device/queue_depth
Share:
36,265

Related videos on Youtube

에이바
Author by

에이바

Updated on September 18, 2022

Comments

  • 에이바
    에이바 almost 2 years

    I have an OEL server connected via fibre to a NetApp SAN. How can I view the queue depth as the OS sees it?

    Output from lspci:

    05:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
    05:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
    08:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
    08:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
    

    Output from lsmod:

    qla2xxx              1262209  352
    scsi_transport_fc      83145  1 qla2xxx
    scsi_mod              199641  15 be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2,scsi_transport_iscsi2,scsi_dh,sr_mod,sg,qla2xxx,scsi_transport_fc,libata,cciss,sd_mod
    

    ls /sys/class/fc_host/host*

    /sys/class/fc_host/host3:
    device       issue_lip  port_id    port_state  speed       subsystem          supported_speeds  system_hostname  uevent
    fabric_name  node_name  port_name  port_type   statistics  supported_classes  symbolic_name     tgtid_bind_type
    
    /sys/class/fc_host/host4:
    device       issue_lip  port_id    port_state  speed       subsystem          supported_speeds  system_hostname  uevent
    fabric_name  node_name  port_name  port_type   statistics  supported_classes  symbolic_name     tgtid_bind_type
    
    /sys/class/fc_host/host5:
    device       issue_lip  port_id    port_state  speed       subsystem          supported_speeds  system_hostname  uevent
    fabric_name  node_name  port_name  port_type   statistics  supported_classes  symbolic_name     tgtid_bind_type
    
    /sys/class/fc_host/host6:
    device       issue_lip  port_id    port_state  speed       subsystem          supported_speeds  system_hostname  uevent
    fabric_name  node_name  port_name  port_type   statistics  supported_classes  symbolic_name     tgtid_bind_type
    
  • 에이바
    에이바 over 10 years
    I do not have anything like that in /proc/scsi. I have cciss device_info scsi and sg.
  • Danila Ladner
    Danila Ladner over 10 years
    what again is your output?
  • 에이바
    에이바 over 10 years
    I don't have any output because I don't have anything under /proc/scsi that is like qla2xxx
  • Danila Ladner
    Danila Ladner over 10 years
    what is your FC controller? mine just happens to be QLogic.
  • 에이바
    에이바 over 10 years
    lsmod |grep qla qla2xxx 1262209 352 scsi_transport_fc 83145 1 qla2xxx scsi_mod 199641 15 be2iscsi,ib_iser,iscsi_tcp,bnx2i,libcxgbi,libiscsi2,scsi_tra‌​nsport_iscsi2,scsi_d‌​h,sr_mod,sg,qla2xxx,‌​scsi_transport_fc,li‌​bata,cciss,sd_mo d pastebin.com/XvLtePRP
  • Danila Ladner
    Danila Ladner over 10 years
    Can you see with lspci?
  • 에이바
    에이바 over 10 years
    05:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02) 05:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02) 08:00.0 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02) 08:00.1 Fibre Channel: QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA (rev 02)
  • Danila Ladner
    Danila Ladner over 10 years
    ls /sys/class/fc_host/host*
  • Danila Ladner
    Danila Ladner over 10 years
    Add all that info into question please, so I people could see as well.
  • 에이바
    에이바 over 10 years
    Sorry, the question is now updated. Thanks for all of your help.
  • Danila Ladner
    Danila Ladner over 10 years
    "systool -c scsi_host -v" this will give you some info. Also "lsscsi -l" should tell queue depth.
  • 에이바
    에이바 over 10 years
    The systool command does not show the queue depth. I do not have lsscsi. Is this a tool you installed separately on your system?