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

QFS Client read-ahead causes stalls #238

Open
avodaniel opened this issue Sep 29, 2019 · 1 comment
Open

QFS Client read-ahead causes stalls #238

avodaniel opened this issue Sep 29, 2019 · 1 comment

Comments

@avodaniel
Copy link

It seems that QFS Client uses internally read-ahead buffer of size readAheadBufferSize that is read always once in a whole piece. Then client waits until it is fully processed by calls to KfsClient::Read() and then it is filled again. The call to KfsClient::Read() after read-ahead buffer is fully read is blocked, until the buffer is fully filled again. It would be better to divide prefetch buffer to two or more pieces. One piece can be filled in the background while KfsClient::Read() would read from the other piece.

@mikeov
Copy link
Contributor

mikeov commented Nov 17, 2019

In theory KfsClient::ReadPrefetch() can be used to schedule prefetch and / or start read pipeline without blocking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants