From 309726cc584d3610a41ca9e922da8b0c54d462d3 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 a7c8907bf2d7a..4e8460dd4476c 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 f22fe1a89da42..dd69a5ef4489b 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4299,7 +4299,11 @@ std::vector