Skip to content

Commit e387a7e

Browse files
zhongchanghuikawasaki
authored andcommitted
throtl/rc: avoid test timeout caused by scsi_debug delay
When the kernel sets CONFIG_HZ=100, throtl/001 fails on the scsi_debug device. scsi_debug adds 1 jiffy delay to each I/O which takes 0.01 second. Then 256 I/Os take around 2.56 seconds which is reported as 3 seconds. This makes the test case fail which expects I/Os to complete within 1 second. To avoid the unexpected failure, set zero value to the scsi_debug delay parameter. With this, scsi_debug adds no delay, then the 256 I/Os will take less than 1 second to complete the I/Os. This behavior will be the same as null_blk. Link: #221 Signed-off-by: Changhui Zhong <[email protected]> Signed-off-by: Shin'ichiro Kawasaki <[email protected]>
1 parent 9897976 commit e387a7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tests/throtl

tests/throtl/rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ _configure_throtl_blkdev() {
7575
fi
7676
;;
7777
sdebug)
78-
args=(dev_size_mb=1024)
78+
args=(dev_size_mb=1024 delay=0)
7979
if _configure_scsi_debug "${args[@]}"; then
8080
THROTL_DEV=${SCSI_DEBUG_DEVICES[0]}
8181
return

0 commit comments

Comments
 (0)