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

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
add comment for uuid
Signed-off-by: dentiny <dentinyhao@gmail.com>
  • Loading branch information
dentiny committed Dec 24, 2024
commit 995dc0f6b6ed0bf4e907d9e4cb841c25c1a8f731
2 changes: 1 addition & 1 deletion src/ray/common/cgroup/cgroup_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace ray {
struct PhysicalModeExecutionContext {
Copy link
Contributor

Choose a reason for hiding this comment

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

Q: do we need this separate config class from CgroupV2Setup?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These data fields are necessary to construct and destruct cgroup;
As of now the struct doesn't seem that necessary since it only contains 4 fields and we could directly pass them into the factory function, but we could have much more fields (i.e. cpu-related, resource min / high), better to have a struct.

// Directory for cgroup, which is applied to application process.
std::string_view cgroup_directory;
// UUID to indicate the current task / actor.
// A UUID to uniquely identity a certain task / actor attempt.
std::string uuid;
dentiny marked this conversation as resolved.
Show resolved Hide resolved
// PID for the process.
pid_t pid;
Expand Down
Loading