]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: Set bluestore min_alloc size to 4K
authorMark Nelson <mnelson@redhat.com>
Wed, 2 Oct 2019 17:18:38 +0000 (12:18 -0500)
committerNeha Ojha <nojha@redhat.com>
Thu, 30 Jan 2020 21:54:11 +0000 (13:54 -0800)
Signed-off-by: Mark Nelson <mnelson@redhat.com>
(cherry picked from commit 0ec75c99ddb103c664f66c04450003ed4c407708)

src/common/options.cc

index af3a8ba616a8e36ec9e84cfa5d7305c7a2ba0687..78af77415f9422718586c1fb77889e30fd4d91a8 100644 (file)
@@ -4501,13 +4501,13 @@ std::vector<Option> get_global_options() {
     .set_long_description("A smaller allocation size generally means less data is read and then rewritten when a copy-on-write operation is triggered (e.g., when writing to something that was recently snapshotted).  Similarly, less data is journaled before performing an overwrite (writes smaller than min_alloc_size must first pass through the BlueStore journal).  Larger values of min_alloc_size reduce the amount of metadata required to describe the on-disk layout and reduce overall fragmentation."),
 
     Option("bluestore_min_alloc_size_hdd", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
-    .set_default(64_K)
+    .set_default(4_K)
     .set_flag(Option::FLAG_CREATE)
     .set_description("Default min_alloc_size value for rotational media")
     .add_see_also("bluestore_min_alloc_size"),
 
     Option("bluestore_min_alloc_size_ssd", Option::TYPE_SIZE, Option::LEVEL_ADVANCED)
-    .set_default(16_K)
+    .set_default(4_K)
     .set_flag(Option::FLAG_CREATE)
     .set_description("Default min_alloc_size value for non-rotational (solid state)  media")
     .add_see_also("bluestore_min_alloc_size"),