-
Notifications
You must be signed in to change notification settings - Fork 3
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
FreeBSD: Neither sendfile() nor select() triggers diskio #5
Comments
Could you assign this to me? |
Signed-off-by: Jille Timmermans <[email protected]>
Thanks-to: Jille Timmersmans <[email protected]> Signed-off-by: Bas Westerbaan <[email protected]>
I think removing the Below are the stats while retreiving a large file which isn't cached with SF_NODISKIO and the workarounds removed.
|
sendfile() does not read from the disk and returns EBUSY when the data is not cached. Select() was supposed to flag it as ready when the data became available but it flags it as such even when the data is not yet buffered, so sendfile returns EBUSY.
There should be something that triggers the kernel to actually read from the disk, preferrably in a nonblocking fashion but otherwise in another thread.
The text was updated successfully, but these errors were encountered: