-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK-8299424: containers/docker/TestMemoryWithCgroupV1.java fails on SLES12 ppc64le when testing Memory and Swap Limit #11805
Conversation
👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@MBaesken This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Hi Martin, thanks for the review ! /integrate |
Going to push as commit 95d4db3.
Your commit was automatically rebased without conflicts. |
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 .
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11805/head:pull/11805
$ git checkout pull/11805
Update a local copy of the PR:
$ git checkout pull/11805
$ git pull https://git.openjdk.org/jdk pull/11805/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11805
View PR using the GUI difftool:
$ git pr show -t 11805
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11805.diff