]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: Disable bluefs_buffered_io by default again. 34297/head
authorMark Nelson <mnelson@redhat.com>
Thu, 26 Mar 2020 20:16:46 +0000 (15:16 -0500)
committerVikhyat Umrao <vikhyat@redhat.com>
Mon, 30 Mar 2020 18:07:14 +0000 (11:07 -0700)
Signed-off-by: Mark Nelson <mnelson@redhat.com>
(cherry picked from commit 5574617b9f4cf950c108cb06cb6f9eb48396aa57)

src/common/options.cc

index 304135391320f343c107c1fab4613ea37b260113..b2225d9625c582228e49590c85c72c3f7634019f 100644 (file)
@@ -4347,8 +4347,9 @@ std::vector<Option> get_global_options() {
     .set_description(""),
 
     Option("bluefs_buffered_io", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
-    .set_default(true)
-    .set_description(""),
+    .set_default(false)
+    .set_description("Enabled buffered IO for bluefs reads.")
+    .set_long_description("When this option is enabled, bluefs will in some cases perform buffered reads.  This allows the kernel page cache to act as a secondary cache for things like RocksDB compaction.  For example, if the rocksdb block cache isn't large enough to hold blocks from the compressed SST files itself, they can be read from page cache instead of from the disk.  This option previously was enabled by default, however in some test cases it appears to cause excessive swap utilization by the linux kernel and a large negative performance impact after several hours of run time.  Please exercise caution when enabling."),
 
     Option("bluefs_sync_write", Option::TYPE_BOOL, Option::LEVEL_ADVANCED)
     .set_default(false)