From 5595a7cad77ccb2f6fa8bd82e4d950cfcc60fc43 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Mon, 27 Aug 2018 13:51:55 -0700 Subject: [PATCH] test/qos: adjust qos test parameters Use 512 byte reads (instead of 8KB) to ensure we can hit the expected IOPs rate. Signed-off-by: Jim Harris Change-Id: I204dda9bf5cc168a3f080e6716cacc71fd8952cd Reviewed-on: https://review.gerrithub.io/423583 Chandler-Test-Pool: SPDK Automated Test System Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Shuhei Matsumoto Reviewed-by: GangCao Reviewed-by: Changpeng Liu --- test/iscsi_tgt/qos/qos.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/iscsi_tgt/qos/qos.sh b/test/iscsi_tgt/qos/qos.sh index 8c21edbea..1ddb4009a 100755 --- a/test/iscsi_tgt/qos/qos.sh +++ b/test/iscsi_tgt/qos/qos.sh @@ -11,7 +11,7 @@ function check_qos_works_well() { local retval=0 start_io_count=$($rpc_py get_bdevs_iostat -b $3 | jq -r '.[1].num_read_ops') - $fio_py 8192 64 randread 5 + $fio_py 512 64 randread 5 end_io_count=$($rpc_py get_bdevs_iostat -b $3 | jq -r '.[1].num_read_ops') read_iops=$(((end_io_count-start_io_count)/5)) @@ -44,7 +44,7 @@ fi timing_enter qos MALLOC_BDEV_SIZE=64 -MALLOC_BLOCK_SIZE=4096 +MALLOC_BLOCK_SIZE=512 IOPS_LIMIT=20000 rpc_py="python $rootdir/scripts/rpc.py" fio_py="python $rootdir/scripts/fio.py"