isolcpu not working properly in ubuntu 2204
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-realtime |
Incomplete
|
Medium
|
Joseph Salisbury |
Bug Description
in recent tests I noticed in ubuntu22.04, the isolcpus does not work as expected:
$ cat /proc/cmdline
BOOT_
$ ps -eT -o psr,tid,
2 27 idle_inject/2 27 2 [idle_inject/2] 0.0 S
27 177 cpuhp/27 177 2 [cpuhp/27] 0.0 S
27 178 idle_inject/27 178 2 [idle_inject/27] 0.0 S
27 179 migration/27 179 2 [migration/27] 0.0 S
27 180 ksoftirqd/27 180 2 [ksoftirqd/27] 0.0 S
27 182 kworker/27:0H-k 182 2 [kworker/
27 762 irq/41-pciehp 762 2 [irq/41-pciehp] 0.0 S
27 1554 systemd-network 1554 1 /lib/systemd/
27 1646 containerd 1626 1 /usr/local/
27 13923 containerd 1626 1 /usr/local/
27 22258 containerd 1626 1 /usr/local/
27 1555307 containerd 1626 1 /usr/local/
27 2203 node-cache 2125 2048 /node-cache -localip 169.25 0.0 Ssl
27 2209 node-cache 2125 2048 /node-cache -localip 169.25 0.0 Ssl
27 2246 node-cache 2125 2048 /node-cache -localip 169.25 0.0 Ssl
27 2274 kube-proxy 2251 2150 /usr/local/
27 2453 kube-proxy 2251 2150 /usr/local/
27 930836 kube-proxy 2251 2150 /usr/local/
27 3141 kworker/27:1H-k 3141 2 [kworker/
27 200707 cainjector 3468 2299 /app/cmd/
27 3615 webhook 3602 2282 /app/cmd/
27 3616 webhook 3602 2282 /app/cmd/
27 3620 webhook 3602 2282 /app/cmd/
27 1843240 lcore-worker-10 1843230 1842888 /contrail-
27 1917469 kworker/27:0-ev 1917469 2 [kworker/
27 1938541 kworker/27:1-ev 1938541 2 [kworker/
22 1945514 grep 1945514 1499070 grep --color=auto 27 0.0 S+
so according to the cmdline output, core#27 should be isolated (not under OS
level scheduling), the purpose is to manually assign this core to my dpdk
applications. but I still see many other unrelated processes are running on
this core. I understand some applications (like "containerd" here) may ask for
it explicitly, but my questions here are:
* is there a simpler way that I can isolate the core completely out of OS scheduling
* is there anything changes related to isolcpus between Ubuntu20.04 (kernel
5.4) and Ubuntu22.04(kernel 5.15)?
Changed in ubuntu-realtime: | |
importance: | Undecided → Medium |
status: | New → Triaged |
This appears to be a duplicate of bug 1992164. Can you review that bug an confirm or deny?
There are some kernel threads that need to run on every cpu regardless of isolation level.
You may also want to also add the following boot parameters (Specify house keeping cores for irqs and add managed_irq and domain to isolcpus):
kthread_ cpus=HOUSEKEEPI NG_CORE_ NUM(s) HOUSEKEEPING_ CORE_NUM( s) managed_ irq,domain, 2-21,50- 69,26-45, 74-93
irqaffinity=
isolcpus=