You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Provides a method for the cgroup v2 manager to support moving processes to a specified cgroup.
Fixes: containerd#234
Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
yaoyinnan
changed the title
Cgroup v2: Support cgroup.MoveTo in cgroupv2 manager
feat(v2): Support cgroup.MoveTo in cgroupv2 manager
Jun 8, 2022
Given there is no test, how have you validated this works properly on cgroups v2? I notice that it works differently than the v1 MoveTo and curious if the error condition is the exact same (given it uses string matching).
@estesp I tested the error in the cgroupv2 environment, the error message contains "no such process", the content is as follows:
error="error: write /sys/fsrouproup.procs: no such process"
This MoveTo() method exists in cgroup v1, but does not exist in cgroup v2's Manager. I need to be compatible with this method in order to make Kata compatible with cgroup v1 and cgroup v2 systems. In Kata I tested this function and it works fine.
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.
Provides a method for the cgroup v2 manager to support moving processes to a specified cgroup.
Fixes: #234
Signed-off-by: yaoyinnan yaoyinnan@foxmail.com