News for hackers. Stuff that matters.
Re:Memory is slow, Disk is fast – Part 2 by inetknght on Friday September 05, 2025 @01:05PM (#45140875)
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

Re:Memory is slow, Disk is fast – Part 2 by bawolff on Friday September 05, 2025 @04:01PM (#45142964)
The mmap man page kind of implies that would be a no-op, but i haven't tested myself.
Re:Memory is slow, Disk is fast – Part 2 by jared_hulbert on Friday September 05, 2025 @02:05PM (#45141621)
Adding MAP_HUGE_1GB and not MAP_HUGETLB does compile and run for me. Not convinced that its' actually doing anything. Performance is the same.
Re:Memory is slow, Disk is fast – Part 2 by inetknght on Friday September 05, 2025 @02:18PM (#45141792)
Well now that it works, feel free to start poking around at it for a follow-up blog post :)