From: Sage Weil Date: Fri, 19 Jun 2009 20:16:58 +0000 (-0700) Subject: mds: reduce default memory, journal footprint X-Git-Tag: v0.10~189 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=29a2b2f3a79ecaf4b35ca30cd932a23393897e82;p=ceph.git mds: reduce default memory, journal footprint --- diff --git a/src/config.cc b/src/config.cc index 2bf35b2be543..7e4905a73106 100644 --- a/src/config.cc +++ b/src/config.cc @@ -377,7 +377,7 @@ static struct config_option config_optionsp[] = { OPTION(journaler_prefetch_periods, 0, OPT_INT, 50), // * journal object size (1~MB? see above) OPTION(journaler_batch_interval, 0, OPT_DOUBLE, .001), // seconds.. max add'l latency we artificially incur OPTION(journaler_batch_max, 0, OPT_LONGLONG, 0), // max bytes we'll delay flushing; disable, for now.... - OPTION(mds_cache_size, 0, OPT_INT, 250000), + OPTION(mds_cache_size, 0, OPT_INT, 100000), OPTION(mds_cache_mid, 0, OPT_FLOAT, .7), OPTION(mds_mem_max, 0, OPT_INT, 1048576), // KB OPTION(mds_decay_halflife, 0, OPT_FLOAT, 5), @@ -398,7 +398,7 @@ static struct config_option config_optionsp[] = { OPTION(mds_log, 0, OPT_BOOL, true), OPTION(mds_log_unsafe, 0, OPT_BOOL, false), // only wait for log sync, when it's mostly safe to do so OPTION(mds_log_max_events, 0, OPT_INT, -1), - OPTION(mds_log_max_segments, 0, OPT_INT, 100), // segment size defined by FileLayout, above + OPTION(mds_log_max_segments, 0, OPT_INT, 30), // segment size defined by FileLayout, above OPTION(mds_log_max_expiring, 0, OPT_INT, 20), OPTION(mds_log_pad_entry, 0, OPT_INT, 128), OPTION(mds_log_eopen_size, 0, OPT_INT, 100), // # open inodes per log entry