Skip to content

[core] Fix cgroup controller check #52443

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dentiny
Copy link
Contributor

@dentiny dentiny commented Apr 18, 2025

Fix cgroup bugs I wrote in previous PRs. Hopefully the inline comments are clear enough.

@dentiny dentiny added the go add ONLY when ready to merge, run all tests label Apr 18, 2025
@dentiny dentiny force-pushed the hjiang/fix-cgroup-controller-check branch from b09577c to 83c8284 Compare April 18, 2025 19:14
cur_controller) != enabled_subtree_controllers.end()) {
if (std::find(available_controllers.begin(),
available_controllers.end(),
cur_controller) == available_controllers.end()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the required controller is NOT available, we should error.

@@ -248,8 +248,8 @@ Status CgroupSetup::InitializeCgroupV2Directory(const std::string &directory,
// Check cgroup accessibility before setup.
RAY_RETURN_NOT_OK(internal::CheckCgroupV2MountedRW(directory));

// Check cgroup subtree control before setup.
if (Status s = internal::CheckBaseCgroupSubtreeController(directory); !s.ok()) {
// Check cgroup available controllers before setup.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before any cgroup operations, we should check available controllers, and enable subtree controllers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants