]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: Disable bluefs_buffered_io by default again. 34353/head
authorMark Nelson <mnelson@redhat.com>
Thu, 26 Mar 2020 20:16:46 +0000 (15:16 -0500)
committerNeha <nojha@redhat.com>
Wed, 1 Apr 2020 19:35:07 +0000 (19:35 +0000)
Signed-off-by: Mark Nelson <mnelson@redhat.com>
(cherry picked from commit 5574617b9f4cf950c108cb06cb6f9eb48396aa57)

src/common/options.cc

index 1354b133faed63837662b52d2e7070f3bdd7d051..8f33ccab991bf1ac91ddae52b6b69cedc6fd9d79 100644 (file)
@@ -3995,8 +3995,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)