8349988: Change cgroup version detection logic to not depend on /proc/cgroups#4271
8349988: Change cgroup version detection logic to not depend on /proc/cgroups#4271jerboaa wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back sgehwolf! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issues from the original commit. |
|
/issue add JDK-8347811 |
|
@jerboaa |
|
@jerboaa |
|
I've included JDK-8354878 - a one-liner - directly in here so as to not regress. |
|
On an affected system (Ubuntu 2025-10) we have this before/after. Before After |
|
@fitzsim Could you please take a look? Thank you! |
|
@jerboaa taking a look... |
|
/reviewer credit @fitzsim |
|
/reviewer credit @fitzsim |
|
@jerboaa |
|
This looks good to me. I no longer have the virtual machines at hand to test, so I didn't test it. I confirmed the changes versus the original patch seem fine though:
At least |
|
Thanks for the review! |
|
On my host (Debian, kernel before: after: i.e., the warning about missing memory controller has gone. |
|
I'm not sure how useful this is, but |
Please review this backport of the cgroup version detection logic which affects JDK 17 as well. Newer systems which are affected, like Ubuntu 2025-XX, get more commonly used. Therefore, I propose to backport it there too. The JDK 21 backport got shipped with the 21.0.10 update in January. The patch is not clean due to
nullptrvsNULLdifferences and more context changes (e.g. JDK-8261242 not in JDK 17). Since the patch is not clean anyway, I've included the one-liner of JDK-8354878 right away.Testing:
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/4271/head:pull/4271$ git checkout pull/4271Update a local copy of the PR:
$ git checkout pull/4271$ git pull https://git.openjdk.org/jdk17u-dev.git pull/4271/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 4271View PR using the GUI difftool:
$ git pr show -t 4271Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/4271.diff
Using Webrev
Link to Webrev Comment