3 ms·
Can mlock be instructed to f.ex. "never swap pages from this pid"?
by pdimitar 1y ago
Can mlock be instructed to f.ex. "never swap pages from this pid"?
- bayindirh 1y agoThe application requests this itself from the Kernel. See https://man7.org/linux/man-pages/man2/mlock.2.html https://man7.org/linux/man-pages/man2/mlock.2.html
- dwattttt 1y agoFrom the link, mlockall with MCL_CURRENT | MCL_FUTURE > Lock all pages which are currently mapped into the address space of the process. > Lock all pages which will become mapped into the address space of the process in the future.