Mixed traffic on older cards¶
We test our app against mixed traffic (UDP + TCP) as well as each protocol in isolation, always with identical packets.
On older NVIDIA ConnectX 100G cards (generation 6 and older), mixed traffic consistently underperformed compared to sending the same packets as pure UDP or pure TCP:
| Traffic | Line rate | Actual throughput |
|---|---|---|
| TCP | 122 Mpps | 122 Mpps |
| UDP | 122 Mpps | 122 Mpps |
| Mixed | 122 Mpps | 105 Mpps |
82 B packets, 24 workers.
On ConnectX-6, you can work around this by setting rx_vec_en=0. On ConnectX-7 (400G), the gap is much smaller, and with 32 workers we no longer see any difference between mixed and single-protocol traffic.
Vectorization isn't a universal win
While enabling RX vectorization helped us a lot on newer cards, on ConnectX-6 disabling it is the better choice for mixed traffic. The right setting needs to be measured for each NIC generation.