On 18.4.2016. 15:31, Hrvoje Popovski wrote:
> On 18.4.2016. 10:50, Martin Pieuchot wrote:
>> The current goal of the Network SMP effort is to have a single CPU
>> process the IP forwarding path in a process context without holding
>> the KERNEL_LOCK(). To achieve this goal we're progressively moving
>> code from the softnet interrupt context to the if_input_task. In
>> the end we'll completely get rid of this soft-interrupt.
>>
>> So now would be a good time to know if moving all the code currently
>> run in a soft-interrupt context to a task uncovers any bug. I'm
>> happily running the diff below on amd64 and macppc, it even gives me
>> a small performance boost.
>>
>> I'd appreciate more tests especially on exotic archs.
>
> Hi,
>
> i have tested this patch over ix interfaces on box with 12 cores
> Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz, 2400.39 MHz
> dmesg is below results ..
>
>
> pf=NO
> ddb.console=1
> kern.pool_debug=0
> kern.maxclusters=32768
> net.inet.ip.forwarding=1
> net.inet.ip.ifq.maxlen=8192
>
> while sending traffic i was shutting down physical interfaces and bridge
> and box survived this ...
>
> routing over ix
>
> send receive
> 400kpps 400kpps
> 500kpps 500kpps
> 600kpps 600kpps - after cca 5 min drops down to 490kpps
> 650kpps 650kpps
> 700kpps 640kpps
> 800kpps 640kpps
> 1.4Mpps 600kpps
> 14Mpps 600kpps
>
>
> bridge over ix
>
> send receive
> 400kpps 400kpps
> 500kpps 500kpps - after cca 1min drops down to 450kpps
> 600kpps 600kpps
> 650kpps 640kpps
> 700kpps 610kpps
> 800kpps 560kpps
> 1.4Mpps 370kpps
> 14Mpps 370kpps
>
routing over vlan
send receive
400kpps 400kpps
480kpps 480kpps
500kpps 450kpps
600kpps 450kpps
800kpps 450kpps
1.4Mpps 310kpps
14Mpps 310kpps
# ifconfig vlan
vlan111: flags=18843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,MPSAFE> mtu 1500
lladdr a0:36:9f:2e:96:a0
index 14 priority 0
vlan: 111 parent interface: ix0
vnetid: 111
parent: ix0
groups: vlan
status: active
inet 10.113.0.1 netmask 0xffff0000 broadcast 10.113.255.255
vlan112: flags=18843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,MPSAFE> mtu 1500
lladdr a0:36:9f:2e:96:a1
index 15 priority 0
vlan: 112 parent interface: ix1
vnetid: 112
parent: ix1
groups: vlan
status: active
inet 10.114.0.1 netmask 0xffff0000 broadcast 10.114.255.255