Skip to content

Conversation

@ziyilin
Copy link
Collaborator

@ziyilin ziyilin commented Apr 6, 2023

Multiple controllers can be set on the same hierarchy in /proc/self/cgroup. Assume a few fixed patterns is not sufficient to handle all the cases.

The related issue is: #6382

Multiple controllers can be set on the same hierarchy in
/proc/self/cgroup. Assume a few fixed patterns is not sufficient to
handle all the cases.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 6, 2023
@oubidar-Abderrahim oubidar-Abderrahim self-assigned this Apr 12, 2023
@oubidar-Abderrahim
Copy link
Member

Thank you @ziyilin for opening this PR,
@christianwimmer could you please assign someone to review this PR?

@christianwimmer
Copy link

How is this handled / fixed in OpenJDK (where our code is copied from)?

@ziyilin
Copy link
Collaborator Author

ziyilin commented Apr 13, 2023

Although not exactly the same, OpenJDK17 uses the similar approach as this PR to handle the problem.
https://github.com/openjdk/jdk17u-dev/blob/master/src/java.base/linux/classes/jdk/internal/platform/CgroupSubsystemFactory.java#L259-L281

@ziyilin
Copy link
Collaborator Author

ziyilin commented Apr 25, 2023

Hi @christianwimmer, is there any review updates?

@christianwimmer
Copy link

We are working on a solution that brings our code closer to the JDK again (ideally just using the JDK code).

@VictoryWangCN
Copy link

Is there any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants