I have an application for my Linux powered milling machine.
http://igor.chudov.com/projects/Brid...ct-2-CNC-Mill/
It requires, or rather benefits, from super low TCP/IP latency.
To avoid any network or router issues, I am only talking to 127.0.0.1,
so that network throughput is not even a part of my equation.
And yet, I see latencies that I would prefer to lower. To wit:
ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.010 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.013 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.013 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.016 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.012 ms
64 bytes from localhost (127.0.0.1): icmp_seq=6 ttl=64 time=0.014 ms
64 bytes from localhost (127.0.0.1): icmp_seq=7 ttl=64 time=0.013 ms
^C
--- localhost ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 5999ms
rtt min/avg/max/mdev = 0.010/0.013/0.016/0.001 ms
How can I reduce that 13 microsecond latency?
Also, in TCP based comms, I see about 60 microsecond delays between a
request sent and a reply received.
Of course, part of this is an app related stuff, but I estimate it to
be under one-two microseconds.
How can I improve this?
i