]> git.apps.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>
Wed, 6 Sep 2017 03:01:16 +0000 (23:01 -0400)
Performance looks better, and code is simpler.

Also fix config option annotations.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 3750cf9cafabd3296c22b8b8dff35e44d18b9dd8)

src/common/options.cc

index 6166ef3f8d50b5515f7308756faf3b27e97190ba..f19ca2d5c130aea1342c997dadc61cca642f22c7 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)