Integrated: JDK-8299424: containers/docker/TestMemoryWithCgroupV1.java fails on SLES12 ppc64le when testing Memory and Swap Limit
Matthias Baesken
mbaesken at openjdk.org
Mon Jan 2 11:20:05 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 .
This pull request has now been integrated.
Changeset: 95d4db3a
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/95d4db3a92228d0211fa369c7d12d54234b22f72
Stats: 7 lines in 1 file changed: 4 ins; 0 del; 3 mod
8299424: containers/docker/TestMemoryWithCgroupV1.java fails on SLES12 ppc64le when testing Memory and Swap Limit
Reviewed-by: mdoerr
-------------
PR: https://git.openjdk.org/jdk/pull/11805
More information about the hotspot-runtime-dev
mailing list