Page MenuHomeVyOS Platform

Add smp-affinity support to XEN
Closed, ResolvedPublic

Description

VM on XEN has special interface name in /proc/interrupts like vifX-qX-Xx
as example for eth0:

root@vyos:~# cat /sys/class/net/eth0/device/nodename
device/vif/0

root@vyos:~# cat /proc/interrupts | grep vif
 30:       8718          0          0          0   xen-dyn    -event     vif0-q0-tx
 31:      48022          0          0          0   xen-dyn    -event     vif0-q0-rx
 32:     133167          0          0          0   xen-dyn    -event     vif0-q1-tx
 33:     149869          0          0          0   xen-dyn    -event     vif0-q1-rx
 34:      88722          0          0          0   xen-dyn    -event     vif0-q2-tx
 35:      85243          0          0          0   xen-dyn    -event     vif0-q2-rx
 36:      94563          0          0          0   xen-dyn    -event     vif0-q3-tx
 37:      81175          0          0          0   xen-dyn    -event     vif0-q3-rx

Details

Difficulty level
Unknown (require assessment)
Version
1.2.4-epa1
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)

Event Timeline

Dmitry changed the task status from Open to In progress.Dec 31 2019, 9:36 AM
Dmitry triaged this task as Normal priority.
Dmitry created this task.

With this patch we have binded IRQ for each core

vyos@vyos:~$ cat /proc/interrupts | grep vif0
 31:          4      31761          0          0   xen-dyn    -event     vif0-q0-tx
 32:      30389          0          0          0   xen-dyn    -event     vif0-q0-rx
 33:          1          0          0      20496   xen-dyn    -event     vif0-q1-tx
 34:          1          0      18741          0   xen-dyn    -event     vif0-q1-rx
 35:          3      21115          0          0   xen-dyn    -event     vif0-q2-tx
 36:      45095          0          0          0   xen-dyn    -event     vif0-q2-rx
 37:          2          0          0      32254   xen-dyn    -event     vif0-q3-tx
 38:          2          0      19594          0   xen-dyn    -event     vif0-q3-rx