Skip to content

Commit

Permalink
os/bluestore: default to bluestore_allocator = stupid
Browse files Browse the repository at this point in the history
Performance looks better, and code is simpler.

Also fix config option annotations.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 3750cf9)
  • Loading branch information
liewegas committed Sep 6, 2017
1 parent 8235853 commit 3e06813
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/options.cc
Expand Up @@ -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)
Expand Down

0 comments on commit 3e06813

Please sign in to comment.