Discussion:
How to pin an interrupt thread to a specific CPU core?
Michio Honda
2021-04-15 21:38:22 UTC
Permalink
Hi,

Does anyone know how to do this? I want to ensure both my kqueue-based TCP
server app thread and the interrupt thread for the NIC to run at the same
CPU core.

Cheers,
- Michio
Eugene Grosbein
2021-04-15 21:43:55 UTC
Permalink
Post by Michio Honda
Hi,
Does anyone know how to do this? I want to ensure both my kqueue-based TCP
server app thread and the interrupt thread for the NIC to run at the same
CPU core.
cpuset -l $corenumber -x $irqnumber
cpuset -l 0 -x 259

This is documented in the cpuset(1) manual page.

Loading...