From: Vu Pham Date: Thu, 16 Jul 2015 00:05:24 +0000 (-0700) Subject: xio: reduce quantum numbers to grow pool X-Git-Tag: v9.1.0~482^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5254%2Fhead;p=ceph.git 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 --- diff --git a/src/msg/xio/XioMessenger.cc b/src/msg/xio/XioMessenger.cc index 6ae52c7f491b..d651800efdce 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,