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
* 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
- relates to
-
JDK-8261401 Add sanity check for UseSHM large pages similar to the one used with hugetlb large pages
-
- Resolved
-
-
JDK-8261894 Remove support for UseSHM
-
- Resolved
-