example/perf: add more clear information on large queue depth
Change-Id: I7e9166834c869077a66467b06b51084e1a945a99 Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/386198 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
4952f2540f
commit
0434d5d58f
@ -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;
|
entries = (g_io_size_bytes - 1) / max_xfer_size + 2;
|
||||||
if ((g_queue_depth * entries) > opts.io_queue_size) {
|
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);
|
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;
|
g_warn = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user