vmtouch
vmtouch copied to clipboard
Use MAP_POPULATE on Linux if -ql
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.