From 5f3761cf7ec50cf03183203dc50657a9f2a18908 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Fri, 25 Nov 2016 09:46:49 +0800 Subject: [PATCH] nvmf: change default AcceptorPollRate from 1 ms to 10 ms If AcceptorPollRate is configured in configuration file, the default value used will be given by ACCEPT_TIMEOUT_US. So change the default value, it can solve the performance degradation issue of nvmf target. Change-Id: I867bb03dd8b2b81b86911130babd0334d9857de8 Signed-off-by: Ziye Yang --- app/nvmf_tgt/conf.c | 2 +- etc/spdk/nvmf.conf.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/nvmf_tgt/conf.c b/app/nvmf_tgt/conf.c index 1bab8c866..b3ea4c987 100644 --- a/app/nvmf_tgt/conf.c +++ b/app/nvmf_tgt/conf.c @@ -56,7 +56,7 @@ #define PORTNUMSTRLEN 32 #define SPDK_NVMF_DEFAULT_SIN_PORT ((uint16_t)4420) -#define ACCEPT_TIMEOUT_US 1000 /* 1ms */ +#define ACCEPT_TIMEOUT_US 10000 /* 10ms */ struct spdk_nvmf_probe_ctx { struct nvmf_tgt_subsystem *app_subsystem; diff --git a/etc/spdk/nvmf.conf.in b/etc/spdk/nvmf.conf.in index a52f0170d..c23924edd 100644 --- a/etc/spdk/nvmf.conf.in +++ b/etc/spdk/nvmf.conf.in @@ -62,7 +62,7 @@ # Set how often the acceptor polls for incoming connections. The acceptor is also # responsible for polling existing connections that have gone idle. 0 means continuously # poll. Units in microseconds. - AcceptorPollRate 1000 + AcceptorPollRate 10000 # Define an NVMf Subsystem. # - NQN is required and must be unique.