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

File: Try doing a non-blocking read before punting to the threadpool #3518

Merged
merged 5 commits into from Apr 14, 2021

Commits on Mar 26, 2021

  1. File: Try doing a non-blocking read before punting to the threadpool

    ...on Linux.
    
    If the data is already available in cache this will avoid cross-thread
    interaction and remove a copy.  It should help with latency too as reads
    that can be satisfied now won't need to wait in queue until other fs
    operations are complete.
    wmanley committed Mar 26, 2021
    Copy the full SHA
    ef5c74c View commit details
    Browse the repository at this point in the history
  2. tests/fs_file.rs: Explicitly drop temp file from cache

    ...in an attempt to stimulate both the `preadv2` direct from cache
    codepath in addition to the punt to a threadpool uncached one.
    wmanley committed Mar 26, 2021
    Copy the full SHA
    48576b5 View commit details
    Browse the repository at this point in the history
  3. File: preadv2: Call the syscall directly rather than via glibc

    This way we don't need to worry about compatiblity with old glibc versions
    and it will work on Android and musl too.  The downside is that you can't
    use `LD_PRELOAD` tricks any more to intercept these calls.
    wmanley committed Mar 26, 2021
    Copy the full SHA
    0b7d90e View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2021

  1. Copy the full SHA
    223a450 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    5874d63 View commit details
    Browse the repository at this point in the history