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
8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy #121
Conversation
👋 Welcome back jdowland! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
Not necessary. Sorry for the noise! |
8f3570f
to
0ea3c60
Compare
@jmtd 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. |
I have ended up (artificially) making this PR depend upon pr/123, so that another PR, #124, can depend upon this one and get both - it depends upon both. |
The parent pull request that this pull request depends on 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 8231111-jdk8u-dev
git fetch https://git.openjdk.org/jdk8u-dev master
git merge FETCH_HEAD
# if there are conflicts, follow the instructions given by git merge
git commit -m "Merge master"
git push |
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.
Looks mostly good. A couple of suggestions.
jdk/test/lib/jdk/test/lib/containers/cgroup/MetricsTesterCgroupV1.java
Outdated
Show resolved
Hide resolved
/issue add JDK-8275713 |
/issue add JDK-8228585 |
@jmtd |
@jmtd |
f56af77
to
a2bb169
Compare
|
@jmtd 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. |
a2bb169
to
5849871
Compare
@jmtd 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. |
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.
Looks good to me.
commit files newly introduced in 19f26f725fd (11u-dev backport of 4def210a22faaec6b47912dd314e6365ea48d28f), with paths rewritten: {src/java.base => jdk/src}/linux/classes/jdk/internal/platform Files not otherwise modified for 8u compatibility yet.
rm {src/java.base => jdk/src}/linux/classes/jdk/internal/platform/cgroupv1/SubSystem.java
conflicts in import lines, 11+ have module-related imports not applicable to 8u. Other hunks applied OK. No further inspection performed yet.
unshuffle, rename, resolve unclean hunks although I'm not sure why they didn't apply, they look trivial and the context is the same, will look closer
jdk8u doesn't have java.lang.System.Logger. There's no existing logging in place for other classes in the Metrics/platform/etc family that I can see, so remove it.
two files had fairly significant merge conflicts, eyeball only to resolve haven't run any of them yet -- will depend on the rest of the patch
…recent runc The main hunk from 8275713 was rolled up in the changes for 8231111. This line is also necessary.
jdk8u does not have Arrays.compare()
We need the testlibrary copy of FileUtils but the test.lib.util copy of Utils (method createTempDirectory is missing from the testlib copy)
5849871
to
831ee9c
Compare
@jmtd 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. |
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.
This looks ok, though again I don't see why two additional changes have been mixed in with this backport, when they could have been in follow-ups. Thanks to @jerboaa for catching that they were in there.
Approved for 8u.
/integrate |
Going to push as commit c9007cd.
Your commit was automatically rebased without conflicts. |
This is a backport of 4def210a22faaec6b47912dd314e6365ea48d28f for jdk8u-dev as part of an effort to backport cgroups v2 support.
It does not apply clean. Paths need unshuffling. A number of changes were needed for 8u support. I've structured the PR as separate commits, with each change made in a separate commit for (hopefully) ease of review.
Not all the new tests pass: TestDockerMemoryMetrics failing one, specifically:
I think this is fixed in a further patch to backport, and will confirm.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev pull/121/head:pull/121
$ git checkout pull/121
Update a local copy of the PR:
$ git checkout pull/121
$ git pull https://git.openjdk.org/jdk8u-dev pull/121/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 121
View PR using the GUI difftool:
$ git pr show -t 121
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/121.diff