review(XS): 7087583: Hotspot fails to allocate heap with mmap(MAP_HUGETLB)
igor.veresov at oracle.com
Tue Sep 6 14:38:14 PDT 2011
Hotspot will fail allocating the heap on linux >= 2.6.32 if there're more than 1 large page present but not enough to cover all the heap. The solution is to try small pages if mmap(MAP_HUGETLB) fails and also apply madvise(MADV_HUGETLB) in case some pages are freed by the time we touch this space.
More information about the hotspot-gc-dev