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

Use any configured large page size by default

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 19
    • hotspot
    • gc

      Currently the default behavior when using large pages is to only allow use of page sizes up to the system default large page size or if LargePageSizeInBytes is set up to that size.

      To simplify usage of large pages we could change the setup phase of large pages to always allow use of all configured page sizes, and instead have LargePageSizeInBytes as a flag to limit the use of large page sizes. This would require some small changes to the documentation of that flag, since this would no longer be true:
      By default, the size is set to 0, meaning that the JVM will use the
      default large page size for the environment as the maximum size for
      large pages.

      For a change like this to make sense we likely first need to address both:
      - JDK-8267475, to make sure the heap is not rounded up to much
      - JDK-8282183, to make sure no mapping are depending on os::large_page_size being a certain value.

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

              Created:
              Updated: