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
8293540: [Metrics] Incorrectly detected resource limits with additional cgroup fs mounts #10248
8293540: [Metrics] Incorrectly detected resource limits with additional cgroup fs mounts #10248
Conversation
|
@jerboaa The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
93e7bea
to
9cc6c7c
Compare
Webrevs
|
I fixed a typo in the bug's synopsis line so this PR's title needs to be update. |
Thanks! I've updated the PR title to match the bug synopsis. |
The dependent pull request has now been integrated, and the target branch of this pull request has been updated. This means that changes from the dependent pull request can start to show up as belonging to this pull request, which may be confusing for reviewers. To remedy this situation, simply merge the latest changes from the new target branch into this pull request by running commands similar to these in the local repository for your personal fork: git checkout JDK-8293540-metrics-cgroups-mounts
git fetch https://git.openjdk.org/jdk master
git merge FETCH_HEAD
# if there are conflicts, follow the instructions given by git merge
git commit -m "Merge master"
git push |
@jerboaa this pull request can not be integrated into git checkout JDK-8293540-metrics-cgroups-mounts
git fetch https://git.openjdk.org/jdk master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
…ith additional cgroup fs mounts
9cc6c7c
to
8059dd8
Compare
@jerboaa Please do not rebase or force-push to an active PR as it invalidates existing review comments. All changes will be squashed into a single commit automatically when integrating. See OpenJDK Developers’ Guide for more information. |
Anyone willing to review this? Thanks! |
@iklam Could you help me getting this reviewed, please? |
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.
The JDK change looks good to me. Some nits for the test cases.
@jerboaa This change now passes all automated pre-integration checks. 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 no new commits pushed to the
|
Thanks for the review @iklam! |
/integrate |
Going to push as commit 6d83482.
Your commit was automatically rebased without conflicts. |
Similar issue to the hotspot change discussed in https://bugs.openjdk.org/browse/JDK-8293472. The Java metrics implementation may get the resource limits wrong if there are additional cgroup fs mounts. Apparently that's more common than one might think. I've reproduced this with these existing tests on cg v2:
I've also added
test/jdk/jdk/internal/platform/docker/TestDockerBasic.java
and amendedtest/jdk/jdk/internal/platform/cgroup/TestCgroupSubsystemFactory.java
which unconditionally fails (irrespective of cgroup version in use). The fix is fairly straight forward and is an extension which we already do for thecpuset
controller: Allow duplicates, and if there are any prefer those mounted at/sys/fs/cgroup
.Testing:
cgcreate
andcgexec
on cg1 and cg2. Still pass.Please review! Many thanks in advance.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10248/head:pull/10248
$ git checkout pull/10248
Update a local copy of the PR:
$ git checkout pull/10248
$ git pull https://git.openjdk.org/jdk pull/10248/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10248
View PR using the GUI difftool:
$ git pr show -t 10248
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10248.diff