-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[R&D] AF_XDP performance #860
Comments
What we need to check:
|
Current state:
Next steps:
|
Current state:
In short - a significant increase in performance was achieved only locally on the kind cluster - AF_XDP is faster than AF_PACKET by about 30% Based on this, AF_XDP should be at least about 2.5 times faster - https://builders.intel.com/docs/networkbuilders/af-xdp-sockets-high-performance-networking-for-cloud-native-networking-technology-guide.pdf Possible reasons:
Should we continue our performance research? |
…k-vpp@main PR link: networkservicemesh/sdk-vpp#860 Commit: 8a4f5ce Author: Network Service Mesh Bot Date: 2024-10-16 06:19:17 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk-kernel@main (#860) PR link: networkservicemesh/sdk-kernel#689 Commit: 40426fd Author: Network Service Mesh Bot Date: 2024-10-16 06:15:47 -0500 Message: - Update go.mod and go.sum to latest version from networkservicemesh/sdk@main (#689) PR link: networkservicemesh/sdk#1679 Commit: 3801206 Author: Vladislav Byrgazov Date: 2024-10-16 16:13:26 +0500 Message: - Updated strict IPAM and added dualstack IP pool (#1679) * add fix for ipam * another fix * add a unit test for ipam issue * add fix for ipam * another fix * add ip context validation * properly delete addresses * rework ip context validation * temporarily skip failing tests * fix CI issues * fix all tests * fix unit tests * fix go linter issues * cleanup * add ipv6 unit test * cleanup * fix go linter issues * Replaced strict ipam by filteripam implementation * Added dualstack ippool, updated tests * Fixed dualstack ippool * Fix linter errors * Fixed ippool test input data format --------- Signed-off-by: NikitaSkrynnik <nikita.skrynnik@xored.com> Signed-off-by: Vladislav Byrgazov <vladislav.byrgazov@xored.com> Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Description
During the integration, we noticed several performance issues
Measurements on Kind
iperf3
TCPEthernet remote mechanism (VxLAN)
AF_PACKET:
AF_XDP:
Note: many Retrs
IP remote mechanism (Wireguard)
AF_PACKET:
AF_XDP:
Conclusions
Average of 10 runs
Ethernet:
AF_PACKET
is faster thanAF_XDP
by ~13% (460.3 Mbits/sec vs 407.2 Mbits/sec)IP:
AF_XDP
is equal toAF_PACKET
(372,1 Mbits/sec vs 370,2 Mbits/sec)Ideas why this is happening
(we don't see them with AF_PACKET)
2. We was able to reproduce something similar on bare vpp instances:
https://lists.fd.io/g/vpp-dev/topic/af_xdp_performance/98105671
3. If we look at the vpp gerrit, we can see several open
af_xdp
patches:https://gerrit.fd.io/r/c/vpp/+/37653
https://gerrit.fd.io/r/c/vpp/+/38135
The text was updated successfully, but these errors were encountered: