Spdk/module/bdev
Simon A. F. Lund b99b00e595 bdev_xnvme: add option to conserve cpu and set default to false
To achieve the highest possible IO-rates and lowest latency, then CPU
cycles must be spent processing IO. This commit introduces three
different techniques dependendent on the 'io_mechanism' used.

For 'libaio', xNVMe is instructued via 'opts.poll_io' to not wait for
completions, thus xnvme_queue_poke() returns immmediatly, the user can
then call xnvme_queue_poke() as frequently as desired. This requires
xNVMe v0.5.0. Earlier versions will ignore 'opts.poll_io' for 'libaio'.

For 'io_uring', xNVMe is instructed via 'opts.poll_io' to enable
IORING_SETUP_IOPOLL.

For 'io_uring_cmd', xNVMe is instructued via 'opts.poll_sq' to enable
IORING_SETUP_SQPOLL, this sets up a kernel-side thread reaping
completions from user-space on the ring. Note that 'io_uring_cmd'
requires liburing >= 2.2.

This commit enables the above by default. The above can be disabled by
setting 'conserve_cpu' to true on the bdev-setup.

Signed-off-by: Simon A. F. Lund <simon.lund@samsung.com>
Change-Id: Id54f1e59733ce9ae3b174ad4562904d868d4ef4f
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14678
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2022-12-21 09:33:27 +00:00
..
aio update Intel copyright notices 2022-11-10 08:28:53 +00:00
compress bdev/compress: limit operations performed on reduce_thread 2022-12-05 09:51:26 +00:00
crypto bdev/crypto: do not create mempool for session private data 2022-12-19 08:35:14 +00:00
daos bdev/daos: fix write of multiple iovs 2022-11-28 20:09:48 +00:00
delay update Intel copyright notices 2022-11-10 08:28:53 +00:00
error update Intel copyright notices 2022-11-10 08:28:53 +00:00
ftl misc: Fix spelling mistakes 2022-12-09 08:16:18 +00:00
gpt update Intel copyright notices 2022-11-10 08:28:53 +00:00
iscsi misc: Fix spelling mistakes 2022-12-09 08:16:18 +00:00
lvol lvol: remove unused lvs->destruct 2022-12-08 12:55:07 +00:00
malloc update Intel copyright notices 2022-11-10 08:28:53 +00:00
null update Intel copyright notices 2022-11-10 08:28:53 +00:00
nvme module/bdev: set the proper copy size 2022-12-16 09:40:33 +00:00
ocf bdev/ocf: Add runtime cache bdev flush support 2022-11-18 08:38:03 +00:00
passthru update Intel copyright notices 2022-11-10 08:28:53 +00:00
pmem update Intel copyright notices 2022-11-10 08:28:53 +00:00
raid module/raid: show raid_bdev details in bdev_raid_get_bdevs rpc 2022-12-07 08:43:52 +00:00
rbd bdev/rbd: limit operations performed on main thread 2022-12-05 09:51:26 +00:00
split update Intel copyright notices 2022-11-10 08:28:53 +00:00
uring bdev/uring: handle the out of resoruce from uring 2022-11-15 08:31:45 +00:00
virtio update Intel copyright notices 2022-11-10 08:28:53 +00:00
xnvme bdev_xnvme: add option to conserve cpu and set default to false 2022-12-21 09:33:27 +00:00
zone_block update Intel copyright notices 2022-11-10 08:28:53 +00:00
Makefile configure: rename --with-reduce --with-vbdev-compress 2022-12-08 12:55:27 +00:00