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 <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-09-14 18:38:05 -04:00
parent ca74bd9f17
commit 5ef725d07b
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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<uint64_t>& p = block_all[id];