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

research madvise() syscalls to avoid mmap() stalls #31

Open
steveyen opened this issue May 1, 2017 · 0 comments
Open

research madvise() syscalls to avoid mmap() stalls #31

steveyen opened this issue May 1, 2017 · 0 comments

Comments

@steveyen
Copy link
Member

steveyen commented May 1, 2017

mmap() is terrific, leading to a simple moss implementation.

But, due to the magic of page-faulting in data from disk from mmap(), which is an operation that's invisible to the app, the app thread may suddenly become blocked... and the golang scheduler has no idea it's happening and cannot arrange for the app thread to be used for other needs.

Perhaps various OS API's like madvise() and siblings can help manage this situation in more controlled fashion and reduce page faults.

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