Back to the top page

Without MAP_LOCKED?

Actually, a hugetlbfs sample program in one of Linux kernel document files (Documentation/vm/hugetlbpage.txt) doesn't have MAP_LOCKED flag for mmap(). If you simply use a hugetlbfs region withtout MAP_LOCKED flag or mlock(), it has very big overhead on small iteration. Linux kernel 2.6.15 or later requires user to specify MAP_LOCKED flag for mmap() or mlock().

128MB not mlocked 128MB reference

128MB not mlocked 128MB reference

128MB not mlocked 128MB reference


Kazutomo Yoshii <kazutomo@mcs.anl.gov>
Last modified: Fri Aug 25 15:01:20 CDT 2006