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

Improve warning for UseSHM failures

    XMLWordPrintable

Details

    • Enhancement
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 17
    • tbd
    • hotspot
    • None
    • gc
    • linux

    Description

      When using shared memory segements (UseSHM) to get large pages there are typically to types of failures you get when trying to do a "mapping". It either fails with ENOMEM or EPERM:
      * ENOMEM will occur when there are no more large pages can be allocated.
      * EPERM will occur if the process is not privileged and you have reached the "max locked memory" limit (ulimit -l)

      It would be helpful for the user to better indicate this and instead of just printing the errno, give a better error message.

      Some good man pages to refer to:
      > man shmget - Info on all errors
      > man setrlimit - Info on locked mem limit

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: