Skip to content
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

[core] Setup cgroup v2 in C++ #49416

Merged
merged 23 commits into from
Jan 9, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix comment
Signed-off-by: dentiny <dentinyhao@gmail.com>
  • Loading branch information
dentiny committed Dec 26, 2024
commit 12f0cfe2ca87299f6fae3419b1e8a872e434d24d
3 changes: 3 additions & 0 deletions src/ray/common/cgroup/cgroup_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
namespace ray {

// A util class which sets up cgroup at construction, and cleans up at destruction.
// On ctor, creates a cgroup v2 if necessary based on the context. Then puts `ctx.pid`
// into this cgroup. On dtor, puts `ctx.pid` into the default cgroup, and remove this
// cgroup v2 if any.
class CgroupV2Setup {
dentiny marked this conversation as resolved.
Show resolved Hide resolved
public:
// A failed construction returns nullptr.
Expand Down
Loading