Integrated: 8338136: Hotspot should support multiple large page sizes on Windows
Dhamoder Nalla
dhanalla at openjdk.org
Fri Oct 4 04:53:40 UTC 2024
On Thu, 29 Aug 2024 00:18:04 GMT, Dhamoder Nalla <dhanalla at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 4ded2838
Author: Dhamoder Nalla <dhanalla at openjdk.org>
Committer: David Holmes <dholmes at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/4ded28380b6756e0679d80706f76bd6e78c370b9
Stats: 154 lines in 4 files changed: 142 ins; 1 del; 11 mod
8338136: Hotspot should support multiple large page sizes on Windows
Reviewed-by: dholmes, djelinski
-------------
PR: https://git.openjdk.org/jdk/pull/20758
More information about the hotspot-runtime-dev
mailing list