RFR: 8316418: containers/docker/TestMemoryWithCgroupV1.java get OOM killed with Parallel GC
Aleksey Shipilev
shade at openjdk.org
Wed Sep 20 14:33:47 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).
This works well on my system where the test was failing.
I ran `containers/docker` on that system for 10+ times, and no new problems emerged.
-------------
Marked as reviewed by shade (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/15840#pullrequestreview-1635796027
More information about the hotspot-runtime-dev
mailing list