]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: set hybrid allocator as a default for bluefs/bluestore
authorIgor Fedotov <ifedotov@suse.com>
Thu, 16 Apr 2020 15:06:04 +0000 (18:06 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Fri, 17 Apr 2020 23:45:19 +0000 (02:45 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/common/options.cc
src/test/objectstore/store_test.cc

index b20bf1137f0635cd872ce3eb0817c280cb7bda2d..c87c16a34c05bf062af32855625c6aef1d6590fc 100644 (file)
@@ -4015,7 +4015,7 @@ std::vector<Option> get_global_options() {
     .set_description(""),
 
     Option("bluefs_allocator", Option::TYPE_STR, Option::LEVEL_DEV)
-    .set_default("bitmap")
+    .set_default("hybrid")
     .set_enum_allowed({"bitmap", "stupid", "avl", "hybrid"})
     .set_description(""),
 
@@ -4383,7 +4383,7 @@ std::vector<Option> get_global_options() {
     .set_description("Key value database to use for bluestore"),
 
     Option("bluestore_allocator", Option::TYPE_STR, Option::LEVEL_ADVANCED)
-    .set_default("bitmap")
+    .set_default("hybrid")
     .set_enum_allowed({"bitmap", "stupid", "avl", "hybrid"})
     .set_description("Allocator policy")
     .set_long_description("Allocator to use for bluestore.  Stupid should only be used for testing."),
index 34ad40cbca35658be1292f37e7976289effc4c4a..ace8eba8ab7680733750716c99cac7b4484979ac 100644 (file)
@@ -6729,8 +6729,6 @@ TEST_P(StoreTestSpecificAUSize, DeferredOnBigOverwrite) {
     return;
 
   size_t block_size = 4096;
-  // this will enable continuous allocations
-  SetVal(g_conf(), "bluestore_allocator", "avl");
   StartDeferred(block_size);
   SetVal(g_conf(), "bluestore_max_blob_size", "131072");
   SetVal(g_conf(), "bluestore_prefer_deferred_size", "65536");
@@ -7166,8 +7164,6 @@ TEST_P(StoreTestSpecificAUSize, DeferredDifferentChunks) {
 
   size_t alloc_size = 4096;
   size_t large_object_size = 1 * 1024 * 1024;
-  // this will enable continuous allocations
-  SetVal(g_conf(), "bluestore_allocator", "avl");
   StartDeferred(alloc_size);
   SetVal(g_conf(), "bluestore_max_blob_size", "131072");
   SetVal(g_conf(), "bluestore_prefer_deferred_size", "65536");