Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?
Hi, guys
We find Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance, this also impacts on 16 bytes UDP pps(packet per second) performance of VMs in Openstack environment, my NIC information is below:
$ ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $
On VMs,for 16 bytes UDP packets, maximum pps is about 180000 (I have tuned irq affinity, VM is pinned to fixed CPU, it is scheduled on the same numa node as NIC, so this has been a maximum possible value), we also tried physical port to physical port pps performance in two physical machines, that only can reach maximum pps 300000 (I have tried all the tuning ways).
But on my other servers which have Intel X710 10Gb NIC, the driver is i40e, not ixgbe, it can reach 350000 pps for physical port to physical port case without any extra tuning. In VxLAN case, for 32 bytes UDP packets, pps can reach 200000 very easily, it doesn?t need any extra tuning.
https://docs.openstack.org/developer/performance-docs/test_plans/tenant_netw
orking/plan.html and
https://docs.openstack.org/developer/performance-docs/test_results/tenant_ne
tworking/neutron_vxlan_dvr_378/perl_l2/index.html#tcp show ixgbe driver also can reach 200000 pps for 32 bytes UDP packet for VMs and VxLAN cases. It doesn't mention which Intel Ethernet Controller is used.
Metric
Min Avg Max
loss, % 4.09
jitter, ms 0.01
packets, pps 190320 199583 213660
My issue is anybody knows if 82599ES can reach 350000 pps for 16 bytes UDP packets for physical port to physical port case (note: I mean iperf3 performance, I know DPDK can reach this).
BTW, I find 82599ES can support VxLAN TSO offload, the performance data is
good in case that VM MTU is configured to 8950 (our underlay MTU is 9000),
both TCP and UDP performance can reach line speed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3600 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20200415/f9097240/attachment.p7s>
Quoted 45 lines · Yi Yang (??)-?????
Hi, guys
We find Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance, this also impacts on 16 bytes UDP pps(packet per second) performance of VMs in Openstack environment, my NIC information is below:
$ ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $On VMs,for 16 bytes UDP packets, maximum pps is about 180000 (I have tuned irq affinity, VM is pinned to fixed CPU, it is scheduled on the same numa node as NIC, so this has been a maximum possible value), we also tried physical port to physical port pps performance in two physical machines, that only can reach maximum pps 300000 (I have tried all the tuning ways).
But on my other servers which have Intel X710 10Gb NIC, the driver is i40e, not ixgbe, it can reach 350000 pps for physical port to physical port case without any extra tuning. In VxLAN case, for 32 bytes UDP packets, pps can reach 200000 very easily, it doesn?t need any extra tuning.
https://docs.openstack.org/developer/performance-docs/test_plans/tenant_netw
orking/plan.html and
https://docs.openstack.org/developer/performance-docs/test_results/tenant_ne
tworking/neutron_vxlan_dvr_378/perl_l2/index.html#tcp show ixgbe driver also can reach 200000 pps for 32 bytes UDP packet for VMs and VxLAN cases. It doesn't mention which Intel Ethernet Controller is used.Metric
Min Avg Max
loss, % 4.09
jitter, ms 0.01
packets, pps 190320 199583 213660
Quoted 7 lines
My issue is anybody knows if 82599ES can reach 350000 pps for 16 bytes UDP packets for physical port to physical port case (note: I mean iperf3 performance, I know DPDK can reach this).
BTW, I find 82599ES can support VxLAN TSO offload, the performance data is good in case that VM MTU is configured to 8950 (our underlay MTU is 9000), both TCP and UDP performance can reach line speed.
There could be a number of things going on. You might want to check your interrupt moderation settings, you might want to make sure you do not have an IOMMU enabled, you will want to make certain you have sufficient PCIe bandwidth as the X710 is a PCIe gen 3 part and 82599 is only gen2. You may want to double check to make sure the memory layout between the two systems is the same as memory can cause delays in packet throughput.
My advice would be to see if you can swap the X710 and 82599 between two of your systems and see if the performance issues follow the card or the server. If it follows the server then you likely have something misconfigured on the server, if it follows the card then we could follow up with additional debugging.
Thanks.
- Alex
Thanks Alexander, but unfortunately, this NIC is integrated into motherboard, so we can't unplug it.
I'm very sure it isn't PCIe bandwidth issue, because TCP and UDP performance are ok, only small UDP pps performance is bad. 16 bytes UDP packets won't consume too much bandwidth, 200Mbps is enough.
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?15? 23:15
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?
Quoted 47 lines · Yi Yang (??)-?????
Hi, guys
We find Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance, this also impacts on 16 bytes UDP pps(packet per second) performance of VMs in Openstack environment, my NIC information is below:
$ ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $On VMs,for 16 bytes UDP packets, maximum pps is about 180000 (I have
tuned irq affinity, VM is pinned to fixed CPU, it is scheduled on the
same numa node as NIC, so this has been a maximum possible value), we
also tried physical port to physical port pps performance in two
physical machines, that only can reach maximum pps 300000 (I have tried all the tuning ways).But on my other servers which have Intel X710 10Gb NIC, the driver is i40e, not ixgbe, it can reach 350000 pps for physical port to physical port case without any extra tuning. In VxLAN case, for 32 bytes UDP packets, pps can reach 200000 very easily, it doesn?t need any extra tuning.
https://docs.openstack.org/developer/performance-docs/test_plans/tenan
t_netw
orking/plan.html and
https://docs.openstack.org/developer/performance-docs/test_results/tenant_networking/neutron_vxlan_dvr_378/perl_l2/index.html#tcp show ixgbe driver also can reach 200000 pps for 32 bytes UDP packet for VMs and VxLAN cases. It doesn't mention which Intel Ethernet Controller is used.Metric
Min Avg Max
loss, % 4.09
jitter, ms 0.01
packets, pps 190320 199583 213660
Quoted 7 lines
My issue is anybody knows if 82599ES can reach 350000 pps for 16 bytes UDP packets for physical port to physical port case (note: I mean iperf3 performance, I know DPDK can reach this).
BTW, I find 82599ES can support VxLAN TSO offload, the performance data is good in case that VM MTU is configured to 8950 (our underlay MTU is 9000), both TCP and UDP performance can reach line speed.
There could be a number of things going on. You might want to check your interrupt moderation settings, you might want to make sure you do not have an IOMMU enabled, you will want to make certain you have sufficient PCIe bandwidth as the X710 is a PCIe gen 3 part and 82599 is only gen2. You may want to double check to make sure the memory layout between the two systems is the same as memory can cause delays in packet throughput.
My advice would be to see if you can swap the X710 and 82599 between two of your systems and see if the performance issues follow the card or the server. If it follows the server then you likely have something misconfigured on the server, if it follows the card then we could follow up with additional debugging.
Thanks.
- Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3600 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20200416/0b2e5ed7/attachment-0001.p7s>
When you say 16 byte UDP packets I assume you mean 16B of payload. So with 14B ethernet header, 20B of IP header, 8B UDP header, and I am assuming 2B of padding you are carrying a 60 byte packet when everything is said and done. From personal experience I can tell you that the adapter should be able to handle about 10Mpps or so per port with packets that size. I have done routing tests in the past with those sort of packets without any issue. However the overhead for those packets is significantly higher than standard packets as you end up having to perform operations per-packet where as with TCP you have the advantage of TSO so you have one large frame that the adapter will break up into smaller pieces.
With that said, have you tried running "perf top" on a system under test to see what hot spots there are? That might help to identify any issues.
I know one common one that can cause significant small packet performance regressions is having an IOMMU enabled on the system without using the kernel parameter "iommu=pt". What can happen is that the DMA mapping will become a bottle-neck as each mapping will require using a resource lock on a table that is shared between all of the queues. You can probably run "dmesg | grep -i iommu" to see if anything pops up in your logs related to an IOMMU being enabled.
Other than that you might double check your interrupt moderation settings. You might start trying assigning manual delays via "ethtool -C" instead of allowing for dynamic rates to see if that has any effect.
Hope that helps.
- Alex
Quoted 75 lines · Yi Yang (??)-?????
Thanks Alexander, but unfortunately, this NIC is integrated into motherboard, so we can't unplug it.
I'm very sure it isn't PCIe bandwidth issue, because TCP and UDP performance are ok, only small UDP pps performance is bad. 16 bytes UDP packets won't consume too much bandwidth, 200Mbps is enough.
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?15? 23:15
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?Quoted 47 lines · Yi Yang (??)-?????
Hi, guys
We find Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance, this also impacts on 16 bytes UDP pps(packet per second) performance of VMs in Openstack environment, my NIC information is below:
$ ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $On VMs,for 16 bytes UDP packets, maximum pps is about 180000 (I have
tuned irq affinity, VM is pinned to fixed CPU, it is scheduled on the
same numa node as NIC, so this has been a maximum possible value), we
also tried physical port to physical port pps performance in two
physical machines, that only can reach maximum pps 300000 (I have tried all the tuning ways).But on my other servers which have Intel X710 10Gb NIC, the driver is i40e, not ixgbe, it can reach 350000 pps for physical port to physical port case without any extra tuning. In VxLAN case, for 32 bytes UDP packets, pps can reach 200000 very easily, it doesn?t need any extra tuning.
https://docs.openstack.org/developer/performance-docs/test_plans/tenan
t_netw
orking/plan.html and
https://docs.openstack.org/developer/performance-docs/test_results/tenant_networking/neutron_vxlan_dvr_378/perl_l2/index.html#tcp show ixgbe driver also can reach 200000 pps for 32 bytes UDP packet for VMs and VxLAN cases. It doesn't mention which Intel Ethernet Controller is used.Metric
Min Avg Max
loss, % 4.09
jitter, ms 0.01
packets, pps 190320 199583 213660Quoted 7 lines
My issue is anybody knows if 82599ES can reach 350000 pps for 16 bytes UDP packets for physical port to physical port case (note: I mean iperf3 performance, I know DPDK can reach this).
BTW, I find 82599ES can support VxLAN TSO offload, the performance data is good in case that VM MTU is configured to 8950 (our underlay MTU is 9000), both TCP and UDP performance can reach line speed.
There could be a number of things going on. You might want to check your interrupt moderation settings, you might want to make sure you do not have an IOMMU enabled, you will want to make certain you have sufficient PCIe bandwidth as the X710 is a PCIe gen 3 part and 82599 is only gen2. You may want to double check to make sure the memory layout between the two systems is the same as memory can cause delays in packet throughput.
My advice would be to see if you can swap the X710 and 82599 between two of your systems and see if the performance issues follow the card or the server. If it follows the server then you likely have something misconfigured on the server, if it follows the card then we could follow up with additional debugging.
Thanks.
- Alex
Thanks Alexander, I checked IOMMU, here is info.
$ sudo cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-4.15.0-46-generic root=/dev/mapper/vg1-lvroot ro default_hugepagesz=1G hugepagesz=1G hugepages=16 $ dmesg | grep -i iommu [ 0.000000] DMAR-IR: IOAPIC id 3 under DRHD base 0xfbffc000 IOMMU 0 [ 0.000000] DMAR-IR: IOAPIC id 1 under DRHD base 0xc7ffc000 IOMMU 1 [ 0.000000] DMAR-IR: IOAPIC id 2 under DRHD base 0xc7ffc000 IOMMU 1 $
It looks like IOMMU isn't enabled.
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?17? 2:36
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?
When you say 16 byte UDP packets I assume you mean 16B of payload. So with 14B ethernet header, 20B of IP header, 8B UDP header, and I am assuming 2B of padding you are carrying a 60 byte packet when everything is said and done. From personal experience I can tell you that the adapter should be able to handle about 10Mpps or so per port with packets that size. I have done routing tests in the past with those sort of packets without any issue. However the overhead for those packets is significantly higher than standard packets as you end up having to perform operations per-packet where as with TCP you have the advantage of TSO so you have one large frame that the adapter will break up into smaller pieces.
With that said, have you tried running "perf top" on a system under test to see what hot spots there are? That might help to identify any issues.
I know one common one that can cause significant small packet performance regressions is having an IOMMU enabled on the system without using the kernel parameter "iommu=pt". What can happen is that the DMA mapping will become a bottle-neck as each mapping will require using a resource lock on a table that is shared between all of the queues. You can probably run "dmesg | grep -i iommu" to see if anything pops up in your logs related to an IOMMU being enabled.
Other than that you might double check your interrupt moderation settings. You might start trying assigning manual delays via "ethtool -C" instead of allowing for dynamic rates to see if that has any effect.
Hope that helps.
- Alex
Quoted 70 lines · Yi Yang (??)-?????
Thanks Alexander, but unfortunately, this NIC is integrated into motherboard, so we can't unplug it.
I'm very sure it isn't PCIe bandwidth issue, because TCP and UDP performance are ok, only small UDP pps performance is bad. 16 bytes UDP packets won't consume too much bandwidth, 200Mbps is enough.
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?15? 23:15
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?Quoted 48 lines · Yi Yang (??)-?????
Hi, guys
We find Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance, this also impacts on 16 bytes UDP pps(packet per second) performance of VMs in Openstack environment, my NIC information is below:
$ ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $On VMs,for 16 bytes UDP packets, maximum pps is about 180000 (I have
tuned irq affinity, VM is pinned to fixed CPU, it is scheduled on
the same numa node as NIC, so this has been a maximum possible
value), we also tried physical port to physical port pps performance
in two physical machines, that only can reach maximum pps 300000 (I have tried all the tuning ways).But on my other servers which have Intel X710 10Gb NIC, the driver
is i40e, not ixgbe, it can reach 350000 pps for physical port to physical port case without any extra tuning. In VxLAN case, for 32
bytes UDP packets, pps can reach 200000 very easily, it doesn?t need any extra tuning.https://docs.openstack.org/developer/performance-docs/test_plans/ten
ant_netw
orking/plan.html and
https://docs.openstack.org/developer/performance-docs/test_results/t
enant_networking/neutron_vxlan_dvr_378/perl_l2/index.html#tcp show ixgbe driver also can reach 200000 pps for 32 bytes UDP packet for VMs and VxLAN cases. It doesn't mention which Intel Ethernet Controller is used.Metric
Min Avg Max
loss, % 4.09
jitter, ms 0.01
packets, pps 190320 199583 213660Quoted 8 lines
My issue is anybody knows if 82599ES can reach 350000 pps for 16 bytes UDP packets for physical port to physical port case (note: I mean
iperf3 performance, I know DPDK can reach this).BTW, I find 82599ES can support VxLAN TSO offload, the performance data is good in case that VM MTU is configured to 8950 (our underlay MTU is 9000), both TCP and UDP performance can reach line speed.
Quoted 7 lines
There could be a number of things going on. You might want to check your interrupt moderation settings, you might want to make sure you do not have an IOMMU enabled, you will want to make certain you have sufficient PCIe bandwidth as the X710 is a PCIe gen 3 part and 82599 is only gen2. You may want to double check to make sure the memory layout between the two systems is the same as memory can cause delays in packet throughput.
My advice would be to see if you can swap the X710 and 82599 between two of your systems and see if the performance issues follow the card or the server. If it follows the server then you likely have something misconfigured on the server, if it follows the card then we could follow up with additional debugging.
Thanks.
- Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3600 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20200417/e9df7f4c/attachment.p7s>
Here is my coalesce parameters, can you help provide what specific parameters can be tuned for this? It'll be better if you can give out specific command lines.
$ sudo ethtool -c ten1 Coalesce parameters for ten1: Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0
rx-usecs: 1
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 0
tx-usecs: 0
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 256
rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0
rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0
$
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?17? 2:36
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?
When you say 16 byte UDP packets I assume you mean 16B of payload. So with 14B ethernet header, 20B of IP header, 8B UDP header, and I am assuming 2B of padding you are carrying a 60 byte packet when everything is said and done. From personal experience I can tell you that the adapter should be able to handle about 10Mpps or so per port with packets that size. I have done routing tests in the past with those sort of packets without any issue. However the overhead for those packets is significantly higher than standard packets as you end up having to perform operations per-packet where as with TCP you have the advantage of TSO so you have one large frame that the adapter will break up into smaller pieces.
With that said, have you tried running "perf top" on a system under test to see what hot spots there are? That might help to identify any issues.
I know one common one that can cause significant small packet performance regressions is having an IOMMU enabled on the system without using the kernel parameter "iommu=pt". What can happen is that the DMA mapping will become a bottle-neck as each mapping will require using a resource lock on a table that is shared between all of the queues. You can probably run "dmesg | grep -i iommu" to see if anything pops up in your logs related to an IOMMU being enabled.
Other than that you might double check your interrupt moderation settings. You might start trying assigning manual delays via "ethtool -C" instead of allowing for dynamic rates to see if that has any effect.
Hope that helps.
- Alex
Quoted 70 lines · Yi Yang (??)-?????
Thanks Alexander, but unfortunately, this NIC is integrated into motherboard, so we can't unplug it.
I'm very sure it isn't PCIe bandwidth issue, because TCP and UDP performance are ok, only small UDP pps performance is bad. 16 bytes UDP packets won't consume too much bandwidth, 200Mbps is enough.
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?15? 23:15
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?Quoted 48 lines · Yi Yang (??)-?????
Hi, guys
We find Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance, this also impacts on 16 bytes UDP pps(packet per second) performance of VMs in Openstack environment, my NIC information is below:
$ ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $On VMs,for 16 bytes UDP packets, maximum pps is about 180000 (I have
tuned irq affinity, VM is pinned to fixed CPU, it is scheduled on
the same numa node as NIC, so this has been a maximum possible
value), we also tried physical port to physical port pps performance
in two physical machines, that only can reach maximum pps 300000 (I have tried all the tuning ways).But on my other servers which have Intel X710 10Gb NIC, the driver
is i40e, not ixgbe, it can reach 350000 pps for physical port to physical port case without any extra tuning. In VxLAN case, for 32
bytes UDP packets, pps can reach 200000 very easily, it doesn?t need any extra tuning.https://docs.openstack.org/developer/performance-docs/test_plans/ten
ant_netw
orking/plan.html and
https://docs.openstack.org/developer/performance-docs/test_results/t
enant_networking/neutron_vxlan_dvr_378/perl_l2/index.html#tcp show ixgbe driver also can reach 200000 pps for 32 bytes UDP packet for VMs and VxLAN cases. It doesn't mention which Intel Ethernet Controller is used.Metric
Min Avg Max
loss, % 4.09
jitter, ms 0.01
packets, pps 190320 199583 213660Quoted 8 lines
My issue is anybody knows if 82599ES can reach 350000 pps for 16 bytes UDP packets for physical port to physical port case (note: I mean
iperf3 performance, I know DPDK can reach this).BTW, I find 82599ES can support VxLAN TSO offload, the performance data is good in case that VM MTU is configured to 8950 (our underlay MTU is 9000), both TCP and UDP performance can reach line speed.
Quoted 7 lines
There could be a number of things going on. You might want to check your interrupt moderation settings, you might want to make sure you do not have an IOMMU enabled, you will want to make certain you have sufficient PCIe bandwidth as the X710 is a PCIe gen 3 part and 82599 is only gen2. You may want to double check to make sure the memory layout between the two systems is the same as memory can cause delays in packet throughput.
My advice would be to see if you can swap the X710 and 82599 between two of your systems and see if the performance issues follow the card or the server. If it follows the server then you likely have something misconfigured on the server, if it follows the card then we could follow up with additional debugging.
Thanks.
- Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3600 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20200417/9e11c0b4/attachment-0001.p7s>
Alexander, I tried to change some coalesce parameters, but it seems it can't work for my NIC. What's wrong?
$ sudo ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $ sudo ethtool -c ten1 Coalesce parameters for ten1: Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0
rx-usecs: 50
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 0
tx-usecs: 0
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 256
rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0
rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0
$ sudo ethtool -C ten1 adaptive-rx on adaptive-tx on $ sudo ethtool -c ten1 Coalesce parameters for ten1: Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0
rx-usecs: 50
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 0
tx-usecs: 0
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 256
rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0
rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0
$ sudo ethtool -C ten1 rx-usecs 1 $ sudo ethtool -C ten1 tx-usecs 1 Cannot set device coalesce parameters: Invalid argument $ sudo ethtool -C ten1 rx-frames-irq 256 $ sudo ethtool -c ten1 Coalesce parameters for ten1: Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0
rx-usecs: 1
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 0
tx-usecs: 0
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 256
rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0
rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0
$
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?17? 2:36
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?
When you say 16 byte UDP packets I assume you mean 16B of payload. So with 14B ethernet header, 20B of IP header, 8B UDP header, and I am assuming 2B of padding you are carrying a 60 byte packet when everything is said and done. From personal experience I can tell you that the adapter should be able to handle about 10Mpps or so per port with packets that size. I have done routing tests in the past with those sort of packets without any issue. However the overhead for those packets is significantly higher than standard packets as you end up having to perform operations per-packet where as with TCP you have the advantage of TSO so you have one large frame that the adapter will break up into smaller pieces.
With that said, have you tried running "perf top" on a system under test to see what hot spots there are? That might help to identify any issues.
I know one common one that can cause significant small packet performance regressions is having an IOMMU enabled on the system without using the kernel parameter "iommu=pt". What can happen is that the DMA mapping will become a bottle-neck as each mapping will require using a resource lock on a table that is shared between all of the queues. You can probably run "dmesg | grep -i iommu" to see if anything pops up in your logs related to an IOMMU being enabled.
Other than that you might double check your interrupt moderation settings. You might start trying assigning manual delays via "ethtool -C" instead of allowing for dynamic rates to see if that has any effect.
Hope that helps.
- Alex
Quoted 70 lines · Yi Yang (??)-?????
Thanks Alexander, but unfortunately, this NIC is integrated into motherboard, so we can't unplug it.
I'm very sure it isn't PCIe bandwidth issue, because TCP and UDP performance are ok, only small UDP pps performance is bad. 16 bytes UDP packets won't consume too much bandwidth, 200Mbps is enough.
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?15? 23:15
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?Quoted 48 lines · Yi Yang (??)-?????
Hi, guys
We find Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance, this also impacts on 16 bytes UDP pps(packet per second) performance of VMs in Openstack environment, my NIC information is below:
$ ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $On VMs,for 16 bytes UDP packets, maximum pps is about 180000 (I have
tuned irq affinity, VM is pinned to fixed CPU, it is scheduled on
the same numa node as NIC, so this has been a maximum possible
value), we also tried physical port to physical port pps performance
in two physical machines, that only can reach maximum pps 300000 (I have tried all the tuning ways).But on my other servers which have Intel X710 10Gb NIC, the driver
is i40e, not ixgbe, it can reach 350000 pps for physical port to physical port case without any extra tuning. In VxLAN case, for 32
bytes UDP packets, pps can reach 200000 very easily, it doesn?t need any extra tuning.https://docs.openstack.org/developer/performance-docs/test_plans/ten
ant_netw
orking/plan.html and
https://docs.openstack.org/developer/performance-docs/test_results/t
enant_networking/neutron_vxlan_dvr_378/perl_l2/index.html#tcp show ixgbe driver also can reach 200000 pps for 32 bytes UDP packet for VMs and VxLAN cases. It doesn't mention which Intel Ethernet Controller is used.Metric
Min Avg Max
loss, % 4.09
jitter, ms 0.01
packets, pps 190320 199583 213660Quoted 8 lines
My issue is anybody knows if 82599ES can reach 350000 pps for 16 bytes UDP packets for physical port to physical port case (note: I mean
iperf3 performance, I know DPDK can reach this).BTW, I find 82599ES can support VxLAN TSO offload, the performance data is good in case that VM MTU is configured to 8950 (our underlay MTU is 9000), both TCP and UDP performance can reach line speed.
Quoted 7 lines
There could be a number of things going on. You might want to check your interrupt moderation settings, you might want to make sure you do not have an IOMMU enabled, you will want to make certain you have sufficient PCIe bandwidth as the X710 is a PCIe gen 3 part and 82599 is only gen2. You may want to double check to make sure the memory layout between the two systems is the same as memory can cause delays in packet throughput.
My advice would be to see if you can swap the X710 and 82599 between two of your systems and see if the performance issues follow the card or the server. If it follows the server then you likely have something misconfigured on the server, if it follows the card then we could follow up with additional debugging.
Thanks.
- Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3600 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20200417/0fc61841/attachment.p7s>
To change the interrupt moderation settings you will need to use the rx-usecs command. The others don't change anything as I recall. The default is 1 which is adaptive interrupt moderation. If I recall the value has to be 8 or more to be accepted as the delay value between interrupts.
So try something like this:
sudo ethtool -C ten1 rx-usecs 24
That should lock it in at ~40K interrupts per second if I am not mistaken.
Thanks.
- ALex
Quoted 202 lines · Yi Yang (??)-?????
Alexander, I tried to change some coalesce parameters, but it seems it can't work for my NIC. What's wrong?
$ sudo ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $ sudo ethtool -c ten1 Coalesce parameters for ten1: Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0rx-usecs: 50
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 0tx-usecs: 0
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 256rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0$ sudo ethtool -C ten1 adaptive-rx on adaptive-tx on $ sudo ethtool -c ten1 Coalesce parameters for ten1: Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0rx-usecs: 50
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 0tx-usecs: 0
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 256rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0$ sudo ethtool -C ten1 rx-usecs 1 $ sudo ethtool -C ten1 tx-usecs 1 Cannot set device coalesce parameters: Invalid argument $ sudo ethtool -C ten1 rx-frames-irq 256 $ sudo ethtool -c ten1 Coalesce parameters for ten1: Adaptive RX: off TX: off stats-block-usecs: 0 sample-interval: 0 pkt-rate-low: 0 pkt-rate-high: 0rx-usecs: 1
rx-frames: 0
rx-usecs-irq: 0
rx-frames-irq: 0tx-usecs: 0
tx-frames: 0
tx-usecs-irq: 0
tx-frames-irq: 256rx-usecs-low: 0
rx-frame-low: 0
tx-usecs-low: 0
tx-frame-low: 0rx-usecs-high: 0
rx-frame-high: 0
tx-usecs-high: 0
tx-frame-high: 0$
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?17? 2:36
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?When you say 16 byte UDP packets I assume you mean 16B of payload. So with 14B ethernet header, 20B of IP header, 8B UDP header, and I am assuming 2B of padding you are carrying a 60 byte packet when everything is said and done. From personal experience I can tell you that the adapter should be able to handle about 10Mpps or so per port with packets that size. I have done routing tests in the past with those sort of packets without any issue. However the overhead for those packets is significantly higher than standard packets as you end up having to perform operations per-packet where as with TCP you have the advantage of TSO so you have one large frame that the adapter will break up into smaller pieces.
With that said, have you tried running "perf top" on a system under test to see what hot spots there are? That might help to identify any issues.
I know one common one that can cause significant small packet performance regressions is having an IOMMU enabled on the system without using the kernel parameter "iommu=pt". What can happen is that the DMA mapping will become a bottle-neck as each mapping will require using a resource lock on a table that is shared between all of the queues. You can probably run "dmesg | grep -i iommu" to see if anything pops up in your logs related to an IOMMU being enabled.
Other than that you might double check your interrupt moderation settings. You might start trying assigning manual delays via "ethtool -C" instead of allowing for dynamic rates to see if that has any effect.
Hope that helps.
- Alex
Quoted 77 lines · Yi Yang (??)-?????
Thanks Alexander, but unfortunately, this NIC is integrated into motherboard, so we can't unplug it.
I'm very sure it isn't PCIe bandwidth issue, because TCP and UDP performance are ok, only small UDP pps performance is bad. 16 bytes UDP packets won't consume too much bandwidth, 200Mbps is enough.
-----????-----
???: Alexander Duyck [mailto:alexander.duyck at gmail.com]
????: 2020?4?15? 23:15
???: Yi Yang (??)-????? <[email protected]>
??: intel-wired-lan at lists.osuosl.org
??: Re: [Intel-wired-lan] Anybody knows why Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance?Quoted 48 lines · Yi Yang (??)-?????
Hi, guys
We find Intel 82599ES 10Gb NIC has low small UDP packets forwarding performance, this also impacts on 16 bytes UDP pps(packet per second) performance of VMs in Openstack environment, my NIC information is below:
$ ethtool -i ten1 driver: ixgbe version: 5.6.5 firmware-version: 0x800003df expansion-rom-version: bus-info: 0000:06:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes $On VMs,for 16 bytes UDP packets, maximum pps is about 180000 (I have
tuned irq affinity, VM is pinned to fixed CPU, it is scheduled on
the same numa node as NIC, so this has been a maximum possible
value), we also tried physical port to physical port pps performance
in two physical machines, that only can reach maximum pps 300000 (I have tried all the tuning ways).But on my other servers which have Intel X710 10Gb NIC, the driver
is i40e, not ixgbe, it can reach 350000 pps for physical port to physical port case without any extra tuning. In VxLAN case, for 32
bytes UDP packets, pps can reach 200000 very easily, it doesn?t need any extra tuning.https://docs.openstack.org/developer/performance-docs/test_plans/ten
ant_netw
orking/plan.html and
https://docs.openstack.org/developer/performance-docs/test_results/t
enant_networking/neutron_vxlan_dvr_378/perl_l2/index.html#tcp show ixgbe driver also can reach 200000 pps for 32 bytes UDP packet for VMs and VxLAN cases. It doesn't mention which Intel Ethernet Controller is used.Metric
Min Avg Max
loss, % 4.09
jitter, ms 0.01
packets, pps 190320 199583 213660Quoted 8 lines
My issue is anybody knows if 82599ES can reach 350000 pps for 16 bytes UDP packets for physical port to physical port case (note: I mean
iperf3 performance, I know DPDK can reach this).BTW, I find 82599ES can support VxLAN TSO offload, the performance data is good in case that VM MTU is configured to 8950 (our underlay MTU is 9000), both TCP and UDP performance can reach line speed.
There could be a number of things going on. You might want to check your interrupt moderation settings, you might want to make sure you do not have an IOMMU enabled, you will want to make certain you have sufficient PCIe bandwidth as the X710 is a PCIe gen 3 part and 82599 is only gen2. You may want to double check to make sure the memory layout between the two systems is the same as memory can cause delays in packet throughput.
My advice would be to see if you can swap the X710 and 82599 between two of your systems and see if the performance issues follow the card or the server. If it follows the server then you likely have something misconfigured on the server, if it follows the card then we could follow up with additional debugging.
Thanks.
- Alex