Support cgroup namespaces#13675
Open
copybara-service[bot] wants to merge 1 commit into
Open
Conversation
d5c2e43 to
59d9722
Compare
cgroup namespaces are non hierarchical and they are defined primarily by a "root" cgroup node. The init cgroup namespaces's root node is the true root of the (only) cgroup2fs tree. The root node of other cgroup namespaces is the cgroup node of the task at the time of namespace creation. Residing in a cgroup namespace affects tasks this way: 1) The views into /proc/[pid]/cgroup and the "root" field under /proc/[pid]/mountinfo are virtualized: they are rendered relative to the reading task's cgroupns. 2) mount()ing a cgroup2 fs furnishes only a subtree of the full cgroup2fs tree, rooted at the "root" cgroup of the hosting cgroupns. Fixes #11989 PiperOrigin-RevId: 945868085
59d9722 to
a7401da
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Support cgroup namespaces
cgroup namespaces are non hierarchical and they are defined primarily by a
"root" cgroup node. The init cgroup namespaces's root node is the true root of
the (only) cgroup2fs tree. The root node of other cgroup namespaces is the
cgroup node of the task at the time of namespace creation.
Residing in a cgroup namespace affects tasks this way:
The views into /proc/[pid]/cgroup and the "root" field under
/proc/[pid]/mountinfo are virtualized: they are rendered relative to the
reading task's cgroupns.
mount()ing a cgroup2 fs furnishes only a subtree of the full cgroup2fs
tree, rooted at the "root" cgroup of the hosting cgroupns.
Fixes #11989