RFR: 8338136: Hotspot should support multiple large page sizes on Windows [v3]

Dhamoder Nalla dhanalla at openjdk.org
Thu Oct 3 00:18:49 UTC 2024


> This pull request introduces enhancements to the handling of large page sizes in the OpenJDK for Windows systems, aiming to align its capabilities with those observed on Linux platforms. Investigation through SPECJBB benchmarks across various platforms revealed a 16-year-old limitation in handling large pages over 4MB for IA32/AMD64 architectures, with no such constraints for Windows on ARM64.
> 
> JBS issue https://bugs.openjdk.org/browse/JDK-8338136
> 
> The goal of this change is to overcome the 4MB large page size limitation, thereby enhancing Windows' large page support to match Linux's more flexible handling capabilities. This decision to remove 4MB constraint was influenced by insights from Linux's implementation strategies. The implementation supports multiple large page sizes , specifically excluding the IA32 architecture.
> 
> Key changes and bug fixes include enabling Windows support for multiple huge page sizes with -XX:LargePageSizeInBytes, and utilizing logic from [JDK-8271195](https://bugs.openjdk.org/browse/JDK-8271195) to use the largest available large page size smaller than LargePageSizeInBytes when available.
> 
> This update removes the 4MB limit on AMD64 for Windows, populating the shared array to enable fallback options on all architectures except IA32. The implementation introduces an experimental flag, defaulting to FALSE, to facilitate testing and gradual adoption of these changes. The flag allows users to opt-in to the new large page handling logic, with a warning mechanism implemented for cases where the requested large page size is not a multiple of the OS minimum page size.

Dhamoder Nalla has updated the pull request incrementally with one additional commit since the last revision:

  address CR feedback

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/20758/files
  - new: https://git.openjdk.org/jdk/pull/20758/files/d48aff30..f778475c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20758&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20758&range=01-02

  Stats: 11 lines in 1 file changed: 3 ins; 3 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/20758.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20758/head:pull/20758

PR: https://git.openjdk.org/jdk/pull/20758


More information about the hotspot-runtime-dev mailing list