Commit 0434d5d5 authored by GangCao's avatar GangCao Committed by Jim Harris
Browse files

example/perf: add more clear information on large queue depth



Change-Id: I7e9166834c869077a66467b06b51084e1a945a99
Signed-off-by: default avatarGangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/386198


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 4952f254
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -218,9 +218,10 @@ register_ns(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_ns *ns)
	 */
	entries = (g_io_size_bytes - 1) / max_xfer_size + 2;
	if ((g_queue_depth * entries) > opts.io_queue_size) {
		printf("WARNING: controller IO queue size %u less than required\n",
		printf("controller IO queue size %u less than required\n",
		       opts.io_queue_size);
		printf("You can try with smaller IO size or queue depth\n");
		printf("configure an IO queue depth and IO size such that "
		       "the product is less than or equal to %u\n", opts.io_queue_size);
		g_warn = true;
		return;
	}