Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366780

Enhance ProcSmapsParser and Printer to handle THPeligible field

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 26
    • hotspot
    • None

      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.

            sjohanss Stefan Johansson
            sjohanss Stefan Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: