From: Sage Weil Date: Wed, 14 Sep 2016 22:38:05 +0000 (-0400) Subject: os/bluestore/BlueFS: config option for allocator (default stupid) X-Git-Tag: v11.0.1~231^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ef725d07bcd159c6478e581ca5e0323b4193b7d;p=ceph.git os/bluestore/BlueFS: config option for allocator (default stupid) StupidAllocator is probably a more appropriate choice for bluefs. Either way, it needn't be tied to what BlueStore is using. Signed-off-by: Sage Weil --- diff --git a/src/common/config_opts.h b/src/common/config_opts.h index b601f300be7a..ea96c01888d1 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -934,6 +934,7 @@ OPTION(bluefs_log_compact_min_size, OPT_U64, 16*1048576) // before we consider OPTION(bluefs_min_flush_size, OPT_U64, 65536) // ignore flush until its this big OPTION(bluefs_compact_log_sync, OPT_BOOL, false) // sync or async log compaction? OPTION(bluefs_buffered_io, OPT_BOOL, false) +OPTION(bluefs_allocator, OPT_STR, "stupid") // stupid | bitmap OPTION(bluestore_bluefs, OPT_BOOL, true) OPTION(bluestore_bluefs_env_mirror, OPT_BOOL, false) // mirror to normal Env for debug diff --git a/src/os/bluestore/BlueFS.cc b/src/os/bluestore/BlueFS.cc index a6b4d18abb6f..f4c0f1e0fdc5 100644 --- a/src/os/bluestore/BlueFS.cc +++ b/src/os/bluestore/BlueFS.cc @@ -314,7 +314,7 @@ void BlueFS::_init_alloc() continue; } assert(bdev[id]->get_size()); - alloc[id] = Allocator::create(g_conf->bluestore_allocator, + alloc[id] = Allocator::create(g_conf->bluefs_allocator, bdev[id]->get_size(), g_conf->bluefs_alloc_size); interval_set& p = block_all[id];