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

cgroup2: Support cgroup.kill #98

Closed
dcantah opened this issue Jan 8, 2023 · 0 comments · Fixed by #97
Closed

cgroup2: Support cgroup.kill #98

dcantah opened this issue Jan 8, 2023 · 0 comments · Fixed by #97

Comments

@dcantah
Copy link

dcantah commented Jan 8, 2023

In 5.14+ there exists a cgroup.kill that will send a SIGKILL to every process in the tree if written to (with a "1"). This would be useful for kata to avoid the freezing -> manually sending SIGKILL -> thawing process it does currently (same thing runc does at the moment).

dcantah added a commit to dcantah/cgroups-rs that referenced this issue Jan 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixes: kata-containers#98

Add a Kill method for cgroups v2. This uses the new functionality in
kernels 5.14+ where writing to a cgroup.kill file will send a SIGKILL
to every process running in the cgroup. This would be useful for
kata to avoid freezing+manually sending SIGKILL+thawing process it
does currently to emulate runc's behavior.

Signed-off-by: Danny Canter <danny@dcantah.dev>
dcantah added a commit to dcantah/cgroups-rs that referenced this issue Jan 9, 2023
Fixes: kata-containers#98

Add a Kill method for cgroups v2. This uses the new functionality in
kernels 5.14+ where writing to a cgroup.kill file will send a SIGKILL
to every process running in the cgroup. This would be useful for
kata to avoid freezing+manually sending SIGKILL+thawing process it
does currently to emulate runc's behavior.

Signed-off-by: Danny Canter <danny@dcantah.dev>
dcantah added a commit to dcantah/cgroups-rs that referenced this issue Jan 10, 2023
Fixes: kata-containers#98

Add a Kill method for cgroups v2. This uses the new functionality in
kernels 5.14+ where writing to a cgroup.kill file will send a SIGKILL
to every process running in the cgroup. This would be useful for
kata to avoid freezing+manually sending SIGKILL+thawing process it
does currently to emulate runc's behavior.

Signed-off-by: Danny Canter <danny@dcantah.dev>
Tim-Zhang added a commit to Tim-Zhang/cgroups-rs that referenced this issue Jan 11, 2023
To include patches kata-containers#91, kata-containers#94, kata-containers#98, kata-containers#99

Signed-off-by: Tim Zhang <tim@hyper.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant