(no title)
jared_hulbert | 5 months ago
Seeing if the cached file data can be accessed quickly is the point of the experiment. I can't get mmap() to open a file with huge pages.
void* buffer = mmap(NULL, size_bytes, PROT_READ, (MAP_HUGETLB | MAP_HUGE_1GB), fd, 0); doesn't work.
You can can see my code here https://github.com/bitflux-ai/blog_notes. Any ideas?
mastax|5 months ago
mananaysiempre|5 months ago
[1] https://lwn.net/Articles/686690/
[2] https://lwn.net/Articles/718102/
inetknght|5 months ago
False. I've successfully used it to memory-map networked files.
jandrewrogers|5 months ago