Skip to content

common/options: bluefs_buffered_io=true by default - #20542

Merged
yuriw merged 1 commit into
ceph:masterfrom
liewegas:wip-bluefs-buffered-io
Mar 5, 2018
Merged

yuriw merged 1 commit into
ceph:masterfrom
liewegas:wip-bluefs-buffered-io

Conversation

@liewegas

Copy link
Copy Markdown
Member

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]

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]>
@yuriw

yuriw commented Mar 1, 2018

Copy link
Copy Markdown
Contributor

@markhpc markhpc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@yuriw
yuriw merged commit 8eb3c1f into ceph:master Mar 5, 2018
@gregsfortytwo

Copy link
Copy Markdown
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.

@markhpc

markhpc commented Mar 5, 2018

Copy link
Copy Markdown
Member

gregsfortytwo: I'm not opposed to reverting this if you have concerns!

@liewegas
liewegas deleted the wip-bluefs-buffered-io branch March 5, 2018 18:28
@gregsfortytwo

Copy link
Copy Markdown
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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants