Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable async prefetching for ReadOptions.readahead_size #9827

Conversation

akankshamahajan15
Copy link
Contributor

@akankshamahajan15 akankshamahajan15 commented Apr 10, 2022

Summary: Currently async prefetching is enabled for implicit internal auto readahead in FilePrefetchBuffer if ReadOptions.async_io is set. This PR enables async prefetching for ReadOptions.readahead_size when ReadOptions.async_io is set true.

Test Plan: Update unit test

@facebook-github-bot
Copy link
Contributor

@akankshamahajan15 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@akankshamahajan15 akankshamahajan15 changed the title Enable async_io for explicit ReadOptions.readahead_size Enable async prefetching for ReadOptions.readahead_size Apr 11, 2022
Summary: Enable async_io for explicit ReadOptions.readahead_size.

Test Plan: Update unit test
@akankshamahajan15 akankshamahajan15 force-pushed the async_with_explicit_readahead_size branch from b22a81a to d9561b8 Compare April 11, 2022 17:58
@facebook-github-bot
Copy link
Contributor

@akankshamahajan15 has updated the pull request. You must reimport the pull request before landing.

Copy link
Contributor

@anand1976 anand1976 left a comment

Choose a reason for hiding this comment

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

LGTM

@facebook-github-bot
Copy link
Contributor

@akankshamahajan15 has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

@akankshamahajan15 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

pingyu pushed a commit to pingyu/rocksdb that referenced this pull request Oct 23, 2022
Summary:
Currently async prefetching is enabled for implicit internal auto readahead in FilePrefetchBuffer if `ReadOptions.async_io` is set. This PR enables async prefetching for `ReadOptions.readahead_size` when `ReadOptions.async_io` is set true.

Pull Request resolved: facebook#9827

Test Plan: Update unit test

Reviewed By: anand1976

Differential Revision: D35552129

Pulled By: akankshamahajan15

fbshipit-source-id: d9f9a96672852a591375a21eef15355cf3289f5c
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.

3 participants