While working on JDK-8366434 one idea for a test to verify if the heap CAN be backed by transparent huge pages (THP) was to use PrintMemoryMapAtExit and look at the tags printed for JAVAHEAP.
It turns out this worked in most cases but on systems where the THP mode is configured as 'always' but there are no huge pages available for use, the JAVAHEAP line will not show any indication that it can be backed by huge pages.
For this to be possible we need to parse the field THPeligible as well and include this information in the printouts.
It might make sense to only print the new THP tag if "thpad" (for THP advised mapping) is not included to avoid too many THP tags.
It turns out this worked in most cases but on systems where the THP mode is configured as 'always' but there are no huge pages available for use, the JAVAHEAP line will not show any indication that it can be backed by huge pages.
For this to be possible we need to parse the field THPeligible as well and include this information in the printouts.
It might make sense to only print the new THP tag if "thpad" (for THP advised mapping) is not included to avoid too many THP tags.
- relates to
-
JDK-8322475 Extend printing for System.map
-
- Resolved
-
- links to
-
Review(master) openjdk/jdk/27098