]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BlueFS: add bluefs_shared_alloc_size
authorSage Weil <sage@redhat.com>
Wed, 7 Aug 2019 15:44:38 +0000 (10:44 -0500)
committerVikhyat Umrao <vikhyat@redhat.com>
Tue, 19 Nov 2019 13:23:15 +0000 (05:23 -0800)
Add a separate config option that controls the alloc_size for the shared
device (BDEV_SLOW).

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit c69c9539f628c61a1cf4cae6aadd39cb48a8b022)

src/common/legacy_config_opts.h
src/common/options.cc

index a7c8907bf2d7a3ce216dea7fe55ca6e313b0f0b1..4e8460dd4476cf13955e24637fec71a81094a448 100644 (file)
@@ -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
index f22fe1a89da4238ec5926325330abc859bc33a2d..dd69a5ef4489b68ba296ad567eddedd21b702476 100644 (file)
@@ -4299,7 +4299,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)