]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: drop default map cache size from 500 -> 200
authorSage Weil <sage@redhat.com>
Mon, 14 Sep 2015 16:31:42 +0000 (12:31 -0400)
committerSage Weil <sage@redhat.com>
Mon, 14 Sep 2015 16:31:42 +0000 (12:31 -0400)
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 <sage@redhat.com>
src/common/config_opts.h

index de05abf6be647dbc42e1932608a8e0fd7b519d9d..22139ba264900e096ee976eb9540da8a556d54e7 100644 (file)
@@ -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)