From: Samuel Just Date: Mon, 30 Apr 2012 17:58:32 +0000 (-0700) Subject: OSD: add different config options for map bl caches X-Git-Tag: v0.47~78 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4c597fa45becfdabe61c63fb9fa1585d0bf6b62f;p=ceph.git OSD: add different config options for map bl caches Signed-off-by: Samuel Just --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index aefc622ec71d..a025bee89ddf 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -273,6 +273,8 @@ OPTION(osd_pool_default_pg_num, OPT_INT, 8) OPTION(osd_pool_default_pgp_num, OPT_INT, 8) OPTION(osd_map_dedup, OPT_BOOL, true) OPTION(osd_map_cache_size, OPT_INT, 500) +OPTION(osd_map_cache_bl_size, OPT_INT, 50) +OPTION(osd_map_cache_bl_inc_size, OPT_INT, 100) OPTION(osd_map_message_max, OPT_INT, 100) // max maps per MOSDMap message OPTION(osd_op_threads, OPT_INT, 2) // 0 == no threading OPTION(osd_disk_threads, OPT_INT, 1) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 6e3aa4bb257b..26a156e22535 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -557,8 +557,8 @@ OSD::OSD(int id, Messenger *internal_messenger, Messenger *external_messenger, peer_map_epoch_lock("OSD::peer_map_epoch_lock"), map_cache_lock("OSD::map_cache_lock"), map_cache(g_conf->osd_map_cache_size), - map_bl_cache(g_conf->osd_map_cache_size), - map_bl_inc_cache(g_conf->osd_map_cache_size), + map_bl_cache(g_conf->osd_map_cache_bl_size), + map_bl_inc_cache(g_conf->osd_map_cache_bl_inc_size), outstanding_pg_stats(false), up_thru_wanted(0), up_thru_pending(0), pg_stat_queue_lock("OSD::pg_stat_queue_lock"),