]> 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)
committerSage Weil <sage@redhat.com>
Tue, 20 Aug 2019 19:04:27 +0000 (14:04 -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)

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

index c0c00640ebbdcde63a7bfaa10e990e903c423b8d..09a2d16f630b17d11bd2903cf558f2214357a000 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 5f2c4e03a352fdd2375a17445654ca924f87fbfd..5424f3c19cddef8f4bc4c310ecaff83cbde2063e 100644 (file)
@@ -3782,7 +3782,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_SIZE, 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)