-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Add new option num_file_reads_for_auto_readahead in BlockBasedTableOptions #10556
Conversation
a904831
to
df764be
Compare
@akankshamahajan15 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
@akankshamahajan15 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
// change. | ||
// | ||
// Default: 2 | ||
uint64_t num_file_reads_for_auto_readahead = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for my clarification, is a value of 0 valid? If 0, the readahead will start on the very first read from the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! 0 mean start from the seek.
I will land it after landing #10602 because of dependency issues. |
…tions Summary: RocksDB does auto-readahead for iterators on noticing more than two reads for a table file if user doesn't provide readahead_size and reads are sequential. A new option num_file_reads_for_auto_readahead is added which can be configured and sets after how many sequential reads prefetching should be start. Test Plan: Existing and new unit test Reviewers: Subscribers: Tasks: Tags:
df764be
to
a16f33e
Compare
@akankshamahajan15 has updated the pull request. You must reimport the pull request before landing. |
@akankshamahajan15 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: RocksDB does auto-readahead for iterators on noticing more
than two reads for a table file if user doesn't provide readahead_size and reads are sequential.
A new option num_file_reads_for_auto_readahead is added which can be
configured and indicates after how many sequential reads prefetching should
be start.
Test Plan: Existing and new unit test
Reviewers:
Subscribers:
Tasks:
Tags: