Skip to content

Commit

Permalink
Merge PR ceph#29537 into master
Browse files Browse the repository at this point in the history
* refs/pull/29537/head:
	os/bluestore/BlueFS: fix device_migrate_to_* to handle varying alloc sizes
	os/bluestore/BlueFS: apply shared_alloc_size to shared device
	os/bluestore: whitespace
	os/bluestore/BlueFS: add bluefs_shared_alloc_size
	os/bluestore/BlueStore.cc: start should be >= _get_ondisk_reserved()

Reviewed-by: Igor Fedotov <[email protected]>
Reviewed-by: Josh Durgin <[email protected]>
Reviewed-by: Neha Ojha <[email protected]>
  • Loading branch information
liewegas committed Aug 15, 2019
2 parents 441ed26 + 9426974 commit 2ac53bb
Show file tree
Hide file tree
Showing 5 changed files with 219 additions and 154 deletions.
1 change: 1 addition & 0 deletions src/common/legacy_config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@ OPTION(bdev_async_discard, OPT_BOOL)
OPTION(objectstore_blackhole, OPT_BOOL)

OPTION(bluefs_alloc_size, OPT_U64)
OPTION(bluefs_shared_alloc_size, OPT_U64)
OPTION(bluefs_max_prefetch, OPT_U64)
OPTION(bluefs_min_log_runway, OPT_U64) // alloc when we get this low
OPTION(bluefs_max_log_runway, OPT_U64) // alloc this much at a time
Expand Down
6 changes: 5 additions & 1 deletion src/common/options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4281,7 +4281,11 @@ std::vector<Option> get_global_options() {

Option("bluefs_alloc_size", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
.set_default(1_M)
.set_description(""),
.set_description("Allocation unit size for DB and WAL devices"),

Option("bluefs_shared_alloc_size", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
.set_default(64_K)
.set_description("Allocation unit size for primary/shared device"),

Option("bluefs_max_prefetch", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
.set_default(1_M)
Expand Down
Loading

0 comments on commit 2ac53bb

Please sign in to comment.