poor performance with Intel X520 card

Olivier Cochard-Labbé olivier at freebsd.org
Fri Jul 10 16:21:24 UTC 2020


On Fri, Jul 10, 2020 at 8:45 AM Patrick Lamaiziere <patfbsd at davenulle.org>
wrote:

> 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 to
> put the CPUs at
> 100% busy.
>
> Hi Patrick,

yes 500 Kpps is quite low: Do you have a very complex long pf rule set?

A 8 core Atom C2758 with an old Intel 10G 82599 is able to reach about 1.6Mpps
(with one pf rule), so I would expect more on your setup.
https://github.com/ocochard/netbenches/blob/master/Atom_C2758_8Cores-Intel_82599/forwarding-pf-ipfw/results/fbsd12-stable.r354440.BSDRP.1.96/README.md

So, try this:
- Identify the bottleneck: pmcstat and flamegraph are the tools for that;
- Use FreeBSD -head or a 12-stable minimum but not less;
- You should follow instruction here:
https://wiki.freebsd.org/10gFreeBSD/Router

Regards,

Olivier


More information about the freebsd-net mailing list