From c69c9539f628c61a1cf4cae6aadd39cb48a8b022 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 --- 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 2215ec19c48..cb0ed47d548 100644 --- a/src/common/legacy_config_opts.h +++ b/src/common/legacy_config_opts.h @@ -926,6 +926,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 bcf4ab8c413..f99ebc782f0 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4252,7 +4252,11 @@ std::vector