1.1 Set network interface card interrupt
The following operation method takes the SP7020H (SP7022) model as an example
ip a
watch -n1 cat /proc/interrupts
The green box in the picture is the network interface card corresponding to enp4s0 interrupt number
sudo su
echo 2 > /proc/irq/163/smp_affinity
echo 2 > /proc/irq/164/smp_affinity
echo 2 > /proc/irq/165/smp_affinity
echo 2 > /proc/irq/166/smp_affinity
echo 2 > /proc/irq/167/smp_affinity
echo 2 > /proc/irq/168/smp_affinity
If you want to set the interrupt to CPU0: echo 1 > /proc/irq/interrupt number/smp_affinity
If you want to set the interrupt to CPU2: echo 4 > /proc/irq/interrupt number/smp_affinity
If you want to set the interrupt to CPU3: echo 8 > /proc/irq/interrupt number/smp_affinity
watch -n1 cat /proc/interrupts
If you see that the interrupt number under cpu1 keeps changing, it means that the setting is successful. For details, please check the video.
su sinsegye