]> git-server-git.apps.pok.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)
committerSage Weil <sage@redhat.com>
Tue, 20 Aug 2019 15:29:27 +0000 (10:29 -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>
(cherry picked from commit c69c9539f628c61a1cf4cae6aadd39cb48a8b022)

- no Option::TYPE_SIZE

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

index 8cd09eaeb41398c6c5031148ffffbbfb4a3ea83a..eab1f3fd3541ff6e1be18d82da381a049db93806 100644 (file)
@@ -983,6 +983,7 @@ OPTION(bdev_nvme_retry_count, OPT_INT) // -1 means by default which is 4
 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 6f4529da03a30a5f9555c10ba288f1f6ae6bbe00..fc41bc02da6715626c60b20ecac02018d38da339 100644 (file)
@@ -3288,7 +3288,11 @@ std::vector<Option> get_global_options() {
 
     Option("bluefs_alloc_size", Option::TYPE_UINT, 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_UINT, Option::LEVEL_ADVANCED)
+    .set_default(64_K)
+    .set_description("Allocation unit size for primary/shared device"),
 
     Option("bluefs_max_prefetch", Option::TYPE_UINT, Option::LEVEL_ADVANCED)
     .set_default(1_M)