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

Mention no help for huge files #49

Open
rdiez opened this issue Sep 20, 2021 · 0 comments
Open

Mention no help for huge files #49

rdiez opened this issue Sep 20, 2021 · 0 comments

Comments

@rdiez
Copy link

rdiez commented Sep 20, 2021

nocache only calls posix_fadvise( POSIX_FADV_DONTNEED ) when the file descriptor is closed, and that is too late if the file is huge and has already been read.

This limitation should be mentioned in the README, because it effectively renders nocache useless for big files.

This guy was actually the one that found out about it:
https://sebastian.marsching.com/blog/archives/161-Design-flaws-of-the-Linux-page-cache.html

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

1 participant