RFR: JDK-8299424: containers/docker/TestMemoryWithCgroupV1.java fails on SLES12 ppc64le when testing Memory and Swap Limit

Martin Doerr mdoerr at openjdk.org
Mon Jan 2 10:06:47 UTC 2023


On Fri, 30 Dec 2022 11:47:03 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

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

LGTM.

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

Marked as reviewed by mdoerr (Reviewer).

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


More information about the hotspot-runtime-dev mailing list