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
On Wed, 20 Sep 2023 12:02:29 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> 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.
@shipilev PTAL. Thanks!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15840#issuecomment-1727589974
More information about the hotspot-runtime-dev
mailing list