From: Ziye Yang Date: Mon, 16 Mar 2020 17:43:11 +0000 (+0800) Subject: NVMEDevice: set the queue_size of the ctrlr opts. X-Git-Tag: v16.0.0~37^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33984%2Fhead;p=ceph.git NVMEDevice: set the queue_size of the ctrlr opts. 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 --- diff --git a/src/os/bluestore/NVMEDevice.cc b/src/os/bluestore/NVMEDevice.cc index b2611197d761..55146b38dbee 100644 --- a/src/os/bluestore/NVMEDevice.cc +++ b/src/os/bluestore/NVMEDevice.cc @@ -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; }