diff --git a/examples/nvme/fio_plugin/example_config.fio b/examples/nvme/fio_plugin/example_config.fio index a8e62ccb9..19c972133 100644 --- a/examples/nvme/fio_plugin/example_config.fio +++ b/examples/nvme/fio_plugin/example_config.fio @@ -9,7 +9,6 @@ ramp_time=0 runtime=2 iodepth=128 rw=randrw -bs=4k [test] numjobs=1 diff --git a/test/nvme/nvme.sh b/test/nvme/nvme.sh index 926931286..8c8708e18 100755 --- a/test/nvme/nvme.sh +++ b/test/nvme/nvme.sh @@ -30,7 +30,12 @@ function nvme_fio_test() { if $SPDK_EXAMPLE_DIR/identify -r "trtype:PCIe traddr:${bdf}" | grep -E "^Number of Namespaces" - | grep -q "0" -; then continue fi - fio_nvme $PLUGIN_DIR/example_config.fio --filename="trtype=PCIe traddr=${bdf//:/.}" + if $SPDK_EXAMPLE_DIR/identify -r "trtype:PCIe traddr:${bdf}" | grep -q "Extended Data LBA"; then + bs=4160 + else + bs=4096 + fi + fio_nvme $PLUGIN_DIR/example_config.fio --filename="trtype=PCIe traddr=${bdf//:/.}" --bs="$bs" ran_fio=true done $ran_fio || (echo "No valid NVMe drive found. Failing test." && false)