spdk_dd: Use IORING_SETUP_SQPOLL mode
This has better performance than interrupt mode, so it is a better default. Change-Id: Ia2e13058b9b36874cd402f97ef57db77192f596a Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12021 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
958ca17750
commit
aef71e29a0
@ -857,7 +857,12 @@ dd_run(void *arg1)
|
|||||||
#ifdef SPDK_CONFIG_URING
|
#ifdef SPDK_CONFIG_URING
|
||||||
if (g_opts.aio == false) {
|
if (g_opts.aio == false) {
|
||||||
g_job.u.uring.poller = spdk_poller_register(dd_uring_poll, NULL, 0);
|
g_job.u.uring.poller = spdk_poller_register(dd_uring_poll, NULL, 0);
|
||||||
io_uring_queue_init(g_opts.queue_depth * 2, &g_job.u.uring.ring, 0);
|
rc = io_uring_queue_init(g_opts.queue_depth * 2, &g_job.u.uring.ring, IORING_SETUP_SQPOLL);
|
||||||
|
if (rc) {
|
||||||
|
SPDK_ERRLOG("Failed to create io_uring: %d (%s)\n", rc, spdk_strerror(-rc));
|
||||||
|
dd_exit(rc);
|
||||||
|
return;
|
||||||
|
}
|
||||||
g_job.u.uring.active = true;
|
g_job.u.uring.active = true;
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user