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

sst_dump to reduce number of file reads #6836

Closed
wants to merge 2 commits into from

Commits on May 12, 2020

  1. Sst_dump to reduce number of file reads

    Summary: sst_dump can issue many file reads from the file system. This doesn't work well with file systems without a OS cache, especially remote file systems. In order to mitigate this problem, several improvements are done:
    1. --readahead_size is added, so that users can specify readahead size when scanning the data.
    2. Force a 512KB tail readahead, which prevents three I/Os for footer, meta index and property blocks and hopefully index and filter blocks too.
    3. Consoldiate SSTDump's I/Os before opening the file for read. Use the same file prefetch buffer.
    
    Test Plan: Add a test that covers this new feature.
    siying committed May 12, 2020
    Configuration menu
    Copy the full SHA
    a682b2e View commit details
    Browse the repository at this point in the history
  2. Address comments.

    siying committed May 12, 2020
    Configuration menu
    Copy the full SHA
    a91e5bd View commit details
    Browse the repository at this point in the history