From 1ff51a299d20dd73a95ba55fdec57498b8c71c13 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 14 Sep 2015 12:31:42 -0400 Subject: [PATCH] osd: drop default map cache size from 500 -> 200 OSDs don't need this from each other anymore since they send a pg_interval_map_t with pg notify. This cache is only used during startup when loading things up (and 200 is still > the max advance of 150), and when clients appear with super old maps (pretty unusual unless they are idle for long periods). It should mean a pretty significant cut in memory... Signed-off-by: Sage Weil --- src/common/config_opts.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index de05abf6be6..22139ba2649 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -591,8 +591,8 @@ OPTION(osd_tier_default_cache_min_read_recency_for_promote, OPT_INT, 1) // numbe OPTION(osd_tier_default_cache_min_write_recency_for_promote, OPT_INT, 1) // number of recent HitSets the object must appear in to be promoted (on write) OPTION(osd_map_dedup, OPT_BOOL, true) -OPTION(osd_map_max_advance, OPT_INT, 200) // make this < cache_size! -OPTION(osd_map_cache_size, OPT_INT, 500) +OPTION(osd_map_max_advance, OPT_INT, 150) // make this < cache_size! +OPTION(osd_map_cache_size, OPT_INT, 200) OPTION(osd_map_message_max, OPT_INT, 100) // max maps per MOSDMap message OPTION(osd_map_share_max_epochs, OPT_INT, 100) // cap on # of inc maps we send to peers, clients OPTION(osd_inject_bad_map_crc_probability, OPT_FLOAT, 0)