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

Eliminate some redundant block reads. #3354

Closed

Conversation

yuslepukhin
Copy link
Contributor

Re-use metadata for reading Compression Dictionary on BlockBased
table open, this saves two reads from disk.
This helps to our 999 percentile in 5.6.1 where prefetch buffer is not present.

  Re-use metadata for reading Compression Dictionary on BlockBased
  table open, this saves two reads from disk.
@facebook-github-bot
Copy link
Contributor

@yuslepukhin has updated the pull request. View: changes

@ajkr
Copy link
Contributor

ajkr commented Jan 10, 2018

Just curious, are you using dictionary compression in production? If so, are you able to share any details about the benefit you see on compression ratio? We don't use it yet but hope to some day.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

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

@ajkr ajkr self-assigned this Jan 10, 2018
@yuslepukhin
Copy link
Contributor Author

@ajkr I take that back. We are not using compression dictionary and the perf gain comes from issuing parallel reads in async version. This PR may not be that useful after all.

Copy link
Contributor

@ajkr ajkr left a comment

Choose a reason for hiding this comment

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

It eliminates one of my TODOs, so let's take it anyways :). LGTM, thanks.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ajkr is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@yuslepukhin yuslepukhin deleted the eliminate_redundant_reads branch January 11, 2018 18:26
amytai pushed a commit to amytai/rocksdb that referenced this pull request Mar 9, 2018
Summary:
Re-use metadata for reading Compression Dictionary on BlockBased
  table open, this saves two reads from disk.
  This helps to our 999 percentile in 5.6.1 where prefetch buffer is  not present.
Closes facebook#3354

Differential Revision: D6695753

Pulled By: ajkr

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

None yet

3 participants