]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerSage Weil <sage@redhat.com>
Thu, 8 Aug 2019 16:23:27 +0000 (11:23 -0500)
Add a separate config option that controls the alloc_size for the shared
device (BDEV_SLOW).

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/legacy_config_opts.h
src/common/options.cc

index 2215ec19c48c6cf740daaa847a34b44264367f4a..cb0ed47d548e835b0a1a9a92dc169ee4ef8b6d14 100644 (file)
@@ -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
index bcf4ab8c4133588f47d3798621b8028104424995..f99ebc782f02e8e20ed553aaa49e94b7b1b72f32 100644 (file)
@@ -4252,7 +4252,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)