-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support for non-prefix mount for cpuset #2090
base: main
Are you sure you want to change the base?
Conversation
I'd prefer (since Also, please fix up your comments so it says something like Thanks. [+] Ideally, we'd do an |
cgroupfs can be mounted with "noprefix" which strips the controller name So there is no "cpuset.xxx" but just "xxx" under cpuset subsystem. Signed-off-by: Zhongmin Wu <[email protected]>
From what I remember working on this -- the write logic should inspect the parent cgroup to understand the hierarchy. I remember it might be possible to successfully write non-working files that don't match the mount's intended prefix. I will look at my patches for this tomorrow. |
The parent hierarchy logic should already be done within the rest of |
So, any more comment about the patch ? |
I just tried writing the wrong file ( I'm not sure where else the cgroup write behavior for arbitrary files would be documented, but maybe somebody with more experience knows.
^ this would be needed if those writes for the wrong filenames succeeded which is what I was suspicious of. |
Do we need to do this for more than just the |
Sure, if such patch is acceptable, I can work for other patches for other cgroup controllers such as mem, cpu ... |
ping @cyphar -- opinions on #2090 (comment)? |
Can you get this rebased? Or is there a workaround that accomplishes this as well? |
I've made new PR for very same thing #4513 |
On some OS (such as Android), the cpuset cgroup is mounted with
"noprefix" option. So there is no "cpuset.xxx" but just "xxx"
under cpuset subsystem.
The original issue is here "docker/for-linux#689".
Here we can fix it in runc first, then the runc can work with noprefix cpuset
at least.
Signed-off-by: Zhongmin Wu [email protected]