-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
dentiny
wants to merge
18
commits into
ray-project:master
Choose a base branch
from
dentiny:hjiang/cgroup-utils-cpp
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+301
−0
Open
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a9e8dc6
setup cgroup v2 in C++
dentiny feb0282
strinv view for cgroup content
dentiny ce77002
rename cgroup -> cgroup v2
dentiny 995dc0f
add comment for uuid
dentiny f54f2eb
minor update in ifdef macro
dentiny f3a4a9a
raii for cgroup v2
dentiny 341317f
ifdef
dentiny 50874cd
rename as id
dentiny 3027ed8
comment on cgroup class
dentiny 12f0cfe
fix comment
dentiny c5e3fd7
place process to default cgroup
dentiny b679ba7
comment to add process to application cgroup
dentiny 7689889
add precondition requirement and fix cleanup logic
dentiny 792fa54
leave TODO for string view
dentiny 128bfdf
remove unused function
dentiny d3fdd2a
remove useless if branch
dentiny 2dcd1e7
local manager change for cgroup
dentiny 56aeea9
special handle EEXISTS
dentiny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add comment for uuid
Signed-off-by: dentiny <dentinyhao@gmail.com>
- Loading branch information
commit 995dc0f6b6ed0bf4e907d9e4cb841c25c1a8f731
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Q: do we need this separate config class from CgroupV2Setup?
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.
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.