Multiple hugepage sizes in Linux (x86-64)?
Asked Answered
I

1

12

Does the Linux on x86-64 support multiple huge page sizes (e.g., both 2MB and 1GB page sizes beyond the 4KB base page size)? If yes, is there a way to specify that for a given allocation which huge page size to use? In other words, my question is if "MAP_HUGETLB" flag is used while doing mmap() it maps them allocation to hugepages of default size. Is there anyway to request an allocation to be mapped on to non-default hugepage size?

Iridescent answered 7/5, 2012 at 20:52 Comment(0)
H
11

Not quite yet, but it's working its way through the LKML. At a guess, the feature will be available in a few releases time.

You will then be able to use the flags MAP_HUGE_2MB and MAP_HUGE_1GB to configure this explicitly.

Holmun answered 23/8, 2012 at 14:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.