-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
The network speed of the pod cannot reach the speed of the baremetal, only half the speed of the baremetal server #7926
Comments
@ming12713 I am not sure if I understand this correctly. Baremetal has 10G NICs and iperf output is ~10Gbps. Am I missing something? |
@sridhartigera |
Halving of throughput generally indicates MTU issues. Often throughput is limited by maximum packets-per-second, and if there is an MTU issue in the path, that will lead to fragmentation and a doubling of the number of packets (which halves throughput) See https://docs.tigera.io/calico/latest/networking/configuring/mtu |
@lwr20 thanks |
OK, and what's the MTU of the network interface between the nodes (eth0 or whatever)? And the MTU set on any routers between the nodes? |
@lwr20 thanks, baremeta server network interface mtu is 9000,nodes connected through 10G switch, and the 10G switch default setting of 1500 mtu. |
That doesn't sound good - if the server has 9000 MTU, switch should also have MTU=9000. But on the other hand, that's the same for both baremetal and pod-pod case, so its clearly not the cause of this issue. You sound like you're using VXLAN encapsulation (since you mentioned 8950 MTU setting in Calico). Do you need VXLAN encap at all in this scenario? ISTR there was a recent linux kernel bug with VXLAN checksum offloading. Can you try without VXLAN to establish if the problem is related to VXLAN or not? |
yes ,i use VXLANCrossSubnet encap, i think I've encountered the same bug you mentioned. |
I don't think that's the VXLAN checksum offload issue, that's a kernel crash, isn't it? The VXLAN checksum offload issue "just" causes dropped packets (I think) Based on #4727 (comment) |
@lwr20 |
This fixed the vxlan calico underspeed issue for me. |
@ming12713 have you tried the fix that @lwr20 mentioned above? |
|
calico version: v3.26.1
kubernetes version: v1.26.6
calico installation spec
iperf3 testing in pod
iperf3 testing in baremetal node
The text was updated successfully, but these errors were encountered: