Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8279176

Container TestMemoryAwareness fails: cannot set memory swappiness with cgroupv2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • tbd
    • 18
    • hotspot

      Test: test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java
      OS: Oracle Linux 8.4 (x64, aarch64) with cgroups v2
      Reproducible: 100%

      ------------- snipped of test log:
      ========== NEW TEST CASE: OOM
      sizeToAllocInMb is:266 sizeToAllocInMb/2 is:133
      [COMMAND]
      podman run --tty=true --rm --volume /home/opc/atr/test-workdir/JTwork/classes/containers/docker/TestMemoryAwareness.d:/test-classes/ --memory 256m --memory-swappiness 0 --memory-swap 256m jdk-internal:test-memory /jdk/bin/java -Xlog:os+container=trace -cp /test-classes/ -Djdk.test.docker.image.name=jpg-data.us.oracle.com:9002/mach5/jdk-test/oraclelinux_8.4_aarch64 -Djdk.test.docker.image.version=1.0 -Djdk.test.container.command=podman -Xmx133m AttemptOOM 266
      [2021-12-20T19:58:18.369484310Z] Gathering output for process 20406
      [ELAPSED: 1 ms]
      [STDERR]
      Error: OCI runtime error: cannot set memory swappiness with cgroupv2

            Unassigned Unassigned
            mseledtsov Mikhailo Seledtsov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: