RFR: 8316418: containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
Severin Gehwolf
sgehwolf at openjdk.org
Wed Sep 20 12:10:05 UTC 2023
Please review this test fix to restrain the number of cores being used for the test. What matters for the test is the memory limit. The test verifies that a certain memory limit with swappiness set to 0 returns the memory limit (without swap). On some systems with many cores the memory limit might be too small for the number of threads the JVM creates with the set limit. I propose to make the number of cores the test is allowed to used to a fixed value: 4 over the number of cores available on the system, which makes the test passing system dependent.
-------------
Commit messages:
- 8316418: containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
Changes: https://git.openjdk.org/jdk/pull/15840/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15840&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8316418
Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/15840.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15840/head:pull/15840
PR: https://git.openjdk.org/jdk/pull/15840
More information about the hotspot-runtime-dev
mailing list