From 1eb13a281852ecc7ff981815796af763cead2e5a Mon Sep 17 00:00:00 2001 From: Vu Pham Date: Wed, 15 Jul 2015 17:05:24 -0700 Subject: [PATCH] xio: reduce quantum numbers to grow pool Growing pool's allocators with the proper quantum to reduce memory pressure and waste Signed-off-by: Vu Pham --- src/msg/xio/XioMessenger.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index 6ae52c7f491..d651800efdc 100644 --- a/src/msg/xio/XioMessenger.cc +++ b/src/msg/xio/XioMessenger.cc @@ -322,12 +322,12 @@ XioMessenger::XioMessenger(CephContext *cct, entity_name_t name, struct xio_mempool_config mempool_config = { 6, { - {1024, 0, 4096, 262144}, - {4096, 0, 4096, 262144}, - {16384, 0, 4096, 262144}, - {65536, 0, 1024, 65536}, - {262144, 0, 512, 16384}, - {1048576, 0, 128, 8192} + {1024, 0, cct->_conf->xio_queue_depth, 262144}, + {4096, 0, cct->_conf->xio_queue_depth, 262144}, + {16384, 0, cct->_conf->xio_queue_depth, 262144}, + {65536, 0, 128, 65536}, + {262144, 0, 32, 16384}, + {1048576, 0, 8, 8192} } }; xio_set_opt(NULL, -- 2.47.3