]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
NVMEDevice: set the queue_size of the ctrlr opts.
authorZiye Yang <ziye.yang@intel.com>
Mon, 16 Mar 2020 17:43:11 +0000 (01:43 +0800)
committerZiye Yang <ziye.yang@intel.com>
Tue, 17 Mar 2020 11:38:22 +0000 (19:38 +0800)
Purpose: Allocate more resoures for the requests in the io qpair,
and the real value will be determined by the inner logic in SPDK NVMe Driver.
But if we do not set it, the default size is 512, and the value is too low.
If there are many big I/Os with high QD submitted, with this setting,
it could improve the performance.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
src/os/bluestore/NVMEDevice.cc

index b2611197d761a7bd12b78a98dfe0a8ba2bc0853d..55146b38dbee40d27bf937daf632b782f0195f77 100644 (file)
@@ -551,6 +551,8 @@ static bool probe_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid, st
     return false;
   }
 
+  opts->io_queue_size = UINT16_MAX;
+
   return true;
 }