]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rocksdb: increase default cache size to 512 MB
authorSage Weil <sage@redhat.com>
Mon, 24 Sep 2018 14:21:20 +0000 (09:21 -0500)
committerSage Weil <sage@redhat.com>
Sun, 7 Oct 2018 22:18:05 +0000 (17:18 -0500)
For filestore OSDs, this is probably a good idea anyway, and is generally
not going to be hugely impactful on the memory footprint (where users
have been told to provide 1 GB RAM per 1 TB storage for a long time now).

For bluestore OSDs, this value is meaningless as we're autotuning this
anyway.

For mons, this is a more reasonable default.

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

index 52371eec7d12e8642f7554d5c3b8a6955f1f5627..a311489ba82f3d371537c41eba82e2e21de19171 100644 (file)
@@ -3485,7 +3485,7 @@ std::vector<Option> get_global_options() {
     .set_description(""),
 
     Option("rocksdb_cache_size", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
-    .set_default(128_M)
+    .set_default(512_M)
     .set_description(""),
 
     Option("rocksdb_cache_row_ratio", Option::TYPE_FLOAT, Option::LEVEL_ADVANCED)