mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
parent
ca74bd9f17
commit
5ef725d07b
@ -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
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user