From 4eed3b08393b7ab69fca062c381417f5cc42c8eb Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Wed, 19 Aug 2020 11:59:39 +0200 Subject: [PATCH] test/dd: Make the AIO file smaller Make the footprint of the test smaller by creating smaller AIO file - 2G instead of 8G. Adjust offseting as well to not fall outside of the device|file. Also, cap in half the size of the source file. Change-Id: I625eebe545477239606cd65ac6949cca4a2b8c80 Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3842 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki --- test/dd/bdev_to_bdev.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/dd/bdev_to_bdev.sh b/test/dd/bdev_to_bdev.sh index f18705ef7..acb2ec4c3 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 4096) # * bs + offsets=(16 256 1024) # * bs for offset in "${offsets[@]}"; do "${DD_APP[@]}" \ @@ -34,9 +34,9 @@ offset_magic() { } cleanup() { - # Zero up to 1G on input bdev, 4G on out bdev to consider offsetting + # Zero up to 1G on input|output bdev clear_nvme "$bdev0" "" $((0x40000000 + ${#magic})) - clear_nvme "$bdev1" "" $((0x100000000 + ${#magic})) + clear_nvme "$bdev1" "" $((0x40000000 + ${#magic})) rm -f "$test_file0" "$test_file1" "$aio1" } @@ -74,12 +74,12 @@ else ["block_size"]=4096 ) - # 8G AIO file + # 2G AIO file "${DD_APP[@]}" \ --if=/dev/zero \ --of="$aio1" \ --bs="$bs" \ - --count=8192 + --count=2048 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 (~1GB) +# Make the file a bit bigger (~512MB) run_test "dd_inflate_file" \ "${DD_APP[@]}" \ --if=/dev/zero \ --of="$test_file0" \ --oflag=append \ --bs="$bs" \ - --count=1024 + --count=512 test_file0_size=$(wc -c < "$test_file0")