From 1d728c09de6d895d26ce8976d1e2e70bef907db6 Mon Sep 17 00:00:00 2001 From: Vu Pham Date: Wed, 15 Jul 2015 16:43:42 -0700 Subject: [PATCH] xio: configurable max send inline Allow configuring the maximum threshold to send inline Signed-off-by: Vu Pham --- src/common/config_opts.h | 1 + src/msg/xio/XioMessenger.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index f01e5bd9eee0d..0b2b94beee273 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -77,6 +77,7 @@ OPTION(xio_mp_max_page, OPT_INT, 4096) // max 1K chunks OPTION(xio_mp_max_hint, OPT_INT, 4096) // max size-hint chunks OPTION(xio_portal_threads, OPT_INT, 2) // xio portal threads per messenger OPTION(xio_transport_type, OPT_STR, "rdma") // xio transport type: {rdma or tcp} +OPTION(xio_max_send_inline, OPT_INT, 512) // xio maximum threshold to send inline DEFAULT_SUBSYS(0, 5) SUBSYS(lockdep, 0, 1) diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index a690c0bebd924..6ae52c7f491ba 100644 --- a/src/msg/xio/XioMessenger.cc +++ b/src/msg/xio/XioMessenger.cc @@ -312,7 +312,7 @@ XioMessenger::XioMessenger(CephContext *cct, entity_name_t name, &xopt, sizeof(xopt)); /* and set threshold for buffer callouts */ - xopt = 16384; + xopt = max(cct->_conf->xio_max_send_inline, 512); xio_set_opt(NULL, XIO_OPTLEVEL_ACCELIO, XIO_OPTNAME_MAX_INLINE_XIO_DATA, &xopt, sizeof(xopt)); xopt = 216; -- 2.39.5