scripts/nvmf: Set minimal job_section_qd value
job_section_qd cannot be equal 0 because tests will fails. Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com> Change-Id: I910ae8dbbe7e18bc79f8d69a8ae157162b3b861b Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3478 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: John Kariuki <John.K.Kariuki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com>
This commit is contained in:
parent
6194cb2e15
commit
cb94476cfc
@ -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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user