]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
xio: reduce quantum numbers to grow pool 5254/head
authorVu Pham <vu@mellanox.com>
Thu, 16 Jul 2015 00:05:24 +0000 (17:05 -0700)
committerVu Pham <vu@mellanox.com>
Tue, 21 Jul 2015 18:43:43 +0000 (11:43 -0700)
Growing pool's allocators with the proper quantum to
reduce memory pressure and waste

Signed-off-by: Vu Pham <vu@mellanox.com>
src/msg/xio/XioMessenger.cc

index 6ae52c7f491ba0221bcefa31d94c56d421f21b1b..d651800efdce8089718d6baecc4ba1ca0748cc39 100644 (file)
@@ -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,