RFR: JDK-8289146: containers/docker/TestMemoryWithCgroupV1.java fails on linux ppc64le machine with missing Memory and Swap Limit output [v3]

Matthias Baesken mbaesken at openjdk.org
Tue Jul 5 07:18:25 UTC 2022


> On Linux ppc64le machines , the test fails with
> 
>  stderr: [WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
> ]
>  exitValue = 0
> 
> java.lang.RuntimeException: 'Memory and Swap Limit is: 157286400' missing from stdout/stderr
> 
> at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
> at TestMemoryWithCgroupV1.testMemoryLimitWithSwappiness(TestMemoryWithCgroupV1.java:84)
> at TestMemoryWithCgroupV1.main(TestMemoryWithCgroupV1.java:61)
> at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
> at java.base/java.lang.reflect.Method.invoke(Method.java:578)
> at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
> at java.base/java.lang.Thread.run(Thread.java:1596)
> 
> This is most likely related to "kernel does not support swap limit capabilities",
> we've seen similar issues on other Linux ppc64 le machines in some tests before.
> So there needs to be some special handling added to the test for the case without kernel swap limit capabilities.

Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:

  Adjust warning output

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/9319/files
  - new: https://git.openjdk.org/jdk/pull/9319/files/75908bf6..5aec24ae

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9319&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9319&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/9319.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9319/head:pull/9319

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


More information about the hotspot-runtime-dev mailing list