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

Change mmap area protections to only PROT_READ once read-only #24

Open
Thomasdezeeuw opened this issue Oct 27, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Thomasdezeeuw
Copy link
Owner

Benchmark if its worth it to change the protections from PROT_READ | PROT_WRITE to only PROT_READ once all the data to a mmap(2) area have been written, in the Data file. If the page is marked PROT_READ the kernel might be able to optimise sending it into a socket for example. But I don't know if the kernel can/does take advantage of that, so benchmark first.

@Thomasdezeeuw Thomasdezeeuw added the enhancement New feature or request label Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant