RFR: JDK-8299424: containers/docker/TestMemoryWithCgroupV1.java fails on SLES12 ppc64le when testing Memory and Swap Limit
Matthias Baesken
mbaesken at openjdk.org
Fri Dec 30 11:54:40 UTC 2022
On the old SLES12 ppc64le machine we do not have memory.memsw.limit_in_bytes :
ls -alL /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes
ls: cannot access /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes: No such file or directory
This leads to
[0.163s][trace][os,container] Memory and Swap Limit is: 18446744073709551614
memory_and_swap_limit_in_bytes: not supported
And the check in containers/docker/TestMemoryWithCgroupV1.java fails :
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:88)
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:1623)
Probably we should handle this situation and check for "memory_and_swap_limit_in_bytes: not supported" or something similar .
-------------
Commit messages:
- JDK-8299424
Changes: https://git.openjdk.org/jdk/pull/11805/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11805&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8299424
Stats: 7 lines in 1 file changed: 4 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/11805.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11805/head:pull/11805
PR: https://git.openjdk.org/jdk/pull/11805
More information about the hotspot-runtime-dev
mailing list