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

Unknown Object (User) created this task.Dec 31 2019, 9:36 AM
Unknown Object (User) changed the task status from Open to In progress.
Unknown Object (User) triaged this task as Normal priority.
Unknown Object (User) changed the task status from In progress to Needs testing.Dec 31 2019, 9:52 AM
Unknown Object (User) added a comment.Dec 31 2019, 9:55 AM

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
Unknown Object (User) closed this task as Resolved.Jan 2 2020, 1:43 PM
Unknown Object (User) edited projects, added VyOS 1.2 Crux (VyOS 1.2.4); removed VyOS 1.2 Crux (VyOS 1.2.5).

Already in 1.2.4