Hi all,
I would like to understand how actually queue_depth parameter is set.
I have found that for my block device queue_depth is set equal to 1 so nr_request is equal to 2 but before the patch 32825c45("blk-mq-sched: fix performance regression of mq-deadline") was introduced it had been equal to 128 and because of nr_request is equal to 2 now it affects the performance of read/write operations. When I switched it back to 128 it starts to work as it was before.
Currently, I am looking for a driver where is q->tag_set->queue_depth initialized.
I found that for the block device is used sd driver using the next command:
udevadm info -a /dev/sdb
...
looking at parent device '/devices/pci0000:00/0000:00:14.0/usb3/3-3/3-3.1/3-3.1:1.0/host6/target6:0:0/6:0:0:0':
KERNELS=="6:0:0:0"
SUBSYSTEMS=="scsi"
DRIVERS=="sd"
....
My question is how to find out a driver of a scsi_device? Am I correct that queue_depth should be set somewhere in the scsci_device?