Following my last question:
Performance issue using javas socket streams with sockets
I am looking at socket performance on Linux. In the above example, I get a round-trip time of ~ 65 μs. If I make two commits in the file system, it will decrease to ~ 45 μs. The extra time using localhost sockets should be due to the fact that I'm on the network stack.
Is there some kind of OS configuration that can make the localhost socket go as fast as the named pipe?
uname -a Linux fiatpap1d 2.4.21-63.ELhugemem #1 SMP Wed Oct 28 23:12:58 EDT 2009 i686 athlon i386 GNU/Linux
Thanks in advance!
~ 65 . , ~ 45 . , localhost, , .
, .
FIFO - . bool. . , .
. TCP. (recv, send ). , - , - . Linux : / . , , , , .
, , FIFO, 20us - , Linux.
P.S. 65us rtt = ~ 35us . 1s/35us = ~ 30K . , , .
Java, UNIX. , Java:
UNIX Java?
Your previous questions contain two false assumptions:
Your testing methods are very suspicious. What are you trying to accomplish?