Repository navigation
common/options: bluefs_buffered_io=true by default - #20542
Merged
Merged
Conversation
This sends bluefs (rocksdb) io through the host's page cache. It reduces some of our exposure to bad cache size tuning (since misses in rocksdb's cache may be caught by the host's page cache) and also mitigates the cache invalidation that happens during compression. I originally pushed to get this disabled with an eye toward removing support for buffered IOs completely, and to avoid a behavior disparity with the SPDK backend (which has no page cache). In reality this code isn't going away, and this has a measurable positive impact for users today. See 7f568fa for when it was originally turned off. Signed-off-by: Sage Weil <[email protected]>
Contributor
markhpc
approved these changes
Mar 5, 2018
markhpc
left a comment
Member
There was a problem hiding this comment.
I think in the short/medium term this is going to help more than it hurts. Enabling it has resulted in higher performance in a variety of tests.
Member
|
Did anybody do a review to see if it's even plausible that the buffered IO option is stable? Looks like we haven't tested it in nightlies since August 2016, and I'm noticing some inconsistencies around how that buffered flag is used in the IO functions. |
Member
|
gregsfortytwo: I'm not opposed to reverting this if you have concerns! |
Member
|
@liewegas said he'd look into it after lunch, which is about as much as I was hoping for. (I don't know anything specific about the bluestore internals.) |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This sends bluefs (rocksdb) io through the host's page cache. It reduces
some of our exposure to bad cache size tuning (since misses in rocksdb's
cache may be caught by the host's page cache) and also mitigates the
cache invalidation that happens during compression.
I originally pushed to get this disabled with an eye toward removing
support for buffered IOs completely, and to avoid a behavior disparity
with the SPDK backend (which has no page cache). In reality this code
isn't going away, and this has a measurable positive impact for users
today.
See 7f568fa for when it was originally
turned off.
Signed-off-by: Sage Weil [email protected]