Skip to content

Commit

Permalink
block/027: setup scsi_debug with MQ
Browse files Browse the repository at this point in the history
block/027 focuses on race condition between blkg association and
request_queue shutdown. Unfortunately it is a bit easy to trigger
lockup by setting scsi_debug in the following way:

- single queue
- 21 LUNs
- small queue depth(110)
- 10us completion delay
- fio: 4 jobs, with iodepth 2048

The above setting creates big contention on tag allocation of blk-mq
code path, especially scsi_debug takes memcpy to simulate IO, which
doesn't match device in reality.

So setup scsi_debug with MQ and avoid to trigger lockup which doesn't
exist in real storage device usually.

Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Chaitanya Kulkarni <[email protected]>
[Shin'ichiro: fixed a shellcheck error]
Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
  • Loading branch information
Ming Lei authored and kawasaki committed Oct 25, 2024
1 parent 5a1fb7a commit c89a7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/block/027
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ test() {
echo "Running ${TEST_NAME}"

scsi_debug_stress_remove virtual_gb=128 max_luns=21 ndelay=10000 \
max_queue=110
max_queue=110 submit_queues="$(nproc)"

echo "Test complete"
}

0 comments on commit c89a7d9

Please sign in to comment.