hoytech / vmtouch

Portable file system cache diagnostics and control
https://hoytech.com/vmtouch/
BSD 3-Clause "New" or "Revised" License
1.79k stars 210 forks source link

Use mlock2() instead of mlock() on Linux and use mlockall(MCL_FUTURE). #98

Open ghuls opened 2 years ago

ghuls commented 2 years ago

Use mlock2() instead of mlock() on Linux:

Use mlockall(MCL_FUTURE) instead of mlockall(MCL_CURRENT):