-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: 27
-
Component/s: hotspot
Recent OS changes have made the JVM start to issue more large page warnings on some configurations. We should limit the amount of warnings by only warn for actually configured large page sizes.
One example is OL9 on aarch64 where the default page size now is 4k. With that default page size you can (on some systems) configure both 64K and 2M large pages. If 2M is the default large page size we will try to use both 2M and 64K large pages depending on the size of the underlying mapping. If there are no large pages available for the the matching page size this warning will be printed:
Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve and commit memory using large pages. req_addr: 0x0000000000000000 bytes: 1867776
This is a bit annoying if you have configured 2M pages (the default) but not 64K pages and you start getting warnings for smaller mappings that you don't intend to be backed by large pages.
This could be avoided by not trying to use large page sizes that have no pages configured at startup. In other words, read: /sys/kernel/mm/hugepages/hugepages-*kB/nr_hugepages and "disable" the page size if the number is 0.
One example is OL9 on aarch64 where the default page size now is 4k. With that default page size you can (on some systems) configure both 64K and 2M large pages. If 2M is the default large page size we will try to use both 2M and 64K large pages depending on the size of the underlying mapping. If there are no large pages available for the the matching page size this warning will be printed:
Java HotSpot(TM) 64-Bit Server VM warning: Failed to reserve and commit memory using large pages. req_addr: 0x0000000000000000 bytes: 1867776
This is a bit annoying if you have configured 2M pages (the default) but not 64K pages and you start getting warnings for smaller mappings that you don't intend to be backed by large pages.
This could be avoided by not trying to use large page sizes that have no pages configured at startup. In other words, read: /sys/kernel/mm/hugepages/hugepages-*kB/nr_hugepages and "disable" the page size if the number is 0.
- relates to
-
JDK-8256155 Allow multiple large page sizes to be used on Linux
-
- Resolved
-