I had trouble setting the irq affinity of my hm2/ethernet card so it was handled by one of the cores controlled by lcnc. PCW helped me get it to work, I had given up too early in my previous efforts. It's simple to do at the command line. I still haven't gotten a script to change it. It would be nice to have a script, because it would be better to keep other irq handlers off the lcnc cpus.
Here are my notes:
Look at /proc/interrupts to see what interrupt your device is on.
Ethernet on my dell optiplex is enp0s31f6 on irq 130
So to set irq 130 to cpu 3 use the following:
sudo -i echo “8” /proc/irq/130/smp_affinity
You have to use sudo -i or be logged in as root.
The "8" is a bitmask. On my computer, the bitmask is usually "f" to allow any of the 4 processors. If you mistakenly set it to zero, it gets ignored.
If you have more than 4 processors, there will be more digits in the mask.
Kernel.org article about this:
docs.kernel.org/core-api/irq/irq-affinity.html
It can be set at boot time
www.kernel.org/doc/html/v4.19/admin-guid...rnel-parameters.html
Next task is to look into how irq balancing is done. For lcnc, balancing is bad.
If anyone has a script to do this, it would be great if you could post it.