]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: split memory 50/50 between bluestore and rocksdb 20544/head
authorSage Weil <sage@redhat.com>
Thu, 22 Feb 2018 19:18:22 +0000 (13:18 -0600)
committerSage Weil <sage@redhat.com>
Wed, 28 Feb 2018 14:27:03 +0000 (08:27 -0600)
We don't yet have a clear answer on where our memory is best spent once
we are above kv_min.  Previous testing showed that bluestore was a better
bet, but that predates the enabling of bloom filters and/or inclusion of
bloom filters in the rocksdb cache size.

A 50/50 split hedges out bets until we have more information.  At worst
we are misusing half of any addition memory given to the OSD (vs
potentially more than that for any config that steers more memory one way
or the other).

We still spend no memory on data currently.  That should probably change.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/options.cc

index 150042503e1d259e8b80e414abd941eb5ee75a81..4eb989c3200cd96f6838bdf6367373c3a6b1c859 100644 (file)
@@ -3735,12 +3735,12 @@ std::vector<Option> get_global_options() {
     .set_description("Default bluestore_cache_size for non-rotational (solid state) media"),
 
     Option("bluestore_cache_meta_ratio", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)
-    .set_default(.99)
+    .set_default(.5)
     .add_see_also("bluestore_cache_size")
     .set_description("Ratio of bluestore cache to devote to metadata"),
 
     Option("bluestore_cache_kv_ratio", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)
-    .set_default(.01)
+    .set_default(.5)
     .add_see_also("bluestore_cache_size")
     .set_description("Ratio of bluestore cache to devote to kv database (rocksdb)"),