-
Notifications
You must be signed in to change notification settings - Fork 38.9k
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
Guaranteed PODs CPUs are shared by other process running on the same host #99895
Comments
@DapengJiao: This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig node |
Hi @DapengJiao, https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/
The I suppose you actually added "CPUAffinity=0-1" in "/etc/systemd/system.conf" to achieve this, and prevent non-Kubernetes Pods to run on those cores. I was wondering how to dedicate CPUs even more myself. Have you tried something around |
Hi @maxlaverse Thanks for your answer. I am aware of the statement( For |
/kind support |
kubelet cpu manager cannot exclude binding cores to any other processes except other pods now. I think maybe you should try workaround first. |
The CPU manager does not guarantee that only the pod will run on a specific set of CPUs(via cgroup cpuset).
|
/close |
@cynepco3hahue: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I have a pod, that has two containers. |
What happened:
Guaranteed PODs CPUs are shared by other process running on the same host
What you expected to happen:
This pod runs in the Guaranteed QoS class should be granted with exclusive CPUs.
How to reproduce it (as minimally and precisely as possible):
From the output we could see, quite many processes are running on CPU which belong to guaranteed cpu_sets
Anything else we need to know?:
If we reboot the worker node, then the processes which running on guaranteed cpu sets will moved to defaultCpuSet.
Environment:
kubectl version
):OpenStack
cat /etc/os-release
):uname -a
):Linux director-0-eccd-cluster-dapeng 4.12.14-197.83-default #1 SMP Thu Feb 11 22:01:45 UTC 2021 (547a203) x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: