Score:0

After reboot a lot of processes ran in the isolated cpus

co flag

This question is migrated from stackoverflow since it was marked as off-topic there

I am running ubuntu 22.04 with kernel vmlinuz-5.19.0-35-generic. I isolated a few cpus by editing /etc/default/grub and did a sudo update-grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash isolcpus=4-7"

However, after I rebooted the system, I saw a lot of processes already running on one of the isolated CPUs, including some dockerd and systemd processes.

(I have rebooted for several times and observe the same)

I also checked /proc/cmdlin and dmesg. It does show that isolcpus is in the command line.

Is there a bug?

PS:

  1. I also found some one saying similar, but don't know whether they are related.

  2. There is a page on how to isolate cpus. when discussing the approach using isolcpus, it still asks to use cset to ping the docker and kubepods to the unshielded cpus. Does this mean that docker will generally not respect the isolcpus settings?

Score:0
ca flag

Isolcpus did not work as I was expecting. I found an answer here. The two key points from that thread are:

It appears that presently, isolcpus= only affects user space threads, and hence, kernel threads will show up on the isolated CPU's.

In summary, Ubuntu isn't ignoring the option, it's working as intended. Whether it's working as desired is a different query.

doraemon avatar
co flag
For me, not only the kworkers, but the user apps are running in the isolated CPUS. If the user session leader is running there, all the children will be started over there and have no chance to be rescheduled to other threads.
bg flag
This does not really answer the question. If you have a different question, you can ask it by clicking [Ask Question](https://askubuntu.com/questions/ask). To get notified when this question gets new answers, you can [follow this question](https://meta.stackexchange.com/q/345661). Once you have enough [reputation](https://askubuntu.com/help/whats-reputation), you can also [add a bounty](https://askubuntu.com/help/privileges/set-bounties) to draw more attention to this question. - [From Review](/review/late-answers/1297258)
gene-weber avatar
ca flag
@TaylorR You are correct. I intended it as more of a comment, but I didn't see a comment link when I wrote it. I edited it to try and make it as much of an answer as I can.
gene-weber avatar
ca flag
@doraemon I've given up on using isolcpus to try and keep one CPU clear for my real time process. I'm looking into cset now and can let you know how that works out.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.