I use iperf3 to test P1022 eTSEC Speed. if just test only one eTSEC, use UDP protocol, the speed will be over 900Mbps.
but, if the two eTSEC tested at the same time, use UDP protocol, one eTSEC speed is 600Mbps, and the other eTSEC speed is 400Mbps
So, I want to know how can i optimize the system in order to improve the two eTSEC performance
Or, can you tell me the performance that the two eTSEC be used at the same time?
iperf3, according to the first sentence on it's home page, is a tool
to measure the bandwidth of a _network_ , not a network node (host).
Since iperf utilized L4 protocols, which require significant
processing in software, the result depends on the
core and platform speed as well as on the memory bandwidth. If you
run several instantiations of such tests, it is normal that the observed
performance degrades, although both eTSECs operate fully independently.
Some steps that may improve the result include:
1. Affine eTSEC interrupts to CPUs
2. Affine the test tasks to CPUs
3. Disable PTP support
4. Play with interrupt coalescing and Rx/Tx buffer ring sizes.
These parameters are controlled by ethtool
We do not use iperf for benchmarking. There is a simiar test (with similar
limitations), netperf, for which we have a brief reproducibility guide:
As of the performance you can expect, benchmarking information requires
NDA and cannot be posted here. Please contact your distributor for
practically obtained performance figures.
Have a great day,
Platon
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
firstly, thank you for your reply!!
here is my ethtool print information, i can not get the method to modify the Rx/Tx buffer and cannot play with interrupt coalescing. You can see that all of the buffer size is 256,how can i improve it? So,do you have some suggestion or some paper for config rx/tx buffer issues?
root@p1022ds:~# ethtool -g eth0
Ring parameters for eth0:
Pre-set maximums:
RX: 256
RX Mini: 256
RX Jumbo: 256
TX: 256
Current hardware settings:
RX: 256
RX Mini: 256
RX Jumbo: 256
TX: 256