On 15.2.2023. 10:28, Gábor LENCSE wrote:

> In OpenBSD, the packet forwarding happens single threaded, so the
> performance of your system does not benefit much from the 4 cores.

Hi,

actually if forwarding is single threaded of not, depends of what nic do
you have in box. ix,mcx,bnxt,igc,vmx and maybe others have multiqueue
support and with them you will have better forwarding performance. But
only forwarding performance, not better pf performance or ipsec or
something else...

If you have em(4) you can test em(4) multiqueue diff on tech@
https://marc.info/?l=openbsd-tech&m=165642186010149&w=2
but for now em doesn't have multiqueue which means that your forwarding
is single threaded.

For vmware if you have vmx(4) you will have multiqueue support and you
can see that in dmesg and with vmstat

obsd1# dmesg | grep vmx
vmx0 at pci11 dev 0 function 0 "VMware VMXNET3" rev 0x01: msix, 4
queues, address 00:0c:29:b6:ec:81
vmx1 at pci19 dev 0 function 0 "VMware VMXNET3" rev 0x01: msix, 4
queues, address 00:0c:29:b6:ec:8b

obsd1# vmstat -iz | grep vmx
irq114/vmx0                         0        0
irq115/vmx0:0                   32706        0
irq116/vmx0:1                   12629        0
irq117/vmx0:2                   12397        0
irq118/vmx0:3                      22        0
irq123/vmx1                         0        0
irq124/vmx1:0                       6        0
irq125/vmx1:1                       2        0
irq126/vmx1:2                       0        0
irq127/vmx1:3                       0        0


But for now there is problem on machines with lots of cpus and
multiqueue nics and that is number of interrupts.

https://marc.info/?l=openbsd-misc&m=167472080905265&w=2






Reply via email to