Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
268 views
in Technique[技术] by (71.8m points)

docker - It is possible to pin dockerd and containerd to core 0 using taskset or systemd CPUAffinity=0

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:

  1. It is possible to pin just the parent processes but the children can run where they want by using cpuset
  2. Is anybody out there doing this? My concern is that I want to let some sensitive process work uninterrupted, by tying interrupts and other processes to core 0

Thanks,

question from:https://stackoverflow.com/questions/66055814/it-is-possible-to-pin-dockerd-and-containerd-to-core-0-using-taskset-or-systemd

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...