RFR: 8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun

Severin Gehwolf sgehwolf at openjdk.org
Mon Jul 4 15:11:10 UTC 2022


On Mon, 4 Jul 2022 15:03:41 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> Please review this test change to also support `crun` on cgroups v2 systems. `crun` aborts any invocation that includes `--memory-swappiness` CLI option. I don't think it's needed for the purpose of the test. `--memory X` and `--memory-swap X` where `X` is the same value already tells the system to not use swap.
> 
> Tested on Linux x86_64, cgroups v1 and cgroups v2 systems (including an affected one).

@MBaesken If you could test this on a system similar to where https://bugs.openjdk.org/browse/JDK-8229182 was tested, I'd appreciate it. The existing code got introduced by that bug. Thanks!

-------------

PR: https://git.openjdk.org/jdk/pull/9366


More information about the hotspot-runtime-dev mailing list