From b0fc265d92ad6e0315b0c98bf092963816ff7d3a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 7 Aug 2019 10:44:38 -0500 Subject: [PATCH] os/bluestore/BlueFS: add bluefs_shared_alloc_size Add a separate config option that controls the alloc_size for the shared device (BDEV_SLOW). Signed-off-by: Sage Weil (cherry picked from commit c69c9539f628c61a1cf4cae6aadd39cb48a8b022) --- src/common/legacy_config_opts.h | 1 + src/common/options.cc | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/legacy_config_opts.h b/src/common/legacy_config_opts.h index c0c00640ebbdc..09a2d16f630b1 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -937,6 +937,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 diff --git a/src/common/options.cc b/src/common/options.cc index 5f2c4e03a352f..5424f3c19cdde 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -3782,7 +3782,11 @@ std::vector