False. I've successfully used it to memory-map networked files.
False. I've successfully used it to memory-map networked files.
Based on this SO discussion [1], it is possibly a limitation with popular filesystems like ext4?
If anyone knows more about this, I'd love to know what exactly are the requirements for using hugepages this way.
[1] https://stackoverflow.com/questions/44060678/huge-pages-for-...
Honestly i never knew any of this i thought huge pages just worked for all of mmap.
See a quick example I whipped up here: https://github.com/inetknght/mmap-hugetlb
The "on disk" distinction is a simplification.
See a quick example I whipped up here: https://github.com/inetknght/mmap-hugetlb
Do you have kernel documentation that says that hugetlb doesn't work for files? I don't see that stated anywhere.
See a quick example I whipped up here: https://github.com/inetknght/mmap-hugetlb