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


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).

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

Commit messages:
 - 8289695: [TESTBUG] TestMemoryAwareness.java fails on cgroups v2 and crun

Changes: https://git.openjdk.org/jdk/pull/9366/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9366&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8289695
  Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/9366.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9366/head:pull/9366

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


More information about the hotspot-runtime-dev mailing list