-
Notifications
You must be signed in to change notification settings - Fork 6.2k
[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
base: master
Are you sure you want to change the base?
[core] Fix cgroup controller check #52443
Conversation
Signed-off-by: dentiny <[email protected]>
b09577c
to
83c8284
Compare
cur_controller) != enabled_subtree_controllers.end()) { | ||
if (std::find(available_controllers.begin(), | ||
available_controllers.end(), | ||
cur_controller) == available_controllers.end()) { |
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.
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. |
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.
Before any cgroup operations, we should check available controllers, and enable subtree controllers.
Fix cgroup bugs I wrote in previous PRs. Hopefully the inline comments are clear enough.