We recently run some tests over TCP and UDP sockets to get a maximum amount of messages per second.
Over TCP we got an unexpected high RTT and a small amount of messages per second, see attached screenshot.
We also pinged from a Linux machine to the imx6, the RTT is unexpected high too.
<p>sudo ping -i 0 -c 10000 172.20.230.123 -q</p>
<p>PING 172.20.230.123 (172.20.230.123) 56(84) bytes of data.</p>
<p>--- 172.20.230.123 ping statistics ---</p>
<p>10000 packets transmitted, 10000 received, 0% packet loss, time 15269ms</p>
<p>rtt min/avg/max/mdev = 1.377/1.454/1.712/0.066 ms, ipg/ewma 1.527/1.568 ms</p>
Our receiver is the i.MX6UL and the sender is an Ubuntu machine. The imx6 is connected through a local network with only this two participants.
Kernel 5.4 is running on the imx6, we tried it with and without preemption.
Someone has already encountered this kind of problem?
Is there any way to improve the latency?