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

Use MAP_POPULATE on Linux if -ql #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dimkr
Copy link

@dimkr dimkr commented Sep 23, 2024

If locking silently, mincore() and the iteration over pages can be skipped because there's no chart to print, and MAP_POPULATE can read the file while mlockall(MCL_FUTURE) takes care of locking.

This makes vmtouch -ql faster and more likely to actually lock.

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

Successfully merging this pull request may close these issues.

1 participant