4 ms·
How about the following? HUGETLB_MORECORE=yes LD_PRELOAD=libhugetlbfs.so
by dchichkov 12y ago
How about the following?
HUGETLB_MORECORE=yes LD_PRELOAD=libhugetlbfs.so
- nkurz 12y agoThis is well worth trying, but not directly applicable to reading from a file. This would help if you were allocating a buffer with malloc() and you wanted it to be backed by hugepages. But if you have control of the source, you are probably better using MAP_HUGETLB with madvise() or mmap(), or using the get_huge_pages() directly instead of using the LD_PRELOAD.