From cb94476cfcab2ac360d70b13f9fdc4193fef6b20 Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Wed, 22 Jul 2020 11:10:03 +0200 Subject: [PATCH] scripts/nvmf: Set minimal job_section_qd value job_section_qd cannot be equal 0 because tests will fails. Signed-off-by: Maciej Wawryk Change-Id: I910ae8dbbe7e18bc79f8d69a8ae157162b3b861b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3478 Tested-by: SPDK CI Jenkins Community-CI: Mellanox Build Bot Reviewed-by: John Kariuki Reviewed-by: Shuhei Matsumoto Reviewed-by: Tomasz Zawadzki Reviewed-by: Karol Latecki --- scripts/perf/nvmf/run_nvmf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/perf/nvmf/run_nvmf.py b/scripts/perf/nvmf/run_nvmf.py index 18cf67765..6ae022d9b 100755 --- a/scripts/perf/nvmf/run_nvmf.py +++ b/scripts/perf/nvmf/run_nvmf.py @@ -760,6 +760,8 @@ class KernelInitiator(Initiator): header = "[filename%s]" % i disks = "\n".join(["filename=%s" % x for x in r]) job_section_qd = round((io_depth * len(r)) / num_jobs) + if job_section_qd == 0: + job_section_qd = 1 iodepth = "iodepth=%s" % job_section_qd filename_section = "\n".join([filename_section, header, disks, iodepth]) @@ -822,6 +824,8 @@ class SPDKInitiator(Initiator): header = "[filename%s]" % i disks = "\n".join(["filename=%s" % x for x in r]) job_section_qd = round((io_depth * len(r)) / num_jobs) + if job_section_qd == 0: + job_section_qd = 1 iodepth = "iodepth=%s" % job_section_qd filename_section = "\n".join([filename_section, header, disks, iodepth])