Mitch I believe you are looking for madvide https://man7.org/linux/man-pages/man2/madvise.2.html
It can be used to info kernel of the expected mem access pattern, or use MADV_DONTNEED to lazily free up the backing memory for a virtual mapping.
There's also MADV_FREE that performs similar task but can be only applied to pruvate annoymous pages.
And there're MADV_COLD and MADV_PAGEOUT to encourage kernel to swap out pages.
It can be used to info kernel of the expected mem access pattern, or use MADV_DONTNEED to lazily free up the backing memory for a virtual mapping.
There's also MADV_FREE that performs similar task but can be only applied to pruvate annoymous pages.
And there're MADV_COLD and MADV_PAGEOUT to encourage kernel to swap out pages.
Comment