2 ms·
My bad, don't use `MAP_HUGETLB`, just use `MAP_HUGE_1GB`. See a quick example I whipped up here: https://github.com/inetknght/mmap-hugetlb https://github.com/i
by inetknght 1y ago
My bad, don't use `MAP_HUGETLB`, just use `MAP_HUGE_1GB`.
See a quick example I whipped up here: https://github.com/inetknght/mmap-hugetlb https://github.com/inetknght/mmap-hugetlb
- jared_hulbert 1y agoAdding MAP_HUGE_1GB and not MAP_HUGETLB does compile and run for me. Not convinced that its' actually doing anything. Performance is the same.
- inetknght 1y agoWell now that it works, feel free to start poking around at it for a follow-up blog post :)
- bawolff 1y agoThe mmap man page kind of implies that would be a no-op, but i haven't tested myself.