Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366434 THP not working properly with G1 after JDK-8345655
  3. JDK-8366564

Release Note: -XX:+UseTransparentHugePages Fails to Enable Huge Pages for G1

XMLWordPrintable

    • gc

      On systems configured with the Transparent Huge Pages (THP) mode as ´madvise´, the option `-XX:+UseTransparentHugePages` does not enable huge pages when running with the default garbage collector G1.

      A workaround to allow the use of transparent huge pages with G1 is to configure the THP mode as `always`:
      ```
      # echo always > /sys/kernel/mm/transparent_hugepage/enabled
      ```

      This issue will be fixed in a future update.

            sjohanss Stefan Johansson
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: