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 <ziye.yang@intel.com>
This commit is contained in:
Ziye Yang 2016-11-25 09:46:49 +08:00 committed by Daniel Verkamp
parent fae782b66f
commit 5f3761cf7e
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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.