From a6bbb3820cecd783dee3aa83aa64d30bb41d96ae Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Wed, 20 Oct 2021 12:35:25 +0200 Subject: [PATCH] test/dd: Lower file|bdev sizes in bdev_to_bdev tests This is done to speed up the tests - the bigger the data to write the more time the spdk_dd needs to finish after io is completed. This should not affect the functional nature of the test itself. Signed-off-by: Michal Berger Change-Id: Id086b153cffbd8045c8dbceaac64a98e358fe1ea Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9938 Community-CI: Broadcom CI Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Karol Latecki Reviewed-by: Jim Harris --- test/dd/bdev_to_bdev.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/test/dd/bdev_to_bdev.sh b/test/dd/bdev_to_bdev.sh index acb2ec4c37..ad84915e59 100755 --- a/test/dd/bdev_to_bdev.sh +++ b/test/dd/bdev_to_bdev.sh @@ -9,7 +9,7 @@ offset_magic() { local magic_check local offsets offset - offsets=(16 256 1024) # * bs + offsets=(16 64) # * bs for offset in "${offsets[@]}"; do "${DD_APP[@]}" \ @@ -34,9 +34,9 @@ offset_magic() { } cleanup() { - # Zero up to 1G on input|output bdev - clear_nvme "$bdev0" "" $((0x40000000 + ${#magic})) - clear_nvme "$bdev1" "" $((0x40000000 + ${#magic})) + # Zero up to 64M on input|output bdev + clear_nvme "$bdev0" "" $((0x400000 + ${#magic})) + clear_nvme "$bdev1" "" $((0x400000 + ${#magic})) rm -f "$test_file0" "$test_file1" "$aio1" } @@ -74,12 +74,12 @@ else ["block_size"]=4096 ) - # 2G AIO file + # 256MB AIO file "${DD_APP[@]}" \ --if=/dev/zero \ --of="$aio1" \ --bs="$bs" \ - --count=2048 + --count=256 fi test_file0=$SPDK_TEST_STORAGE/dd.dump0 @@ -88,14 +88,14 @@ test_file1=$SPDK_TEST_STORAGE/dd.dump1 magic="This Is Our Magic, find it" echo "$magic" > "$test_file0" -# Make the file a bit bigger (~512MB) +# Make the file a bit bigger (~64MB) run_test "dd_inflate_file" \ "${DD_APP[@]}" \ --if=/dev/zero \ --of="$test_file0" \ --oflag=append \ --bs="$bs" \ - --count=512 + --count=64 test_file0_size=$(wc -c < "$test_file0")