Re: RSS causing bad forwarding performance?
Kajetan Staszkiewicz <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.net |
|---|---|
| Message-ID | <[email protected]> |
On 2025-12-08 00:55, Konstantin Belousov wrote: > It is somewhat strange that with/without RSS results differ for UDP. > mlx5en driver always enable hashing the packet into rx queue. And, > with single UDP stream I would expect all packets to hit the same queue. With a single UDP stream and RSS disabled the DUT gets 2 CPU cores loaded. One at 100%, I understand this is where the interrupts for incoming packets land and it handles receiving, forwarding and sending the packet (with direct ISR dispatch) and another around 15-20%, my best guess that it's handling interrupts for confirmations of packets sent out through the other NIC. With a single UDP stream and RSS enabled the DUT gets only 1 CPU core loaded. I understand that thanks to RSS the outbound queue on mce1 is the same as inbound queue on mce0 and thus the same CPU core handles irq for both queues. > As consequence, with/without RSS should be same (low). It is low for no RSS, but with RSS it's not just low, it's terrible. > Would it be UDP which encapsulates some other traffic, e.g. tunnel that > can be further classified by the internal headers, like inner headers > of the vxlan, then more that one receive queue could be used. The script stl/udp_1pkt_simple.py (provided with TRex) creates UDP packets from port 1025 to port 12, filled with 0x78, length 10 B. My goal is to test packets per second performance, so I've choosen this test as it creates very short packets. > BTW, mce cards have huge numbers of supported offloads, but all of them are > host-oriented, they would not help for the forwarding. > Again, since iperf stream would hit single send/receive queue. > Parallel iperfs between same machines scale. It seems that parallel streams forwarded through the machine scale too. It's a single stream that kills it, and only with option RSS enabled. -- | pozdrawiam / regards | Powered by Debian and FreeBSD | | Kajetan Staszkiewicz | www: http://tuxpowered.net | | | matrix: @vegeta:tuxpowered.net | `----------------------^--------------------------------'
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEfSEIcxY9kDeZvSZsgKrXf6bzAFMFAmk2328FAwAAAAAACgkQgKrXf6bzAFO2 vA/9E3GMFqWceT4kTNuBVbzs/30JJXrtjf4nro9TeUrRLHywuGPaEL9ozc14BDtjiZE63BUX7W9y cKbd9Zd0ndQjLUW4IldBGyCUW9B5edfls6+rqFOJ6kbpt/SfFYucYU7rS9Erj/0js1VQj6m03/T/ 5u9yedHveavK7e69afQXGkczLmphTpXUy/AHrJhWVX/aSzlpVkuJju+4hjzhyyR7A0XJ6IH4DXzQ ubzD6P9pUB3CmiwIW5lfBsQlPSUEI1wndycfH1juvl/6wLKfqV4o+GN3AF20Tkiu6eTTf0CB4yoI yOSd7AOdV78MNWKJEMyk+UsXStX1EkXyYMmm06OHC3YrzOtexYOtijDE49eIh1tJddq2CeNWpkzl d+AQ7+4c8eHk3ZKyuo3FAcnCqvH7khFyAbCSP/AgvMfveCEkHSAVDpCBKkwHG7Zh7qR/gJI5lWzZ smyF/CSLY0Q9LLL3yN9dAlTAzHpW0X/Ily3nUK+TBs0mEmb+ZVqN/Yr0QgPjNIXOVKxT2vbNRvfR jcElCsNoiJ3kDnyMSZbPfkKX3fGa3hNFibZAtChIqADX40wkLmJPtiCSkZkt55fjrWWmC3hwwinV 4UotmV+IGVgXuPj6rz1N3G5bVQWrijmKoyhSeGrjiw7XJQn5QdkStkSc2l+LSOfp162kxLLZ6mZz 3dY= =YY0X -----END PGP SIGNATURE-----