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
runtime: using threaded mode to manage cgroupv2 #5153
base: main
Are you sure you want to change the base?
runtime: using threaded mode to manage cgroupv2 #5153
Conversation
0d7a4e3
to
a2bd465
Compare
|
It seems that containerd/cgroups doesn't support macOS very well. |
02830ed
to
3033e53
Compare
Yes, it looks like this repo doesn't support macOS. The containerd/cgroups#55 also mentioned this situation. |
29f109a
to
f681471
Compare
|
/test |
9158df6
to
9c9d89a
Compare
f6765f9
to
c01013d
Compare
|
/test-fedora |
|
/test-s390x |
c6d19b4
to
eb1ead3
Compare
|
/test |
|
@bergwolf @jodh-intel @fidencio @snir911 This PR has basically been completed. Can you review and push to approve this PR for me? |
eb1ead3
to
0730c0b
Compare
0730c0b
to
c0e2a17
Compare
|
/test |
682c784
to
e291eea
Compare
199224e
to
5f52358
Compare
5f52358
to
83c82dd
Compare
Update the description that threaded mode for management in cgroupv2 in host cgroups docs Fixes: kata-containers#4886 Signed-off-by: yaoyinnan <35447132+yaoyinnan@users.noreply.github.com>
Because cgroups linux has modified the interface, the cgroups darwin interface has been unified. Fixes: kata-containers#4886 Signed-off-by: yaoyinnan <35447132+yaoyinnan@users.noreply.github.com>
The sandbox and overhead are placed in the same cgroup through threaded mode. Fixes: kata-containers#4886 Signed-off-by: yaoyinnan <35447132+yaoyinnan@users.noreply.github.com>
For different versions of cgroups, use different methods to delete cgroups. For cgroup v2, you need to delete the thread mode cgroup first. Fixes: kata-containers#4886 Signed-off-by: yaoyinnan <35447132+yaoyinnan@users.noreply.github.com>
Retry delete and moveto operations to ensure cgroup resource recycling. Fixes: kata-containers#4886 Signed-off-by: yaoyinnan <35447132+yaoyinnan@users.noreply.github.com>
83c82dd
to
e629db1
Compare
In the current cgroupv2, because the process mode cannot separate processes and threads into different cgroups, the vmm process is incorrectly added to the sandbox cgroup. The sandbox and overhead are placed in the same cgroup through thread mode to realize that the vCPU thread is placed in the sandbox and other processes are placed in the overhead.
Fixes: #4886
Signed-off-by: yaoyinnan yaoyinnan@foxmail.com