Date: Fri, 10 Jul 2020 12:27:15 -0300 From: Cristian Cardoso <cristian.cardoso11@gmail.com> To: Patrick Lamaiziere <patfbsd@davenulle.org> Cc: freebsd-net@freebsd.org Subject: Re: poor performance with Intel X520 card Message-ID: <CAKeEC-K3oCXfLTXaTMRzKTCThB82Esf2KW3j7joRS=6e6Y9P3w@mail.gmail.com> In-Reply-To: <20200710084530.777ce321@mr185033.univ-rennes1.fr> References: <20200710084530.777ce321@mr185033.univ-rennes1.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello This interface is 14.8 Mpps, but such capacity is only possible without a firewall performing filtering. The more firewall rules on your router, the less forwarding capacity the card will have, due to having to process the packet in CPU to match the rules and then forward the packet. In the link that follows, a little is talked about: https://wiki.freebsd.org/NetworkPerformanceTuning Here are some more useful links on FreeBSD and network tuning https://calomel.org/freebsd_network_tuning.html https://people.freebsd.org/~olivier/talks/2017_EuroBSDCon-Tuning_FreeBSD_fo= r_routing_and_firewalling.pdf Em sex., 10 de jul. de 2020 =C3=A0s 03:45, Patrick Lamaiziere <patfbsd@davenulle.org> escreveu: > > Hello, > > That is mostly for the record but it looks like the intel X520 is not > very good and generates a high level of interrupts. > > On a router / firewall with 500 Kpps in input (dropped by pf) is enough t= o put the CPUs at > 100% busy. > > We use FreeBSD 11.3 on a machine with 12 CPU Intel(R) Xeon(R) CPU E5-2643= v3 @ 3.40GHz (3400.07-MHz K8-class CPU) > FreeBSD/SMP: Multiprocessor System Detected: 12 CPUs > FreeBSD/SMP: 2 package(s) x 6 core(s) > Multi threading is disabled. > > ix0: <Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 3.2.12-k> = port 0x3020-0x303f mem 0x92300000-0x923fffff,0x92404000-0x92407fff irq 34 a= t device 0.0 numa-domain 0 on pci5 > ix0: Using MSI-X interrupts with 9 vectors > ix0: Ethernet address: a0:36:9f:93:84:10 > ix0: PCI Express Bus: Speed 5.0GT/s Width x8 > ix0: netmap queues/slots: TX 8/2048, RX 8/2048 > > I've set fews tunable in loader.conf but I don't remember why > loader.conf > # cartes ix > #hw.ix.max_interrupt_rate=3D100000 > #hw.ix.enable_aim=3D0 > hw.ix.tx_process_limit=3D-1 > hw.ix.rx_process_limit=3D-1 > #hw.ix.num_queues=3D6 > hw.intr_storm_threshold=3D9000 > > Well, do you think another NIC cards can help to reach a better pps rate = ? I think 500 Kpps is quite low for such a machine. > > Thanks, best regards. > > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKeEC-K3oCXfLTXaTMRzKTCThB82Esf2KW3j7joRS=6e6Y9P3w>