RFR: 8348647: CDS dumping commits 3GB when large pages are used
Stefan Karlsson
stefank at openjdk.org
Mon Jan 27 09:17:29 UTC 2025
CDS inadvertently commits large pages when dumping and -XX:+UseLargePages is used. The fix is simply to use the memory reservation API that doesn't try to allocate large pages.
FWIW, I think that we should change the overloads so that the simplest overloaded function reserves memory without large pages.
I verified manually by looking at /proc/meminfo that we're not using large pages for the symbols after this change.
-------------
Commit messages:
- 8324195: CDS: Explore possibilities to reduce memory footprint when dumping archive with LargePages
Changes: https://git.openjdk.org/jdk/pull/23299/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23299&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8348647
Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/23299.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23299/head:pull/23299
PR: https://git.openjdk.org/jdk/pull/23299
More information about the hotspot-runtime-dev
mailing list