Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
processes from /system.slice using cores assigned to guaranteed Pods when --cpu-manager-policy=static is set #85764
Following is the configuration for kubelet to enable the --cpu-manager-policy=static feature.
--cpu-manager-policy=static --system-reserved=cpu=10,memory=10Gi --system-reserved-cgroup=/system.slice.
There is no separate cgroup for the kubelet and hence --kube-reserved is not used.
PSR field of "ps -eLF " command on the host shows that processes from /system.slice are using cores assigned to the Application Pods which are guaranteed and integer cores assigned.
Here is /var/lib/kubelet/cpu_manager_state which shows that this Pod is assigned 8-11 and 32 - 35
on the Host,
Here 8 is the core ,PID 8870 and PPID is 1. Following command shows that cgroup of the PID 8870 is /system.slice
$ cat /proc/8870/cgroup
Similarly there are other processes from the /system.slice like docker daemon etc also using the cores assigned to this Pod.
What you expected to happen:
No system process from /system.slice should be scheduled on the cores assigned to this guaranteed Pod having integer CPU
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
$ cat /etc/os-release