]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config_opts: favor bluestore kv cache before meta until max. 15786/head
authorMark Nelson <mnelson@redhat.com>
Tue, 27 Jun 2017 13:15:47 +0000 (08:15 -0500)
committerMark Nelson <mnelson@redhat.com>
Thu, 6 Jul 2017 19:14:44 +0000 (14:14 -0500)
Signed-off-by: Mark Nelson <mnelson@redhat.com>
src/common/config_opts.h

index aa303ab810fb85c5cf6a9308081f6eca33c6979f..a742e36d140106e4306d6120693add982f613a01 100644 (file)
@@ -1163,8 +1163,8 @@ OPTION(bluestore_cache_type, OPT_STR, "2q")   // lru, 2q
 OPTION(bluestore_2q_cache_kin_ratio, OPT_DOUBLE, .5)    // kin page slot size / max page slot size
 OPTION(bluestore_2q_cache_kout_ratio, OPT_DOUBLE, .5)   // number of kout page slot / total number of page slot
 OPTION(bluestore_cache_size, OPT_U64, 3*1024*1024*1024)
-OPTION(bluestore_cache_meta_ratio, OPT_DOUBLE, .7)
-OPTION(bluestore_cache_kv_ratio, OPT_DOUBLE, .2)
+OPTION(bluestore_cache_meta_ratio, OPT_DOUBLE, .01)
+OPTION(bluestore_cache_kv_ratio, OPT_DOUBLE, .99)
 OPTION(bluestore_cache_kv_max, OPT_U64, 512*1024*1024) // limit the maximum amont of cache for the kv store
 OPTION(bluestore_kvbackend, OPT_STR, "rocksdb")
 OPTION(bluestore_allocator, OPT_STR, "bitmap")     // stupid | bitmap