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

Make issues due to failed large pages allocations easier to debug

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b07
    • Verification:
      Verified

      Backports

        Description

        There is a known issue in JDK7, JDK-8024218, that may cause crashes if a system running with large pages fails to allocate the large pages and has to fall back to using standard pages. The issue will be fixed in 7u60, but we need to make it easier to debug until then. We should:

        1) Fix the error message when failing to allocate large pages. Right now it is:
        os::commit_memory(0x00000006b1600000, 352321536, 2097152, 0) failed;
        error='Cannot allocate memory' (errno=12)

        It should be something along the lines of
        os::commit_memory(0x00000006b1600000, 352321536, 2097152, 0) failed;
        error='Cannot allocate large pages, falling back to small pages' (errno=12)

        Not sure if small pages is a thing

        2) We should add a counter of how many times this has happened, and print it in the hs_err file. This will make it easier for Support and Sustaining to see if a crash may be related to this issue

        3) We should document this as a known issue

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  aeriksso Andreas Eriksson (Inactive)
                  Reporter:
                  mcastegr Mattis Castegren (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved: