scripts/nvmf_perf: set CQ entires for SPDK transport layer

Allow adjusting number of CQ entries for SPDK
transport layer.

When testing with RDMA iWARP protocol it is
neccessary to adjust the number of CQ entries
manually as iWARP does not support CQ resize.

Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Change-Id: I03c1a3f20fa64a90995428e693c57b48b0a06bcb
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16509
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Karol Latecki 2023-01-25 16:49:24 +01:00 committed by Jim Harris
parent acc2fcd8b9
commit d9687a60ab
2 changed files with 7 additions and 1 deletions

View File

@ -165,6 +165,8 @@ Optional, SPDK Target only:
- max_queue_depth - int, max number of outstanding I/O per queue. Default: 128.
- dif_insert_strip - bool. Only for TCP transport. Enable DIF option when
creating transport layer. Default: false.
- num_cqe - int, number of completion queue entries. See doc/json_rpc.md
"nvmf_create_transport" section. Default: 4096.
- null_block_dif_type - int, 0-3. Level of DIF type to use when creating
null block bdev. Default: 0.
- enable_dpdk_memory - bool. Wait for a fio ramp_time to finish and

View File

@ -1084,6 +1084,7 @@ class SPDKTarget(Target):
self.scheduler_core_limit = None
self.iobuf_small_pool_count = 16383
self.iobuf_large_pool_count = 2047
self.num_cqe = 4096
if "num_shared_buffers" in target_config:
self.num_shared_buffers = target_config["num_shared_buffers"]
@ -1103,6 +1104,8 @@ class SPDKTarget(Target):
self.iobuf_small_pool_count = target_config["iobuf_small_pool_count"]
if "iobuf_large_pool_count" in target_config:
self.iobuf_large_pool_count = target_config["iobuf_large_pool_count"]
if "num_cqe" in target_config:
self.num_cqe = target_config["num_cqe"]
self.log.info("====DSA settings:====")
self.log.info("DSA enabled: %s" % (self.enable_dsa))
@ -1157,7 +1160,8 @@ class SPDKTarget(Target):
"num_shared_buffers": self.num_shared_buffers,
"max_queue_depth": self.max_queue_depth,
"dif_insert_or_strip": self.dif_insert_strip,
"sock_priority": self.adq_priority
"sock_priority": self.adq_priority,
"num_cqe": self.num_cqe
}
if self.enable_adq: