nvme testsuite runtime optimization
Subsystems (2)
cover nvme testsuite runtime optimization
While testing the fc transport I got a bit tired of wait for the I/O jobs to finish. Thus here some runtime optimization.
With a small/slow VM I got following values:
with 'optimizations'
loop:
real 4m43.981s
user 0m17.754s
sys 2m6.249srdma:
real 2m35.160s
user 0m6.264s
sys 0m56.230stcp:
real 2m30.391s
user 0m5.770s
sys 0m46.007sfc:
real 2m19.738s
user 0m6.012s
sys 0m42.201sbase:
loop:
real 7m35.061s
user 0m23.493s
sys 2m54.866srdma:
real 8m29.347s
user 0m13.078s
sys 1m53.158stcp:
real 8m11.357s
user 0m13.033s
sys 2m43.156sfc:
real 5m46.615s
user 0m12.819s
sys 1m46.338sDaniel Wagner (1):
nvme: Limit runtime for verification and limit test image size
common/xfs | 3 ++- tests/nvme/004 | 2 +- tests/nvme/005 | 2 +- tests/nvme/006 | 2 +- tests/nvme/007 | 2 +- tests/nvme/008 | 2 +- tests/nvme/009 | 2 +- tests/nvme/010 | 5 +++-- tests/nvme/011 | 5 +++-- tests/nvme/012 | 4 ++-- tests/nvme/013 | 4 ++-- tests/nvme/014 | 10 ++++++++-- tests/nvme/015 | 10 ++++++++-- tests/nvme/017 | 2 +- tests/nvme/018 | 2 +- tests/nvme/019 | 2 +- tests/nvme/020 | 2 +- tests/nvme/021 | 2 +- tests/nvme/022 | 2 +- tests/nvme/023 | 2 +- tests/nvme/024 | 2 +- tests/nvme/025 | 2 +- tests/nvme/026 | 2 +- tests/nvme/027 | 2 +- tests/nvme/028 | 2 +- tests/nvme/029 | 2 +- tests/nvme/031 | 2 +- tests/nvme/032 | 4 ++-- tests/nvme/034 | 3 ++- tests/nvme/035 | 4 ++-- tests/nvme/040 | 4 ++-- tests/nvme/041 | 2 +- tests/nvme/042 | 2 +- tests/nvme/043 | 2 +- tests/nvme/044 | 2 +- tests/nvme/045 | 2 +- tests/nvme/047 | 2 +- tests/nvme/048 | 2 +- 38 files changed, 63 insertions(+), 47 deletions(-)
Signature · 1 line
2.40.0
RFC 1/1 nvme: Limit runtime for verification and limit test image size
The reduce the overall runtime of the testsuite by limiting the runtime of the verification jobs. We are only interested that some normal I/O is transferred between host and controller.
Also limit the resource usage of the tests. This allows to run more tiny VMs and thus more parallel blktests on the same machine.
--- common/xfs | 3 ++- tests/nvme/004 | 2 +- tests/nvme/005 | 2 +- tests/nvme/006 | 2 +- tests/nvme/007 | 2 +- tests/nvme/008 | 2 +- tests/nvme/009 | 2 +- tests/nvme/010 | 5 +++-- tests/nvme/011 | 5 +++-- tests/nvme/012 | 4 ++-- tests/nvme/013 | 4 ++-- tests/nvme/014 | 10 ++++++++-- tests/nvme/015 | 10 ++++++++-- tests/nvme/017 | 2 +- tests/nvme/018 | 2 +- tests/nvme/019 | 2 +- tests/nvme/020 | 2 +- tests/nvme/021 | 2 +- tests/nvme/022 | 2 +- tests/nvme/023 | 2 +- tests/nvme/024 | 2 +- tests/nvme/025 | 2 +- tests/nvme/026 | 2 +- tests/nvme/027 | 2 +- tests/nvme/028 | 2 +- tests/nvme/029 | 2 +- tests/nvme/031 | 2 +- tests/nvme/032 | 4 ++-- tests/nvme/034 | 3 ++- tests/nvme/035 | 4 ++-- tests/nvme/040 | 4 ++-- tests/nvme/041 | 2 +- tests/nvme/042 | 2 +- tests/nvme/043 | 2 +- tests/nvme/044 | 2 +- tests/nvme/045 | 2 +- tests/nvme/047 | 2 +- tests/nvme/048 | 2 +- 38 files changed, 63 insertions(+), 47 deletions(-)
common/xfs +2 -1
@@ -27,7 +27,8 @@ _xfs_run_fio_verify_io() { _xfs_mkfs_and_mount "${bdev}" "${mount_dir}" >> "${FULL}" 2>&1 - _run_fio_verify_io --size="$sz" --directory="${mount_dir}/" + _run_fio_verify_io --size="$sz" --directory="${mount_dir}/" \ + --time_based --runtime=5s umount "${mount_dir}" >> "${FULL}" 2>&1 rm -fr "${mount_dir}"
tests/nvme/004 +1 -1
@@ -25,7 +25,7 @@ test() { local port port="$(_create_nvmet_port "${nvme_trtype}")" - truncate -s 1G "$TMPDIR/img" + truncate -s 256M "$TMPDIR/img" local loop_dev loop_dev="$(losetup -f --show "$TMPDIR/img")"
tests/nvme/005 +1 -1
@@ -24,7 +24,7 @@ test() { local port port="$(_create_nvmet_port "${nvme_trtype}")" - truncate -s 1G "$TMPDIR/img" + truncate -s 256M "$TMPDIR/img" local loop_dev loop_dev="$(losetup -f --show "$TMPDIR/img")"
tests/nvme/006 +1 -1
@@ -24,7 +24,7 @@ test() { _setup_nvmet - truncate -s 1G "$TMPDIR/img" + truncate -s 256M "$TMPDIR/img" loop_dev="$(losetup -f --show "$TMPDIR/img")"
tests/nvme/007 +1 -1
@@ -25,7 +25,7 @@ test() { file_path="${TMPDIR}/img" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/008 +1 -1
@@ -26,7 +26,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" loop_dev="$(losetup -f --show "${file_path}")"
tests/nvme/009 +1 -1
@@ -24,7 +24,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/010 +3 -2
@@ -26,7 +26,7 @@ test() { local file_path="${TMPDIR}/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" loop_dev="$(losetup -f --show "${file_path}")"
@@ -41,7 +41,8 @@ test() { cat "/sys/block/${nvmedev}n1/uuid" cat "/sys/block/${nvmedev}n1/wwid" - _run_fio_verify_io --size=950m --filename="/dev/${nvmedev}n1" + _run_fio_verify_io --time_based --runtime=5s \ + --filename="/dev/${nvmedev}n1" _nvme_disconnect_subsys "${subsys_name}"
tests/nvme/011 +3 -2
@@ -26,7 +26,7 @@ test() { local file_path="${TMPDIR}/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -39,7 +39,8 @@ test() { cat "/sys/block/${nvmedev}n1/uuid" cat "/sys/block/${nvmedev}n1/wwid" - _run_fio_verify_io --size=950m --filename="/dev/${nvmedev}n1" + _run_fio_verify_io --time_based --runtime=5s \ + --filename="/dev/${nvmedev}n1" _nvme_disconnect_subsys "${subsys_name}"
tests/nvme/012 +2 -2
@@ -29,7 +29,7 @@ test() { local file_path="${TMPDIR}/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" loop_dev="$(losetup -f --show "${file_path}")"
@@ -44,7 +44,7 @@ test() { cat "/sys/block/${nvmedev}n1/uuid" cat "/sys/block/${nvmedev}n1/wwid" - _xfs_run_fio_verify_io "/dev/${nvmedev}n1" "900m" + _xfs_run_fio_verify_io "/dev/${nvmedev}n1" "200m" _nvme_disconnect_subsys "${subsys_name}"
tests/nvme/013 +2 -2
@@ -28,7 +28,7 @@ test() { local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -41,7 +41,7 @@ test() { cat "/sys/block/${nvmedev}n1/uuid" cat "/sys/block/${nvmedev}n1/wwid" - _xfs_run_fio_verify_io "/dev/${nvmedev}n1" "900m" + _xfs_run_fio_verify_io "/dev/${nvmedev}n1" "200M" _nvme_disconnect_subsys "${subsys_name}"
tests/nvme/014 +8 -2
@@ -26,7 +26,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" loop_dev="$(losetup -f --show "${file_path}")"
@@ -41,7 +41,13 @@ test() { cat "/sys/block/${nvmedev}n1/uuid" cat "/sys/block/${nvmedev}n1/wwid" - dd if=/dev/urandom of="/dev/${nvmedev}n1" count=128000 bs=4k status=none + local sectors + local bs + sectors="$(blockdev --getss "/dev/${nvmedev}n1")" + bs="$(blockdev --getbsz "/dev/${nvmedev}n1")" + + dd if=/dev/urandom of="/dev/${nvmedev}n1" \ + count="${sectors}" bs="${bs}" status=none nvme flush "/dev/${nvmedev}" -n 1
tests/nvme/015 +8 -2
@@ -25,7 +25,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
@@ -38,7 +38,13 @@ test() { cat "/sys/block/${nvmedev}n1/uuid" cat "/sys/block/${nvmedev}n1/wwid" - dd if=/dev/urandom of="/dev/${nvmedev}n1" count=128000 bs=4k status=none + local sectors + local bs + sectors="$(blockdev --getss "/dev/${nvmedev}n1")" + bs="$(blockdev --getbsz "/dev/${nvmedev}n1")" + + dd if=/dev/urandom of="/dev/${nvmedev}n1" \ + count="${sectors}" bs="${bs}" status=none nvme flush "/dev/${nvmedev}n1" -n 1
tests/nvme/017 +1 -1
@@ -25,7 +25,7 @@ test() { file_path="${TMPDIR}/img" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/018 +1 -1
@@ -26,7 +26,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/019 +1 -1
@@ -28,7 +28,7 @@ test() { local nblk_range="10,10,10,10,10,10,10,10,10,10" local sblk_range="100,200,300,400,500,600,700,800,900,1000" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" loop_dev="$(losetup -f --show "${file_path}")"
tests/nvme/020 +1 -1
@@ -26,7 +26,7 @@ test() { local nblk_range="10,10,10,10,10,10,10,10,10,10" local sblk_range="100,200,300,400,500,600,700,800,900,1000" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/021 +1 -1
@@ -25,7 +25,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/022 +1 -1
@@ -25,7 +25,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/023 +1 -1
@@ -26,7 +26,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" loop_dev="$(losetup -f --show "${file_path}")"
tests/nvme/024 +1 -1
@@ -25,7 +25,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/025 +1 -1
@@ -25,7 +25,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/026 +1 -1
@@ -25,7 +25,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/027 +1 -1
@@ -25,7 +25,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/028 +1 -1
@@ -25,7 +25,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "91fdba0d-f87b-4c25-b80f-db7be1418b9e"
tests/nvme/029 +1 -1
@@ -59,7 +59,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 1G "${file_path}" + truncate -s 256M "${file_path}" loop_dev="$(losetup -f --show "${file_path}")"
tests/nvme/031 +1 -1
@@ -33,7 +33,7 @@ test() { _setup_nvmet - truncate -s 1G "$TMPDIR/img" + truncate -s 256M "$TMPDIR/img" loop_dev="$(losetup -f --show "$TMPDIR/img")"
tests/nvme/032 +2 -2
@@ -38,8 +38,8 @@ test_device() { sysfs="/sys/bus/pci/devices/${pdev}" # start fio job - _run_fio_rand_io --filename="$TEST_DEV" --size=1g \ - --group_reporting &> /dev/null & + _run_fio_rand_io --filename="$TEST_DEV" --size=256M \ + --group_reporting --time_based --runtime=1m > /dev/null & sleep 5
tests/nvme/034 +2 -1
@@ -26,7 +26,8 @@ test_device() { port=$(_nvmet_passthru_target_setup "${subsys}") nsdev=$(_nvmet_passthru_target_connect "${nvme_trtype}" "${subsys}") - _run_fio_verify_io --size=950m --filename="${nsdev}" + _run_fio_verify_io --size=256M --filename="${nsdev}" \ + --time_based --runtime=5s _nvme_disconnect_subsys "${subsys}" _nvmet_passthru_target_cleanup "${port}" "${subsys}"
tests/nvme/035 +2 -2
@@ -17,7 +17,7 @@ requires() { } device_requires() { - _require_test_dev_size_mb 1024 + _require_test_dev_size_mb 256 } test_device() {
@@ -32,7 +32,7 @@ test_device() { port=$(_nvmet_passthru_target_setup "${subsys}") nsdev=$(_nvmet_passthru_target_connect "${nvme_trtype}" "${subsys}") - _xfs_run_fio_verify_io "${nsdev}" "900m" + _xfs_run_fio_verify_io "${nsdev}" "250m" _nvme_disconnect_subsys "${subsys}" _nvmet_passthru_target_cleanup "${port}" "${subsys}"
tests/nvme/040 +2 -2
@@ -25,7 +25,7 @@ test() { echo "Running ${TEST_NAME}" _setup_nvmet - truncate -s 1G "$TMPDIR/img" + truncate -s 256M "$TMPDIR/img" loop_dev="$(losetup -f --show "$TMPDIR/img")" port="$(_create_nvmet_port "${nvme_trtype}")"
@@ -37,7 +37,7 @@ test() { # start fio job echo "starting background fio" - _run_fio_rand_io --filename="/dev/${nvmedev}n1" --size=1g \ + _run_fio_rand_io --filename="/dev/${nvmedev}n1" --size=250m \ --group_reporting --ramp_time=5 &> /dev/null & sleep 5
tests/nvme/041 +1 -1
@@ -44,7 +44,7 @@ test() { _setup_nvmet - truncate -s 512M "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "b92842df-a394-44b1-84a4-92ae7d112861"
tests/nvme/042 +1 -1
@@ -41,7 +41,7 @@ test() { _setup_nvmet - truncate -s 512M "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" port="$(_create_nvmet_port "${nvme_trtype}")"
tests/nvme/043 +1 -1
@@ -42,7 +42,7 @@ test() { _setup_nvmet - truncate -s 512M "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" port="$(_create_nvmet_port "${nvme_trtype}")"
tests/nvme/044 +1 -1
@@ -53,7 +53,7 @@ test() { _setup_nvmet - truncate -s 512M "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" port="$(_create_nvmet_port "${nvme_trtype}")"
tests/nvme/045 +1 -1
@@ -55,7 +55,7 @@ test() { _setup_nvmet - truncate -s 512M "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" port="$(_create_nvmet_port "${nvme_trtype}")"
tests/nvme/047 +1 -1
@@ -28,7 +28,7 @@ test() { local file_path="$TMPDIR/img" local subsys_name="blktests-subsystem-1" - truncate -s 512M "${file_path}" + truncate -s 256M "${file_path}" loop_dev="$(losetup -f --show "${file_path}")"
tests/nvme/048 +1 -1
@@ -84,7 +84,7 @@ test() { fi hostnqn="nqn.2014-08.org.nvmexpress:uuid:${hostid}" - truncate -s 512M "${file_path}" + truncate -s 256M "${file_path}" _create_nvmet_subsystem "${subsys_name}" "${file_path}" \ "b92842df-a394-44b1-84a4-92ae7d112861"
Signature · 1 line
2.40.0
Quoted 38 lines · Daniel Wagner
While testing the fc transport I got a bit tired of wait for the I/O jobs to finish. Thus here some runtime optimization.
With a small/slow VM I got following values:
with 'optimizations'
loop:real 4m43.981s user 0m17.754s sys 2m6.249srdma: real 2m35.160s user 0m6.264s sys 0m56.230s tcp: real 2m30.391s user 0m5.770s sys 0m46.007s fc: real 2m19.738s user 0m6.012s sys 0m42.201sbase:
loop: real 7m35.061s user 0m23.493s sys 2m54.866s rdma: real 8m29.347s user 0m13.078s sys 1m53.158s tcp:
Quoted 10 lines
real 8m11.357s
user 0m13.033s
sys 2m43.156s
fc:
real 5m46.615s
user 0m12.819s
sys 1m46.338sThose jobs are meant to be run for at least 1G to establish confidence on the data set and the system under test since SSDs are in TBs nowadays and we don't even get anywhere close to that, with your suggestion we are going even lower ...
we cannot change the dataset size for slow VMs, instead add a command line argument and pass it to tests e.g. nvme_verification_size=XXX similar to nvme_trtype but don't change the default values which we have been testing for years now
Testing is supposed to be time consuming especially verification jobs..
-ck
Sagi Grimberg
maintainerQuoted 11 lines
Quoted 11 lines
While testing the fc transport I got a bit tired of wait for the I/O jobs to finish. Thus here some runtime optimization.
With a small/slow VM I got following values:
with 'optimizations'
loop: real 4m43.981s user 0m17.754s sys 2m6.249s
How come loop is doubling the time with this patch? ratio is not the same before and after.
Quoted 39 lines
Quoted 28 lines
rdma: real 2m35.160s user 0m6.264s sys 0m56.230s tcp: real 2m30.391s user 0m5.770s sys 0m46.007s fc: real 2m19.738s user 0m6.012s sys 0m42.201sbase:
loop: real 7m35.061s user 0m23.493s sys 2m54.866s rdma: real 8m29.347s user 0m13.078s sys 1m53.158s tcp:Quoted 10 lines
real 8m11.357s user 0m13.033s sys 2m43.156s fc: real 5m46.615s user 0m12.819s sys 1m46.338s
Quoted 4 lines
Those jobs are meant to be run for at least 1G to establish confidence on the data set and the system under test since SSDs are in TBs nowadays and we don't even get anywhere close to that, with your suggestion we are going even lower ...
Where does the 1G boundary coming from?
Quoted 6 lines
we cannot change the dataset size for slow VMs, instead add a command line argument and pass it to tests e.g. nvme_verification_size=XXX similar to
nvme_trtypebut don't change the default values which we have been testing for years nowTesting is supposed to be time consuming especially verification jobs..
I like the idea, but I think it may need to be the other way around. Have shortest possible runs by default.
Quoted 6 lines · Sagi Grimberg
Quoted 6 lines
Quoted 6 lines
While testing the fc transport I got a bit tired of wait for the I/O jobs to finish. Thus here some runtime optimization.
With a small/slow VM I got following values:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
with 'optimizations'
loop: real 4m43.981s user 0m17.754s sys 2m6.249sHow come loop is doubling the time with this patch? ratio is not the same before and after.
first run was with loop, second one with rdma:
nvme/002 (create many subsystems and test discovery) [not run]
runtime 82.089s ...
nvme_trtype=rdma is not supported in this test
nvme/016 (create/delete many NVMeOF block device-backed ns and test discovery) [not run]
runtime 39.948s ...
nvme_trtype=rdma is not supported in this test
nvme/017 (create/delete many file-ns and test discovery) [not run]
runtime 40.237s ...
nvme/047 (test different queue types for fabric transports) [passed]
runtime ... 13.580s
nvme/048 (Test queue count changes on reconnect) [passed]
runtime ... 6.287s82 + 40 + 40 - 14 - 6 = 142. So loop runs additional tests. Hmm, though my optimization didn't work there...
Quoted 6 lines
Quoted 4 lines
Those jobs are meant to be run for at least 1G to establish confidence on the data set and the system under test since SSDs are in TBs nowadays and we don't even get anywhere close to that, with your suggestion we are going even lower ...
Where does the 1G boundary coming from?
No idea, it just the existing hard coded values. I guess it might be from efa06fcf3c83 ("loop: test partition scanning") which was the first real test case (according the logs).
Quoted 9 lines
Quoted 6 lines
we cannot change the dataset size for slow VMs, instead add a command line argument and pass it to tests e.g. nvme_verification_size=XXX similar to
nvme_trtypebut don't change the default values which we have been testing for years nowTesting is supposed to be time consuming especially verification jobs..
I like the idea, but I think it may need to be the other way around. Have shortest possible runs by default.
Good point, I'll make it configurable. What is a good small default then? There are some test cases in loop which allocated a 1M file. That's propably too small.
Sagi Grimberg
maintainerQuoted 27 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
While testing the fc transport I got a bit tired of wait for the I/O jobs to finish. Thus here some runtime optimization.
With a small/slow VM I got following values:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
with 'optimizations'
loop: real 4m43.981s user 0m17.754s sys 2m6.249sHow come loop is doubling the time with this patch? ratio is not the same before and after.
first run was with loop, second one with rdma:
nvme/002 (create many subsystems and test discovery) [not run]
runtime 82.089s ...
nvme_trtype=rdma is not supported in this testnvme/016 (create/delete many NVMeOF block device-backed ns and test discovery) [not run]
runtime 39.948s ...
nvme_trtype=rdma is not supported in this test
nvme/017 (create/delete many file-ns and test discovery) [not run]runtime 40.237s ...
Quoted 7 lines
nvme/047 (test different queue types for fabric transports) [passed]
runtime ... 13.580s nvme/048 (Test queue count changes on reconnect) [passed] runtime ... 6.287s82 + 40 + 40 - 14 - 6 = 142. So loop runs additional tests. Hmm, though my optimization didn't work there...
How come loop is 4m+ while the others are 2m+ when before all were the same timeframe more or less?
Quoted 11 lines
Quoted 7 lines
Quoted 5 lines
Those jobs are meant to be run for at least 1G to establish confidence on the data set and the system under test since SSDs are in TBs nowadays and we don't even get anywhere close to that, with your suggestion we are going even lower ...
Where does the 1G boundary coming from?
No idea, it just the existing hard coded values. I guess it might be from
efa06fcf3c83("loop: test partition scanning") which was the first real test case (according the logs).
Was asking Chaitanya why is 1G considered sufficient vs. other sizes? Why not 10G? Why not 100M?
Quoted 49 lines · Sagi Grimberg
Quoted 29 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
While testing the fc transport I got a bit tired of wait for the I/O jobs to
finish. Thus here some runtime optimization.With a small/slow VM I got following values:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
with 'optimizations'
loop:
real 4m43.981s
user 0m17.754s
sys 2m6.249sHow come loop is doubling the time with this patch? ratio is not the same before and after.
first run was with loop, second one with rdma:
nvme/002 (create many subsystems and test discovery) [not run] runtime 82.089s ...
nvme_trtype=rdma is not supported in this testnvme/016 (create/delete many NVMeOF block device-backed ns and test discovery) [not run]
runtime 39.948s ...
nvme_trtype=rdma is not supported in this test nvme/017 (create/delete many file-ns and test discovery) [not run] runtime 40.237s ...Quoted 8 lines
nvme/047 (test different queue types for fabric transports) [passed] runtime ... 13.580s
nvme/048 (Test queue count changes on reconnect) [passed] runtime ... 6.287s82 + 40 + 40 - 14 - 6 = 142. So loop runs additional tests. Hmm, though my
optimization didn't work there...How come loop is 4m+ while the others are 2m+ when before all were the same timeframe more or less?
Quoted 8 lines
Quoted 7 lines
Quoted 5 lines
Those jobs are meant to be run for at least 1G to establish confidence on the data set and the system under test since SSDs are in TBs nowadays and we don't even get anywhere close to that, with your suggestion we are going even lower ...
Where does the 1G boundary coming from?
Quoted 8 lines
Quoted 5 lines
No idea, it just the existing hard coded values. I guess it might be from
efa06fcf3c83("loop: test partition scanning") which was the first real test
case (according the logs).Was asking Chaitanya why is 1G considered sufficient vs. other sizes? Why not 10G? Why not 100M?
See the earlier response ...
-ck
Quoted 55 lines · Sagi Grimberg
Quoted 5 lines
Quoted 5 lines
While testing the fc transport I got a bit tired of wait for the I/O jobs to
finish. Thus here some runtime optimization.Quoted 7 lines
Quoted 7 lines
With a small/slow VM I got following values:
with 'optimizations'
loop:
real 4m43.981s
user 0m17.754s
sys 2m6.249sHow come loop is doubling the time with this patch? ratio is not the same before and after.
Quoted 39 lines
Quoted 38 lines
rdma:
real 2m35.160s
user 0m6.264s
sys 0m56.230stcp:
real 2m30.391s
user 0m5.770s
sys 0m46.007sfc:
real 2m19.738s
user 0m6.012s
sys 0m42.201sbase:
loop:
real 7m35.061s
user 0m23.493s
sys 2m54.866srdma:
real 8m29.347s
user 0m13.078s
sys 1m53.158stcp:
real 8m11.357s
user 0m13.033s
sys 2m43.156sfc:
real 5m46.615s
user 0m12.819s
sys 1m46.338s
Quoted 7 lines
Quoted 4 lines
Those jobs are meant to be run for at least 1G to establish confidence on the data set and the system under test since SSDs are in TBs nowadays and we don't even get anywhere close to that, with your suggestion we are going even lower ...
Where does the 1G boundary coming from?
I wrote these testcases 3 times, initially they were the part of nvme-cli tests7-8 years ago, then nvmftests 7-6 years ago, then they moved to blktests.
In that time some of the testcases would not fail on with small size such as less than 512MB especially with verification but they were in the errors with 1G Hence I kept to be 1G.
Now I don't remember why I didn't use bigger size than 1G should have documented that somewhere ...
Quoted 9 lines
Quoted 6 lines
we cannot change the dataset size for slow VMs, instead add a command line argument and pass it to tests e.g. nvme_verification_size=XXX similar to
nvme_trtypebut don't change the default values which we have been testing for years nowTesting is supposed to be time consuming especially verification jobs..
I like the idea, but I think it may need to be the other way around. Have shortest possible runs by default.
see above..
-ck
Quoted 12 lines · Chaitanya Kulkarni
Quoted 7 lines
Quoted 4 lines
Those jobs are meant to be run for at least 1G to establish confidence on the data set and the system under test since SSDs are in TBs nowadays and we don't even get anywhere close to that, with your suggestion we are going even lower ...
Where does the 1G boundary coming from?
I wrote these testcases 3 times, initially they were the part of nvme-cli tests7-8 years ago, then nvmftests 7-6 years ago, then they moved to blktests.
Quoted 6 lines
In that time some of the testcases would not fail on with small size such as less than 512MB especially with verification but they were in the errors with 1G Hence I kept to be 1G.
Now I don't remember why I didn't use bigger size than 1G should have documented that somewhere ...
Can you remember why you chosed to set the image size to 1G and the io size for fio to 950m in nvme/012 and nvme/013?
I am testing various image sizes and found that small images e.g in the range of [4..64]m are passing fine but larger ones like [512-...]M do not (no space left). Note I've added a calc function which does image size - 1M to leave some room left.
Quoted 17 lines · Daniel Wagner
Quoted 16 lines · Chaitanya Kulkarni
Quoted 7 lines
Quoted 4 lines
Those jobs are meant to be run for at least 1G to establish confidence on the data set and the system under test since SSDs are in TBs nowadays and we don't even get anywhere close to that, with your suggestion we are going even lower ...
Where does the 1G boundary coming from?
I wrote these testcases 3 times, initially they were the part of nvme-cli tests7-8 years ago, then nvmftests 7-6 years ago, then they moved to blktests.
In that time some of the testcases would not fail on with small size such as less than 512MB especially with verification but they were in the errors with 1G Hence I kept to be 1G.
Quoted 5 lines
Quoted 2 lines
Now I don't remember why I didn't use bigger size than 1G should have documented that somewhere ...
Can you remember why you chosed to set the image size to 1G and the io size for fio to 950m in nvme/012 and nvme/013?
forget it, found a commit message which explains it
e5bd71872b3b ("nvme/012,013,035: change fio I/O size and move size definition place")
[...]
Change fio I/O size of nvme/012,013,035 from 950m to 900m, since recent change increased the xfs log size and it caused fio failure with I/O size 950m.
we cannot change the dataset size for slow VMs, instead add
Quoted 8 lines
Quoted 5 lines
a command line argument and pass it to tests e.g. nvme_verification_size=XXX similar to
nvme_trtypebut don't change the default values which we have been testing for years nowTesting is supposed to be time consuming especially verification jobs..
I like the idea, but I think it may need to be the other way around. Have shortest possible runs by default.
not everyone is running blktests on the slow vms, so I think it should be the other way around, the default integration of these testcases using 1G size in various distros, and it is not a good idea to change that so everyone else who are not running slow vms who should update their testscripts ...
-ck