OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: gauthig on November 12, 2020, 10:16:42 pm

Title: Netmap cap for all or just 10G ix nics?
Post by: gauthig on November 12, 2020, 10:16:42 pm
One one build I confirmed that the new netmap kernel and 20.7.4 works with ESXI vmx drivers well, but not full speed, stops around 2.5gbs from VM to opnsense VM.  But other VM to VM on same ESXI rans about 20Gbs.
This actually is good for the purpose we need.

On a barebones firewall we have a dual 10G for the lan (intel ix) and netmap (IDS Enabled) seems to bring it down.   

Iperf3 from internal server to opnsense LAN

IDS off  (CPU shows around 5%)
Send
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec  3.41 GBytes  5.85 Gbits/sec    0           
Receive (-R)
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.14  sec  4.42 GBytes  3.74 Gbits/sec    0           


IDS On - Hyperscan (CPU  40 - 50%)
Send
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec   742 MBytes  1.25 Gbits/sec    0
Receive (-R)
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.14   sec   455 MBytes   742 Mbits/sec    0

IDS On - Ken Steele (CPU 20-40%)
Send
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.00   sec   272 MBytes   456 Mbits/sec    1           
Receive (-R)
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-5.14   sec   307 MBytes   502 Mbits/sec    0

Notes


Can anyone else produce results for 10G?

Title: Re: Netmap cap for all or just 10G ix nics?
Post by: mimugmail on November 12, 2020, 10:28:58 pm
Maybe this one will fix it:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248652

No idea when it finds its was into OPNsense
Title: Re: Netmap cap for all or just 10G ix nics?
Post by: gauthig on November 12, 2020, 10:50:17 pm
@mimugmail - Thanks for finding that.  It does seem to be the issue and it's listed in a commit for FreeBSD, so once it makes it there we have to wait for the next OPNSense patch cycle.  Maybe Jan. or Feb. unless OPNsense team adds a temp kernel patch like they did with 20.7.3.
Title: Re: Netmap cap for all or just 10G ix nics?
Post by: mimugmail on November 13, 2020, 06:36:11 am
I will have a talk to Franco and @mb
Title: Re: Netmap cap for all or just 10G ix nics?
Post by: gauthig on November 20, 2020, 04:53:45 pm
Looks like the Call for Netmap testing thread picked up a new kernel for ix nics so moving my results over there:
https://forum.opnsense.org/index.php?topic=17363.0

By the way, as a preview it helps but brings CPU usage way up.
Title: Re: Netmap cap for all or just 10G ix nics?
Post by: klamath on November 20, 2020, 05:47:43 pm
I am using the ixl drivers with IDS enabled, if I disabled promiscuous mode in IDS i could get full speed again.