by danceparty · 6y ago · 0 comments
I just tested this with two hosts with 4.14.127 upstream kernel and upstream mlx5 driver, and mellanox connectx-5 card. Using 16 iperf threads
[SUM] 0.0-10.0 sec 85.1 Gbits/sec
That's pretty close with no tuning, and well beyond 10gb/s we mentioned earlier
https://events19.linuxfoundation.org/wp-content/uploads/2017...
https://www.redhat.com/en/blog/pushing-limits-kernel-network...
https://kernel-recipes.org/en/2014/ndiv-a-low-overhead-netwo...
"achieve 10 Gbps line rate at 60B frames"
"reaching line rate on all packet sizes"
Line rate is just bits per second. You have to add in a qualifier about packet size before you're talking about packets per second.
"For example, because one of the newest Cisco routers, the Cisco ASR 1000 Series Router, is capable of forwarding packets at up to 16 Mp/s with services enabled, it can support the processing of the equivalent of 10 Gb/s of traffic at line rate, with services, even for small packets."[1]
[1] https://tools.cisco.com/security/center/resources/network_pe...
The point of discussion here is that the Linux kernel struggles to do line rate 10Gbps. This was misinterpreted as "the Linux kernel struggles to do 10Gbps".
1538 bytes is 12,304 bits. 10,000,000,000 bits/sec / 12,304 bits/packet is 812,744 packets per second.
Now try it with 64 byte packets, which are 84 bytes on the wire.
14,880,952 packets per second.
And this is 10gbps.