I'm trying to see if I can pin dockerd and containerd to core 0 on a Linux server, leaving all the other cores for the containers (using cpuset). So I used this on my systemd unit:
[Service]
CPUAffinity=0
I noticed than the children processes also got pinned to core 0 (tasket manual explains this is the expected behavior):
grep -i cpu /proc/$PID/status
My questions are:
Thanks,
taskset, numactl and 'CPUAffinity' on the systemd unit will (as expected) make the forked processes to be pinned to the specific CPUs. I could not find evidence of Docker wasting resources while waiting for containers to be executed so for the time being I will let it run un-pinned.
Happy to re-open this questions if someone else comes with a better answer.