Repository navigation
common/options: Disable bluefs_buffered_io by default again. - #34224
Conversation
Signed-off-by: Mark Nelson <[email protected]>
a656898 to
5574617
Compare
|
@markhpc @neha-ojha @jdurgin shall we backport this change to nautilus and octopus? |
yes, updated https://tracker.ceph.com/issues/44757 |
|
@neha-ojha thanks! i should have searched over tracker first. |
Test Procedure
With bluefs_buffered_io = true
With bluefs_buffered_io = false
|
|
Hello Mark, Vikhyat, a quick word to say that we've observed a serious performance regression just after upgrading from RHCS3 to RHCS4 due to bluefs_buffered_io being set to false. Especially with SSDs (hosting RocksDBs) that would top at 100%util on iostat, 770MB/s read and 4,500 read iops during RBD snap trimming. Even a 20s osd_snap_trim_sleep would not help enough to lower the load on SSDs. Might be because we're using 4k bluestore_min_alloc_size*, I'm not sure. We've even had iSCSI targets going crazy and RGWs performance issues because of bluefs_buffered_io being set to false. You may want to consider snap trimming with bluefs_buffered_io false / true to see how it goes. (I opened support case #02823089 to discuss this) [EDIT] I need to add that since bluefs_buffered_io was set to true, excessive swap usage started to happen on some particular OSD nodes as observed by Vikhyat in his tests. I've posted details to support case #02823089. I hope you'll be able to figure out why this happens on some nodes and not others and find the root cause to this issue, as not using bluefs_buffered_io currently has a very negative impact on our cluster performances. At last, from last observations, we could mitigate the swap usage issue by lowering the osd memory target from (previously) 8MB to 4MB. It looks as if the in memory cache used with/by bluefs_buffered_io was not bound by/to the osd memory target. |
About 2 years ago we enabled bluefs buffered reads by default in #20542 to improve rocksdb performance during compaction when the block cache is too small.
During recent testing the RGW and Perf&Scale teams at Red Hat discovered that after the OSD caused page cache growth due to rocksdb SST file reads, swap began to be aggressively invoked by the kernel causing significant performance degradation on the node that did not appear to resolve over time. Subsequent testing with bluefs_buffered_io disabled showed a very slight initial performance loss due to the lack of the secondary page cache but significantly better long term (1-2 hour) behavior as the page cache and swap were never invoked.
After discussion during the 3/26 performance meeting we decided that bluefs_buffered_io should be disabled by default, at least until we better understand under what circumstances the kernel may cause excessive swapping due to page cache usage.
Signed-off-by: Mark Nelson [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox