]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: default to bluestore_allocator = stupid
authorSage Weil <sage@redhat.com>
Tue, 8 Aug 2017 16:14:07 +0000 (12:14 -0400)
committerSage Weil <sage@redhat.com>
Tue, 8 Aug 2017 16:14:07 +0000 (12:14 -0400)
Performance looks better, and code is simpler.

Also fix config option annotations.

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

index 26181bdc1b4bf603d153090fbde0a562638e7742..2bb74d508a6d8bd17a250998fbe212204e6ba61b 100644 (file)
@@ -3396,10 +3396,10 @@ std::vector<Option> get_global_options() {
     .add_tag("mkfs")
     .set_description("Key value database to use for bluestore"),
 
-    Option("bluestore_allocator", Option::TYPE_STR, Option::LEVEL_DEV)
-    .set_default("bitmap")
-    .add_tag("mkfs")
-    .set_description(""),
+    Option("bluestore_allocator", Option::TYPE_STR, Option::LEVEL_ADVANCED)
+    .set_default("stupid")
+    .set_enum_allowed({"bitmap", "stupid"})
+    .set_description("Allocator policy"),
 
     Option("bluestore_freelist_blocks_per_key", Option::TYPE_INT, Option::LEVEL_DEV)
     .set_default(128)